Difference between revisions of "Template:Infobox language/ref/doc"
Jump to navigation
Jump to search
imported>Jonesey95 m (fixing typo in citation) |
imported>Kwamikagami |
||
| Line 3: | Line 3: | ||
== Usage == | == Usage == | ||
| − | This subtemplate produces references for speaker data on language articles. If the number of speakers is taken from ''Ethnologue'' 17, enter | + | This subtemplate produces references for speaker data on language articles. If the number of speakers is taken from ''Ethnologue'' 17, enter {{angle bracket|e17}} in the 'ref' field, and a footnote will be generated that links to the page on ''Ethnologue'' article, based on the language's ISO639-3 code. This footnote can be linked to elsewhere on the page with <code><nowiki><ref name=e17/></nowiki></code>. ({{angle bracket|e16}} and {{angle bracket|e15}} can be used for the 16th and 15th editions.) |
* {{tlx|Infobox language/ref|e17}} → {{Infobox language/ref|e17}} | * {{tlx|Infobox language/ref|e17}} → {{Infobox language/ref|e17}} | ||
Revision as of 19:32, 27 November 2013
| This is a documentation subpage for Template:Infobox language/ref. It contains usage information, categories and other content that is not part of the original template page. |
Usage
This subtemplate produces references for speaker data on language articles. If the number of speakers is taken from Ethnologue 17, enter ⟨e17⟩ in the 'ref' field, and a footnote will be generated that links to the page on Ethnologue article, based on the language's ISO639-3 code. This footnote can be linked to elsewhere on the page with <ref name=e17/>. (⟨e16⟩ and ⟨e15⟩ can be used for the 16th and 15th editions.)
{{Infobox language/ref|e17}}→ [1]{{Infobox language/ref|e16}}→ [2]{{Infobox language/ref|e15}}→ [3]{{Infobox language/ref|e14}}→ [4]{{Infobox language/ref|linglist}}→ [5]{{Infobox language/ref|Some reference}}→ Some reference{{Infobox language/ref|{{cite book|title=Some book}}}}→ Some book.{{Infobox language/ref}}→ (blank returns blank)
References (from the examples)
- ↑ Cite error: Invalid
<ref>tag; no text was provided for refs namede17 - ↑ Cite error: Invalid
<ref>tag; no text was provided for refs namede16 - ↑ Cite error: Invalid
<ref>tag; no text was provided for refs namede15 - ↑ Cite error: Invalid
<ref>tag; no text was provided for refs namede14 - ↑ [1] at MultiTree on the Linguist List
Note that the first generates an error. This is because no ISO code has been supplied. We can't reference the speaker population to Ethnologue if there is no Ethnologue page to refer to. Technically, e15 should generate an error here too, but it is rare enough that this is not a likely problem.
See also
The reference code is created by:
{{ethnologue17}}{{ethnologue16}}{{ethnologue15}}