Difference between revisions of "Template:Location"
Jump to navigation
Jump to search
(Created page with "<includeonly>{| class="rsw-infobox plainlinks" id="infobox-locations" cellpadding="0" cellspacing="0" |- ! class="infobox-header" colspan=2 | '''{{PAGENAME}}''' |- | class="in...") |
(Remove extraneous new lines. This should fix an issue where random empty paragraphs were added with a single br tag.) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 3: | Line 3: | ||
! class="infobox-header" colspan=2 | '''{{PAGENAME}}''' | ! class="infobox-header" colspan=2 | '''{{PAGENAME}}''' | ||
|- | |- | ||
− | | class="infobox-image" colspan="2" | {{#if:{{{image}}}|{{{image}}}|[[Category:Needs image]][[Special:Upload|Please upload an image!]]}} | + | | class="infobox-image" colspan="2" | {{#if:{{{image|}}}|{{{image}}}|[[Category:Needs image]][[Special:Upload|Please upload an image!]]}} |
|- | |- | ||
! nowrap="nowrap" | Location | ! nowrap="nowrap" | Location | ||
− | | {{#if:{{{ | + | | {{#if:{{{location|}}}|{{{location}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} |
|- | |- | ||
! nowrap="nowrap" | Currency | ! nowrap="nowrap" | Currency | ||
− | | {{#if:{{{ | + | | {{#if:{{{currency|}}}|{{{currency}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} |
|- | |- | ||
! nowrap="nowrap" | Ruler(s) | ! nowrap="nowrap" | Ruler(s) | ||
− | | {{#if:{{{ | + | | {{#if:{{{ruler|}}}|{{{ruler}}}|Unknown <small>[{{fullurl:{{FULLPAGENAME}}|action=edit}} edit]</small>}} |
|- | |- | ||
− | |} | + | |}[[Category:Locations]]{{#if:{{{location|}}}|{{#invoke:Location|location|{{{location}}}}}}}{{#if:{{{ruler|}}}|{{#invoke:Ruler|ruler|{{{ruler}}}}}}}</includeonly><noinclude>{{/doc}} |
− | [[Category:Locations]] | + | |
− | </includeonly><noinclude>{{/doc}}</noinclude> | + | {{TemplateData|<templatedata> |
+ | { | ||
+ | "params": { | ||
+ | "image": { | ||
+ | "label": "Image", | ||
+ | "description": "File link to the location image", | ||
+ | "type": "wiki-file-name" | ||
+ | }, | ||
+ | "location": { | ||
+ | "label": "Location", | ||
+ | "description": "The location's location in Temerant", | ||
+ | "example": "Eastern part of the Four Corners of Civilization", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "currency": { | ||
+ | "label": "Currency", | ||
+ | "description": "Currencies used and generally accepted in this location", | ||
+ | "example": "Cealdish, Vintish", | ||
+ | "type": "string" | ||
+ | }, | ||
+ | "ruler": { | ||
+ | "label": "Ruler(s)", | ||
+ | "description": "List of the location's ruler(s)", | ||
+ | "example": "Roderic Calanthis" | ||
+ | } | ||
+ | }, | ||
+ | "description": "Creates an infobox for Location pages", | ||
+ | "format": "block" | ||
+ | } | ||
+ | </templatedata>}} | ||
+ | </noinclude> |
Latest revision as of 08:33, 18 December 2018
Data
Show/hide template's data | |||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
The following information is used by extensions and applications, such as VisualEditor, to help users implement this template onto pages. Please ensure that it is up-to-date. Creates an infobox for Location pages
|