Template:Closed place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 15: Line 15:
  | text={{#if:{{#show:{{PAGENAME}}|?Has status message}}|{{#show:{{PAGENAME}}|?Has status message}}|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}}| {{PAGENAME}} closed in {{#show:{{PAGENAME}}|?Was closed}}.|}} It remains on the wiki for historical reference.}}
  | text={{#if:{{#show:{{PAGENAME}}|?Has status message}}|{{#show:{{PAGENAME}}|?Has status message}}|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}}| {{PAGENAME}} closed in {{#show:{{PAGENAME}}|?Was closed}}.|}} It remains on the wiki for historical reference.}}
  | color_bar=#009DA5
  | color_bar=#009DA5
| background=#F2FAFA
  | border=1px solid #E6F5F6
  | border=1px solid #E6F5F6
  | class=closed-place-ambox
  | class=closed-place-ambox

Revision as of 22:48, 16 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. If a "Status message" (i.e. status_text) was provided for the form, this will replace the message box text.

{{Closed place}}
This article describes a place which no longer exists. It remains on the wiki for historical reference.