Difference between revisions of "Template:pbl"

From WikiCorporates
Jump to navigation Jump to search
(Created page with "powerbase:{{{1}}}|{{#if:{{{4|}}}||<span style="color:#477979 !important;" title="Powerbase: {{{1}}}">}}{{#replace:{{#replace:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </n...")
 
m
 
(3 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
[[powerbase:{{{1}}}|{{#if:{{{4|}}}||<span style="color:#477979 !important;" title="Powerbase: {{{1}}}">}}{{#replace:{{#replace:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]]{{{3|}}}<sup>[[File:Powerbase-Logo.svg|12px|link=pb:{{{1}}}]]</sup><noinclude>{{doc2}}</noinclude>
+
<span class="plainlinks">[http://powerbase.info/index.php/{{{1}}}{{#if:{{{4|}}}||<span style="color:#477979 !important;" title="Powerbase: {{{1}}}">}}{{#replace:{{#replace:{{#if: {{{2|}}}|{{{2}}}|{{{1}}}}}|_|<nowiki> </nowiki> <nowiki> </nowiki>}}|#|<nowiki> </nowiki> § <nowiki> </nowiki>}}</span>]{{{3|}}}<sup>[[File:Powerbase-graphic.svg|12px|link={{{1}}}]]</sup></span><noinclude>{{doc2}}</noinclude>

Latest revision as of 19:13, 4 January 2019

{{{1}}}link={{{1}}}

[edit] Documentation

Usage

This is a template for in-text linking to Powerbase in articles.

If the name of the Powerbase article is the same as the desired text of the link, use just

{{pbl|name of Powerbase article}}

If you want to put some other text in the link or format it in some special way, you need to pass it as the second parameter:

{{pbl|name of Powerbase article|''alternative'' text}}

To avoid leaving a large space before a punctuation sign, leave the second parameter blank and use the punctuation sign as a third parameter. For example:

{{pbl|Conservapedia_Blah||,}}

results in Conservapedia Blah,Powerbase-graphic.svg

FixMe: There's s'thing wrong with this template; it barfs on spaces between words.

Source: RationalWiki