Jump to navigation Jump to search

Template:City: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
<div class="infobox">
<includeonly>{{#subobject:
<div class="infobox-title">{{{title|{{PAGENAME}}}}}</div>{{#if:{{{image|}}}|
|has name        = {{{name|{{PAGENAME}}}}}
<div class="infobox-image">[[File:{{PAGENAME:{{{image}}}}}|300px]]</div>}}
|has meta type  = City
<table class="infobox-table">
|has coordinates = {{{latlong|}}}
{{Infobox
|has population  = {{{population|}}}
|is size        = {{{size|}}}
|is in nation    = {{{nation|}}}
|is capital      = {{{capital|no}}}
}}{{Infobox
| ibname    = {{{name|}}}
| ibname    = {{{name|}}}
| ibnamenote = {{{namenote|}}}
| ibnamenote = {{{namenote|}}}
Line 63: Line 67:
| paramname17 = imagesof
| paramname17 = imagesof
| param17    = {{#ifeq:{{{imagesof|}}}||{{#ifexist: Category:Images of {{PAGENAME}}|{{PAGENAME}}|}}|{{#ifexist: Category:Images of {{{imagesof|{{PAGENAME}}}}}|{{{imagesof|{{PAGENAME}}}}}|}}|}}
| param17    = {{#ifeq:{{{imagesof|}}}||{{#ifexist: Category:Images of {{PAGENAME}}|{{PAGENAME}}|}}|{{#ifexist: Category:Images of {{{imagesof|{{PAGENAME}}}}}|{{{imagesof|{{PAGENAME}}}}}|}}|}}
</table>
 
</div>
<!-- If 1e-source is provided, show {{{1e-source}}}, {{{1e-page}}} and {{{2e-source}}}, {{{2e-page}}}. Otherwise, show {{{source}}} and use the built-in page handler. -->
</div>
| paramname18 = source
</div>
| param18    = {{#if:{{{1e-source|}}}|{{{1e-source}}}{{#if:{{{1e-page|}}}|, pg(s). {{{1e-page}}} (1E)}}<br>{{{2e-source}}}{{#if:{{{2e-page|}}}|, pg(s). {{{2e-page}}} (2E)}}|{{{source|}}}}}
</includeonly>
 
<noinclude>
<!-- If 1e-source or 1e-page is provided, don't use the built-in {{{page}}} handler. -->
| page        = {{#if:{{{1e-source|}}}||{{{page|}}}}}
}}{{2eTrait/AutoCategories|settlements|{{{traits|}}}}}</includeonly><noinclude>
{{Documentation}}
{{Documentation}}
[[Category:Infoboxes|City]]
[[Category:Infoboxes|City]]
<templatedata>
</noinclude>
{
 
"params": {
"title": {
"type": "wiki-page-name"
},
"image": {},
"name": {},
"titles": {},
"plane": {},
"world": {},
"nation": {},
"region": {},
"size": {},
"population": {},
"demographics": {},
"government": {},
"capital": {},
"alignment": {},
"ruler": {},
"leader": {},
"latlong": {},
"regionmap": {},
"imagesof": {},
"source": {},
"page": {}
},
"paramOrder": [
"title",
"image",
"name",
"titles",
"plane",
"world",
"nation",
"region",
"size",
"population",
"demographics",
"government",
"capital",
"alignment",
"ruler",
"leader",
"latlong",
"regionmap",
"imagesof",
"source",
"page"
]
}
</templatedata>
regionmap: <br>
regionmap: <br>
https://pathfinderwiki.com/wiki/Template:DisplayMap<br>
https://pathfinderwiki.com/wiki/Template:DisplayMap<br>

Revision as of 12:27, 14 March 2023

Template documentation (for the above template, sometimes hidden or invisible)

Visit Template:City/doc to edit this text! (How does this work?)


regionmap:
https://pathfinderwiki.com/wiki/Template:DisplayMap
https://github.com/pf-wikis/mapping