Jump to content

Template:Plain sister: Difference between revisions

From Wikisource
Content deleted Content added
add functionality for showing portals
update to use one parameter, "portal"
Line 2: Line 2:


Only show the box if at least one parameter is called
Only show the box if at least one parameter is called
-->{{#if:{{{wikipedia|}}}{{{commons|}}}{{{commonscat|}}}{{{wikiquote|}}}{{{wikinews|}}}{{{wiktionary|}}}{{{wikibooks|}}}{{{wikiversity|}}}{{{wikispecies|}}}{{{meta|}}}{{{portal1|}}}{{{portal2|}}}{{{portal3|}}}
-->{{#if:{{{wikipedia|}}}{{{commons|}}}{{{commonscat|}}}{{{wikiquote|}}}{{{wikinews|}}}{{{wiktionary|}}}{{{wikibooks|}}}{{{wikiversity|}}}{{{wikispecies|}}}{{{meta|}}}{{{portal|}}}


|<div border="0" class="noprint" style="clear:right; border:solid #AAA 1px; margin: 0 0 1em 1em; background:#clear; padding:2px; text-align:left; float:right; font-size:90%;"><!--
|<div border="0" class="noprint" style="clear:right; border:solid #AAA 1px; margin: 0 0 1em 1em; background:#clear; padding:2px; text-align:left; float:right; font-size:90%;"><!--


Only show portals if at least one portal parameter is called
Only show portals if the portal parameter is called
-->{{#if:{{{portal1|}}}{{{portal2|}}}{{{portal3|}}}
-->{{#if:{{{portal|}}}


|<!--
|<!--
Line 15: Line 15:


1st link:
1st link:
-->{{#if:{{{portal1|}}}|[[Portal:{{{portal1}}}|{{{portal1}}}]]}}<!--
-->{{#if:{{#titleparts:{{{portal|}}}|1|1}}|[[Portal:{{#titleparts:{{{portal|}}}|1|1}}|{{#titleparts:{{{portal|}}}|1|1}}]]}}<!--


2nd link:
2nd link:
-->{{#if:{{{portal2|}}}|, [[Portal:{{{portal2}}}|{{{portal2}}}]]}}<!--
-->{{#if:{{#titleparts:{{{portal|}}}|1|2}}|, [[Portal:{{#titleparts:{{{portal|}}}|1|2}}|{{#titleparts:{{{portal|}}}|1|2}}]]}}<!--


3rd link:
3rd link:
-->{{#if:{{{portal3|}}}|, [[Portal:{{{portal3}}}|{{{portal3}}}]]}}<!--
-->{{#if:{{#titleparts:{{{portal|}}}|1|3}}|, [[Portal:{{#titleparts:{{{portal|}}}|1|3}}|{{#titleparts:{{{portal|}}}|1|3}}]]}}<!--


-->.<!--
-->.<!--

Revision as of 15:35, 15 February 2011

Template documentation