Difference between revisions of "Template:Wikipedia"

From Kerbal Space Program Wiki
Jump to: navigation, search
(+allow first parameter to be not set; +text parameter;)
Line 1: Line 1:
[[w:{{#if: {{{lang|}}}|{{{lang|}}}:}}{{#if: {{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}|{{#if: {{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}]] {{{text|on Wikipedia}}}<noinclude>
+
[[w:{{#if: {{{lang|}}}|{{{lang|}}}:}}{{#if: {{{1|}}}|{{{1}}}|{{#ifeq: {{uc:{{{full|}}}}}|Y|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}|{{#if: {{{1|}}}|{{{1}}}|{{BASEPAGENAME}}}}]] {{{text|on Wikipedia}}}<noinclude>
  
 
{{Parameter Table|name=both|parameters=
 
{{Parameter Table|name=both|parameters=
{{Parameter Row|1|Target page on Wikipedia.|The page's name (<tt><nowiki>{{BASEPAGENAME}}</nowiki></tt>)}}
+
{{Parameter Row|1|Target page on Wikipedia.|The page's name (<tt><nowiki>{{BASEPAGENAME}}</nowiki></tt> or when {{{full}}} is active <tt><nowiki>{{FULLPAGENAME}}</nowiki></tt>)}}
 
{{Parameter Row|lang|Language code of Wikipedia. Set to empty string if targeting the English.|Not set/English}}
 
{{Parameter Row|lang|Language code of Wikipedia. Set to empty string if targeting the English.|Not set/English}}
 
{{Parameter Row|text|Text following the link to Wikipedia. Without leading space.|<tt>on Wikipedia</tt>}}
 
{{Parameter Row|text|Text following the link to Wikipedia. Without leading space.|<tt>on Wikipedia</tt>}}
 +
{{Parameter Row|full|Set the parameter to <tt>y</tt> or <tt>Y</tt> to use the full name, including the namespace.|Not set}}
 
}}
 
}}
  
 
[[Category:Templates]]</noinclude>
 
[[Category:Templates]]</noinclude>

Revision as of 14:26, 14 September 2013

[[w:{{#if: |{{{1}}}|Wikipedia|Wikipedia]] on Wikipedia

Template:Parameter Table