Difference between revisions of "Template:Toponym link"

Jump to navigation Jump to search
Switch to actually generating links, since link values are already stored in Template:Toponym
m (+Evershore)
(Switch to actually generating links, since link values are already stored in Template:Toponym)
 
<includeonly>{{#switchif:{{lc:toponym|{{{1}}}|}}<!--
-->|[[{{toponym|{{{1}}}|link=y}}|{{ucfirst:{{toponym|{{{1}}}}}}}]]<!--
-->|[[{{{1}}}]]
-->}}</includeonly><noinclude>[[category: link macros]]
 
This template generates a link to a location for infoboxes, capitalizing the first letter and handling any cases where the link target is different from the display text (e.g., when the name of the location is [[:category: disambiguation pages|ambiguous]] with another page). If the location is not listed at {{t|toponym}}, it returns a standard link.
-->|final empire=Final Empire<!--
-->|elendel basin=Elendel Basin<!--
-->|roughs=Roughs<!--
 
-->|horneater|horneaters|unkalaki|horneater peaks=Horneater Peaks<!--
-->|purelake|purelaker|purelakers=Purelake<!--
-->|reshi|reshi isles=Reshi Isles<!--
-->|shattered plains=Shattered Plains<!--
-->|alethi warcamps=Warcamp<!--
 
-->|forests of hell=Forests of Hell<!--
-->|elantris|elantrian|elantrians=Elantris (city)<!--
 
-->|lux=Lux (city)<!--
 
-->|redawn=ReDawn (planet)<!--
-->|evershore=Evershore (planet)<!--
 
-->|{{toponym|{{{1}}}|}}<!--
 
-->}}<noinclude>[[category: link macros]]
 
This template includes all special cases of {{t|toponym}} for pages which need to be made [[:category: disambiguation pages|unambiguous]] or whose display text is otherwise different from the true link.
 
See also: {{t|toponym}}, {{t|demonym}}, {{t|toponym tag}}

Navigation menu