Difference between revisions of "Template:Lang/choices"

From Kerbal Space Program Wiki
Jump to: navigation, search
(Created page with "<includeonly>{{#if: {{{1|}}}|{{{1}}}|{{#if: {{{2|}}}|{{{2}}}|{{#if: {{{3|}}}|{{{3}}}|{{{4}}}}}}}}}</includeonly><noinclude>Selects the first set parameter. It allows four numb...")
 
m (Move doc)
 
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|{{{1}}}|{{#if: {{{2|}}}|{{{2}}}|{{#if: {{{3|}}}|{{{3}}}|{{{4}}}}}}}}}</includeonly><noinclude>Selects the first set parameter. It allows four numbered parameters:
+
<includeonly>{{#if: {{{1|}}}|{{{1}}}|{{#if: {{{2|}}}|{{{2}}}|{{#if: {{{3|}}}|{{{3}}}|{{{4}}}}}}}}}</includeonly><noinclude>
# The translated text
+
{{Documentation}}
# The default text
+
</noinclude>
# The English text via <tt>en</tt> parameter
 
# The English text via <tt>1</tt> parameter
 
 
 
[[Category:Metatemplates]]</noinclude>
 

Latest revision as of 10:21, 28 February 2020

Documentation icon Template documentation[view] [edit] [history] [purge]Pages that link to Template:Lang/choices

This template is used by {{Lang}} to display the correct translation on the page.

Usage

{{Lang/choices|{{{1}}}|{{{2}}}|{{{3}}}|{{{4}}}}}

Parameters

# Optional Description Default
1 Yes Shows the translated text. If not set, defaults to {{{2}}} {{{2}}}
2 Yes Shows the default text. If not set, defaults to {{{3}}} {{{3}}}
3 Yes Shows the English text. If not set, defaults to {{{4}}} {{{4}}}
4 No Shows the original text.