Editing
Template:Ethnologue26/doc
Jump to navigation
Jump to search
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
{{Documentation subpage<noinclude>|override={{lc:{{SUBPAGENAME}}}}</noinclude>}} <!-- Place categories where indicated at the bottom of this page and interwikis at Wikidata --> <includeonly> {{Template shortcut|E{{#invoke:string|sub|{{BASEPAGENAME}}|11}}}}</includeonly> '''{{NAMESPACE}}:<includeonly>{{BASEPAGENAME}}</includeonly><noinclude>Ethnologue''N''</noinclude>''' is designed for use in the reference section of a language article. It links to the appropriate article at ''[[Ethnologue]]'', <includeonly>{{ordinal|{{#invoke:string|sub|{{BASEPAGENAME}}|11}}}}</includeonly><noinclude>''N''th</noinclude> edition. == Usage == <noinclude>{{memo|Examples are omitted when viewed on the shared doc page for technical reasons; see them at e.g. [[Template:Ethnologue14]].}}</noinclude> ; One parameter : Replace <code>XYZ</code> with the [[ISO 639-3]] code for the language. The page name will be used as the [[link text]] <includeonly>: {{tld|{{BASEPAGENAME}}|XYZ}} : {{tld|E{{#invoke:string|sub|{{BASEPAGENAME}}|11}}|XYZ}}</includeonly> ; Two parameters : Replace <code>ABC</code> with the link text to be displayed. This may be useful if the ''Ethnologue'' name differs from the page name of the Wikipedia article. <includeonly>: {{tld|{{BASEPAGENAME}}|XYZ|ABC}} : {{tld|E{{#invoke:string|sub|{{BASEPAGENAME}}|11}}|XYZ|ABC}}</includeonly> ; No parameters : The template will revert to a generic citation and link to ''Ethnologue'' <includeonly>: {{tld|{{BASEPAGENAME}}}} : {{tld|E{{#invoke:string|sub|{{BASEPAGENAME}}|11}}}}</includeonly> == Examples == ; One parameter <includeonly>: {{tld|{{BASEPAGENAME}}|ENG}} : {{ {{BASEPAGENAME}}|ENG}}</includeonly> ; Two parameters <includeonly>: {{tld|{{BASEPAGENAME}}|ENG|English}} : {{ {{BASEPAGENAME}}|ENG|English}}</includeonly> ; No parameters <includeonly>: {{tld|{{BASEPAGENAME}}}} : {{ {{BASEPAGENAME}} }}</includeonly> ==Note== For a reference to the ''Ethnologue'' population figures, enter "e<includeonly>{{#invoke:string|sub|{{BASEPAGENAME}}|11}}</includeonly><noinclude>(number)</noinclude>" in the <code>ref</code> parameter of {{tl|Infobox language}}. This will automatically generate a reference based on this template, and is easier for other editors to update. ==See also== * {{tl|Ethnolink}}, for inline links when the data is not date-dependent<!-- -->{{#ifexist:Template:Ethnologue{{padleft:{{#expr:{{#invoke:string|sub|{{BASEPAGENAME}}|11}}-1}}|2}}| * {{tl|Ethnologue{{padleft:{{#expr:{{#invoke:string|sub|{{BASEPAGENAME}}|11}}-1}}|2}}}}, <!-- -->{{#ifexist:Template:Ethnologue{{padleft:{{#expr:{{#invoke:string|sub|{{BASEPAGENAME}}|11}}-2}}|2}}|{{tl|Ethnologue{{padleft:{{#expr:{{#invoke:string|sub|{{BASEPAGENAME}}|11}}-2}}|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 <code><nowiki>[[Ethnologue:xxx]]</nowiki></code> can also be used, e.g. [[Ethnologue:ENG]] ==TemplateData== {{TemplateData header}} <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> <includeonly>{{sandbox other|| <!-- Categories below this line; interwikis at Wikidata --> [[Category:Language external link templates|Ethnologue]] }}</includeonly>
Summary:
Please note that all contributions to Sidlangs may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Sidlangs:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)
Templates used on this page:
Template:Documentation subpage
(
edit
)
Template:Mbox
(
edit
)
Template:Memo
(
edit
)
Template:Sandbox other
(
edit
)
Template:Strong
(
edit
)
Template:TemplateData header
(
edit
)
Template:Template link
(
edit
)
Template:Template other
(
edit
)
Template:Template parameter usage
(
edit
)
Template:Terminate sentence
(
edit
)
Template:Tl
(
edit
)
Template:Yesno
(
edit
)
Template:Yesno-no
(
edit
)
Module:Arguments
(
edit
)
Module:Check for unknown parameters
(
edit
)
Module:Message box
(
edit
)
Module:Message box/configuration
(
edit
)
Module:Message box/ombox.css
(
edit
)
Module:String
(
edit
)
Module:Text
(
edit
)
Module:Yesno
(
edit
)
Navigation menu
Personal tools
Not logged in
Talk
Contributions
Create account
Log in
Namespaces
Template
Discussion
English
Views
Read
Edit source
View history
More
Search
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Tools
What links here
Related changes
Special pages
Page information