Template:Closed place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 1: Line 1:
<noinclude>
<noinclude>
This template displays a message on places with a "closed" <code>status</code> value to let readers know they are viewing a page about a place which no longer exists. It also adds the page to [[:Category:Closed places]].
This template displays a message on places with a "Closed" <code>status</code> value to let readers know they are viewing a page about a place which no longer exists. It also adds the page to [[:Category:Closed places]].


It is embedded in [[Template:Page]] and should not need to be invoked directly.
It is embedded in [[Template:Page]] and should not need to be invoked directly.
Line 13: Line 13:
</noinclude><!--
</noinclude><!--
--><includeonly>{{mbox
--><includeonly>{{mbox
  | text=This article describes a {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} which no longer exists.{{#if:{{#show:{{PAGENAME}}|?Was closed}}|&nbsp;{{PAGENAME}} closed in {{#show:{{PAGENAME}}|?Was closed}}.|}}
  | text=This article describes a {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} which is closed.{{#if:{{#show:{{PAGENAME}}|?Was closed}}|&nbsp;{{PAGENAME}} closed in {{#show:{{PAGENAME}}|?Was closed}}.|}}
  | color_bar=#B9C3CD
  | color_bar=#B9C3CD
  | class=place-closed-ambox
  | class=place-closed-ambox
}}[[Category:Closed places]]<!--
}}[[Category:Closed places]]<!--
--></includeonly>
--></includeonly>

Revision as of 22:46, 15 December 2024

This template displays a message on places with a "Closed" status value to let readers know they are viewing a page about a place which no longer exists. It also adds the page to Category:Closed places.

It is embedded in Template:Page and should not need to be invoked directly.

Usage

This template takes no parameters, and instead gathers all its information from the semantic properties of the parent page. If a closed year was provided in the Form:Place for that page, a line about it will be included as well.

{{Closed place}}
This article describes a place which is closed.