Difference between revisions of "Template:Wikipedia"

From Kerbal Space Program Wiki
Jump to: navigation, search
m (+specific category;)
m (*renamed Parameter Table to Parameter table;)
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
[[w:{{#if: {{{lang|}}}|{{{lang|}}}:}}{{#if: {{{1|}}}|{{{1}}}|{{#ifeq: {{uc:{{{full|}}}}}|Y|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}}}|{{#if: {{{1|}}}|{{{1}}}|{{#ifeq: {{uc:{{{full|}}}}}|Y|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}}}]]{{#if: {{{2|}}}|, {{{2}}},}} {{{text|on Wikipedia}}}<noinclude>
+
[[w:{{#if: {{{lang|}}}|{{{lang|}}}:}}{{#if: {{{1|}}}|{{{1}}}|{{#ifeq: {{uc:{{{full|}}}}}|Y|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}}}{{if||{{{disambig|}}}| ({{{disambig}}})}}|{{#if: {{{1|}}}|{{{1}}}|{{#ifeq: {{uc:{{{full|}}}}}|Y|{{FULLPAGENAME}}|{{BASEPAGENAME}}}}}}]]{{#if: {{{2|}}}|, {{{2}}},}} {{{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> or when {{{full}}} is active <tt><nowiki>{{FULLPAGENAME}}</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|2|Additional description of the object.|Not set/Hidden}}
+
{{Parameter row|2|Additional description of the object.|Not set/Hidden}}
{{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}}
+
{{Parameter row|full|Set the parameter to <tt>y</tt> or <tt>Y</tt> to use the full name, including the namespace.|Not set}}
 +
{{Parameter row|disambig|Additional text to disambiguate the link, when not overwriting the target page. Will add <tt>␣({{{disambig}}})</tt> to the target page.|Not set}}
 
}}
 
}}
  
 
[[Category:Cross-reference templates]]
 
[[Category:Cross-reference templates]]
[[Category:Translated templates]]</noinclude>
+
[[Category:Translatable templates]]</noinclude>

Revision as of 12:15, 19 December 2014

Wikipedia on Wikipedia

#/Name Optional Description Default
1 Yes Target page on Wikipedia. The page's name ({{BASEPAGENAME}} or when {{{full}}} is active {{FULLPAGENAME}})
2 Yes Additional description of the object. Not set/Hidden
lang Yes Language code of Wikipedia. Set to empty string if targeting the English. Not set/English
text Yes Text following the link to Wikipedia. Without leading space. on Wikipedia
full Yes Set the parameter to y or Y to use the full name, including the namespace. Not set
disambig Yes Additional text to disambiguate the link, when not overwriting the target page. Will add ␣({{{disambig}}}) to the target page. Not set