Template:Ethnologue26/doc
{{#ifeq:doc |doc
|
{{#ifeq:show |show
|
File:Edit-copy green.svg | This is a documentation subpage for Template:Ethnologue26{{#if:||.}} It may contain usage information, categories and other content that is not part of the original {{#if: |{{{text2}}} |{{#if: |{{{text1}}} |{{#ifeq:Template |User |template template page |{{#if:Template |template page|article}}}}}}}}. |
}}{{#if: | | {{#ifexist:Template:Ethnologue26 | [[Category:{{#switch:Template |Template=Template |Module=Module |User=User |#default=Wikipedia}} documentation pages]] | }} }} | }}
Template:EthnologueN is designed for use in the reference section of a language article. It links to the appropriate article at Ethnologue, Nth edition.
Usage[edit source]
- One parameter
- Replace
XYZ
with the ISO 639-3 code for the language. The page name will be used as the link text
- Two parameters
- Replace
ABC
with the link text to be displayed. This may be useful if the Ethnologue name differs from the page name of the Wikipedia article.
- No parameters
- The template will revert to a generic citation and link to Ethnologue
Examples[edit source]
- One parameter
- Two parameters
- No parameters
Note[edit source]
For a reference to the Ethnologue population figures, enter "e(number)" in the ref
parameter of {{Infobox language}}. This will automatically generate a reference based on this template, and is easier for other editors to update.
See also[edit source]
- {{Ethnolink}}, for inline links when the data is not date-dependent{{#ifexist:Template:Ethnologue{{#expr:26-1}}|
- {{[[Template:Ethnologue{{#expr:26-1}}|Ethnologue{{#expr:26-1}}]]}}, {{#ifexist:Template:Ethnologue{{#expr:26-2}}|{{[[Template:Ethnologue{{#expr:26-2}}|Ethnologue{{#expr:26-2}}]]}}, }} etc., for references to the previous editions
}}
- Newer and older versions of this template can be found at Category:Language external link templates
- The link format
[[Ethnologue:xxx]]
can also be used, e.g. Ethnologue:ENG
TemplateData[edit source]
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Ethnologue26|Template:Ethnologue26|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Ethnologue26|Template:Ethnologue26|Template:Ethnologue26}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}.
|#default=[1]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}} }}|This is the {{#if:|TemplateData|TemplateData}} for this template used by TemplateWizard, VisualEditor and other tools. {{#switch:
|=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|S|s}}ee a monthly parameter usage report] for {{#if:Ethnologue26|Template:Ethnologue26|this template}} in articles{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}.
|None|none=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report]{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}
|for|For=[https://bambots.brucemyers.com/TemplateParam.php?wiki=enwiki&template=%7B%7B%23if%3AEthnologue26%7CEthnologue26%7CEthnologue26%7D%7D {{#ifeq:{{safesubst:#switch: {{{lc}}} |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|no|P|p}}arameter usage report] for {{#if:Ethnologue26|Template:Ethnologue26|Template:Ethnologue26}}{{#ifeq:{{safesubst:#switch: y
|no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}}.
|#default=[2]{{#ifeq:{{safesubst:#switch: y |no |n |f |false |off |0 = no | = no |¬ = no |yes |y |t |true |on |1 = yes |#default = no
}}|yes| based on {{#if:Ethnologue26|its|this}} TemplateData}} }}}}
TemplateData for Ethnologue26
{{#switch:
{{#if: | {{{demospace}}} | {{#ifeq:Template|Template | template | other }} }}
| template = {{#if:{{#ifeq:doc|sandbox|1}}{{#ifeq:doc|doc|1}}||
}} | other | #default = }} <templatedata> { "params": { "1": { "label": "Language code", "type": "string", "suggested": true, "description": "The ISO 639-3 code for the language." }, "2": { "label": "Link text", "type": "string", "description": "The link text to be displayed. This may be useful if the Ethnologue name differs from the page name of the Wikipedia article. If you omit it, the page title will be displayed as the link text." } }, "description": "This template is designed for use in the reference section of a language article. It links to the appropriate article at the relevant edition of the Ethnologue. " } </templatedata>