Template:Place directory: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly>
=== {{#if:{{{title|}}}|{{{title}}}|{{#if:{{{city|}}}|{{{city}}}|{{#if:{{{state_province|}}}|{{{state_province}}}|{{#if:{{{country|}}}|{{{country}}}|(Region)}}}}}}}} ====
=== {{#if:{{{title|}}}|{{{title}}}|{{#if:{{{city|}}}|{{{city}}}|{{#if:{{{state_province|}}}|{{{state_province}}}|{{#if:{{{country|}}}|{{{country}}}|(Region)}}}}}}}} ===
{| class="wikitable"
{| class="wikitable"
! Imported !! Active !! Inactive/other
! Imported !! Active !! Inactive
|-
|-
| {{#ask:[[Category:Places]][[Has status::Imported]]
| {{#ask:[[Category:Places]][[Has status::Imported]]
Line 31: Line 31:
This template can be called with values for country, state/province, and/or city. You can also optionally provide a title override for the header that appears above the table.
This template can be called with values for country, state/province, and/or city. You can also optionally provide a title override for the header that appears above the table.


<pre>{{Place directory|country=United States|state=Wisconsin}}</pre>
<pre>{{Place directory|country=United States|state=Michigan}}</pre>
{{Place directory|country=United States|state=Wisconsin}}
{{Place directory|country=United States|state=Michigan}}


== TemplateData ==
== TemplateData ==
</noinclude>
</noinclude>

Revision as of 15:59, 26 February 2025

This is a helper template for displaying a list of places within a region, broken up into their type categories (so that you can easily display active + inactive + imported places at the same time. It's meant to aid regional validation work: Help:Validating a place (and was created specifically for Atlas:Midwest.

Usage

This template can be called with values for country, state/province, and/or city. You can also optionally provide a title override for the header that appears above the table.

{{Place directory|country=United States|state=Michigan}}

United States

Imported Active Inactive
... further results ... further results

TemplateData