Template:Temporarily closed place: Difference between revisions

From stencil.wiki
(Created page with "<noinclude> This template displays a message on places with a "Temporarily closed" <code>status</code> value to let readers know they are viewing a page about a place which may not be open. It also adds the page to Category:Temporarily 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. I...")
 
No edit summary
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This template displays a message on places with a "Temporarily closed" <code>status</code> value to let readers know they are viewing a page about a place which may not be open. It also adds the page to [[:Category:Temporarily closed places]].
This template displays a message on places with a "Temporarily closed" <code>status</code> value to let readers know they are viewing a page about a place which is temporarily closed. It also adds the page to [[:Category:Temporarily closed places]].


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


== Usage ==
== 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.
This template takes no parameters, and instead gathers all its information from the semantic properties of the parent page. If a "Status message" (i.e. <code>status_text</code>) was provided for the form, this will replace the message box text.
<pre>
<pre>
{{Closed place}}
{{Temporarily closed place}}
</pre>
</pre>
{{Closed place}}
{{mbox
| text=This article describes a place which is temporarily closed.
| color_bar=#009DA5
| background=#f2fafa
| border=1px solid #E6F5F6
| class=temp-closed-place-ambox
| icon=clock
}}


</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 is temporarily closed.
  | 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 is temporarily closed.}}
  | color_bar=#B9C3CD
  | color_bar=#009DA5
  | class=place-closed-ambox
| background=#f2fafa
| border=1px solid #E6F5F6
  | class=temp-closed-place-ambox
| icon=clock
}}[[Category:Temporarily closed places]]<!--
}}[[Category:Temporarily closed places]]<!--
--></includeonly>
--></includeonly>

Latest revision as of 15:18, 17 December 2024

This template displays a message on places with a "Temporarily closed" status value to let readers know they are viewing a page about a place which is temporarily closed. It also adds the page to Category:Temporarily closed places.

It is embedded in Template:Place 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 "Status message" (i.e. status_text) was provided for the form, this will replace the message box text.

{{Temporarily closed place}}
This article describes a place which is temporarily closed.