Template:Ethnologue26/doc

From Sidlangs
Jump to navigation Jump to search

{{#ifeq:doc |doc

    | 

{{#ifeq:show |show

|

        }}{{#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]

Template:Memo

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

}}

TemplateData[edit source]

{{#if:|{{#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=[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>