Template:Closed place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
Line 34: Line 34:
--><includeonly>{{mbox
--><includeonly>{{mbox
  | title={{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{ucfirst:{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}}}|Place}} closed
  | title={{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{ucfirst:{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}}}|Place}} closed
  | text={{{1|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}}|?Has closed year}}|&nbsp;{{PAGENAME}} closed in {{#show:{{PAGENAME}}|?Has closed year}}.|}}}}}
  | text={{{1|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}}.|}}}}}
  | color_bar=#B9C3CD
  | color_bar=#B9C3CD
  | class=place-closed-ambox
  | class=place-closed-ambox
}}<!--
}}<!--
--></includeonly>
--></includeonly>

Revision as of 22:29, 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 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}}
Place closed
This article describes a place which no longer exists.

Custom message

However, if a parameter is provided, it will overwrite the text message (if, for example you need a more complex description of the closure of the place).

{{Closed place|The studio itself closed in 2018, however the artists still publish through other printshops in the Chicago area.}}
Place closed
The studio itself closed in 2018, however the artists still publish through other printshops in the Chicago area.

TemplateData

Included as a notice on places that are no longer active.

Template parameters

ParameterDescriptionTypeStatus
Alternate text1

Custom text to display in the message box, instead of the default message.

Stringoptional