Jump to navigation Jump to search

Template:City: Difference between revisions

No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>{{#subobject:
{{Infobox
|has name        = {{{name|{{PAGENAME}}}}}
|has meta type  = City
|has coordinates = {{{latlong|}}}
|has population  = {{{population|}}}
|is size        = {{{size|}}}
|is in nation    = {{{nation|}}}
|is capital      = {{{capital|no}}}
}}{{Infobox
| ibname    = {{{name|}}}
| ibname    = {{{name|}}}
| ibnamenote = {{{namenote|}}}
| ibnamenote = {{{namenote|}}}
Line 53: Line 60:
| paramname15 = Leader
| paramname15 = Leader
| param15    = {{{leader|}}}
| param15    = {{{leader|}}}
}}
</includeonly>


| paramname16 = regionmap
| param16    = {{{regionmap|{{#if:{{{latlong|}}}|{{DisplayMap|latlong={{{latlong}}}}}}}}}}
| paramname17 = imagesof
| param17    = {{#ifeq:{{{imagesof|}}}||{{#ifexist: Category:Images of {{PAGENAME}}|{{PAGENAME}}|}}|{{#ifexist: Category:Images of {{{imagesof|{{PAGENAME}}}}}|{{{imagesof|{{PAGENAME}}}}}|}}|}}
<!-- 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. -->
| paramname18 = source
| 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|}}}}}
<!-- 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}}
[[Category:Infoboxes|City]]


regionmap: <br>
regionmap: <br>
Line 61: Line 81:
https://github.com/pf-wikis/mapping<br>
https://github.com/pf-wikis/mapping<br>
{{ Category: templates }}
{{ Category: templates }}
</noinclude>

Revision as of 13:29, 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