Template:EB1911/sandbox
This is the template sandbox page for Template:EB1911 (diff). See also the companion subpage for test cases. |
This template uses Lua: |
Usage
[edit]{{EB1911
| volume =
| previous =
| next =
| contributor =
| extra-notes =
<!-- all following parameters are optional. Apart from Wiktionary, wikilinks are provided through the Wikidata item's main subject link (P921) -->
| wiktionary =
| contributor-display =
| wikipedia =
| wikipedia2 =
| other-projects =
| override-notes =
| section =
| subpage-sort =
}}
This template is meant to be used at the top of an article. The previous and next should be filled in, even when those entries have not been created yet.
This template is to be used at the top of every entry in the Encyclopædia.
- | volume =
- The 1911 volume from which the article comes.
- | previous =
- Type in the name of the previous entry. It will create a link to it.
- | next =
- Same as above but goes to next entry.
- | contributor =
- Usually EB1911 articles were written anonymously in which case leave this field blank. If the contributor is known and entered here then the name will be automatically link the entry in the "Author:" namespace.
- | contributor-display
- This can be used to change how a contributor's name is displayed.
- | contributor2 =
- This is useful if there is more than one contributor.
- | wikipedia =
- Link to Wikipedia article, template will create one automatically but you should always make sure it goes to a relevant article. If it doesn't, then fill in the name of the article for this parameter. If there is no Wikipedia article, leave it blank (but don't remove the parameter!).
- | wikipedia2 =
- Parameter for second, relevant wikipedia article.
- | other-projects =
- Links to other projects such as Wiktionary, Commons, Wikisource etc. And, despite its name, it can also be used to link to Wikipedia articles in situations where more than two links are desired. Please format it as such:
[[<Project Name>:<Article Name>|<Article Name>]] at [[<Project Name>:Main Page|<Project Name>]]
. Only include links to Wikimedia projects.
- Links to other projects such as Wiktionary, Commons, Wikisource etc. And, despite its name, it can also be used to link to Wikipedia articles in situations where more than two links are desired. Please format it as such:
- | extra-notes =
- This is useful for notifying the reader of significant changes since 1911. For example, a town may belong to another country now. This is used infrequently.
- | override-notes =
- Don't display the standard notes (the link to the disclaimer, "see also" and any extra notes), and just display whatever this argument contains in the notes section. This is used infrequently.
- | section =
- This is useful in extraordinary situations where the auto-generated display of the section name is not desired. For example, it is used to implement the examples below since otherwise the auto-generated section name for this documentation page would be displayed instead of the section name for the article corresponding to the example.
Examples
[edit]Auto-generated wikipedia link
[edit]{{EB1911
| volume = 1
| previous = Achill
| next = Achilles Tatius
}}
No Wikipedia link
[edit]{{EB1911
| volume = 1
| previous = Achill
| next = Achilles Tatius
| wikipedia=
}}
Wikipedia link different from article name
[edit]This is the case for most biographical articles, since Wikipedia uses first name first rather than last name first like EB1911. For the example here, the spelling that Wikipedia uses differs from the spelling that EB1911 uses:
{{EB1911
| volume = 27
| previous = Tromp
| next = Tronchet, François Denis
| wikipedia = Tromsø
}}
Two Wikipedia links
[edit]{{EB1911
| volume = 27
| previous = Trollhättan
| next = Tromba marina
| wikipedia = Anthony Trollope
| wikipedia2 = Frances Trollope
}}
Three (or more) Wikipedia links
[edit]The other-projects
parameter can also be used to link to more than two Wikipedia articles when this is useful, and also to refer the reader to other Wikisource articles. Here is an example of more than two Wikipedia links (note that the usual wikipedia
parameter needs to be nulled out):
{{EB1911
| volume = 13
| previous = Hillebrand, Karl
| next = Hiller, Ferdinand
| wikipedia =
| other-projects = [[w:Hillel the Elder|]], [[w:Hillel II|]] and [[w:Hillel, son of Gamaliel III|]] on [[w:Main Page|Wikipedia]]
}}
Other projects
[edit]{{EB1911
| volume = 9
| previous = Eupen
| next = Euphonium
| other-projects = [[wiktionary:euphemism|euphemism]] on [[wiktionary:Main Page|Wiktionary]]
| wikipedia = Euphemism
| section = Euphemism
}}
Contributor
[edit]{{EB1911
| volume = 9
| contributor =Kathleen Schlesinger
| previous = Eupen
| next = Euphonium
}}
multiple contributors
[edit]{{EB1911
| volume = 9
| contributor1 = Kathleen Schlesinger
| contributor2 = John Smith
| previous = Eupen
| next = Euphonium
| wikipedia = Euphemism
| section = Euphemism
}}
Hide previous and next links and notes
[edit]{{EB1911
| volume =
| previous =
| next =
| override-notes =
| section = Project Disclaimer
}}
Extra notes
[edit]{{EB1911
| volume = 9
| previous = Eupatridae
| next = Euphemism
| extra-notes = Now part of Belgium.
| wikipedia = Eupen
| section = Eupen
}}
Note
[edit]Any footer on this documentation page corresponds to one of the examples, and probably the first one rather than the last one.