Template:Unknown status place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(6 intermediate revisions by the same user not shown)
Line 2: Line 2:
This template displays a message on places with an "Unknown" <code>status</code> value to let readers know they are viewing a page about a place which may no longer be active (and needs to be updated). It also adds the page to [[:Category:Places of unknown status]].
This template displays a message on places with an "Unknown" <code>status</code> value to let readers know they are viewing a page about a place which may no longer be active (and needs to be updated). It also adds the page to [[:Category:Places of unknown status]].


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 "Status message" (i.e. <code>status_text</code>) was provided for the form, this will replace the message box text.
This template takes no parameters, and instead gathers all its information from the semantic properties of the parent page. If a "Status message" via the <code>status_text</code> parameter was provided for the form, this will replace the message box text.
<pre>
<pre>
{{Unknown status place}}
{{Unknown status place}}
</pre>
</pre>
{{Unknown status place}}
{{mbox
 
| text=<p>This article describes a place of unknown status—it may be closed or otherwise inactive.</p><p><em>You can help by investigating and updating this page (see [[Help:Validating a place]]).</em></p>
| color_bar=#FFB511
| background=#fffbf3
| border=1px solid #fff0cf
| icon=ghost
| class=unknown-status-place-ambox
}}
</noinclude><!--
</noinclude><!--
--><includeonly>{{mbox
--><includeonly>{{mbox
  | text=<p>This article describes a {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} of unknown status—it may be closed or otherwise inactive.</p><p><em>You can help by checking whether this place still exists and updating this page accordingly.</em></p>
  | text=<p>This article describes a {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} of unknown status—it may be closed or otherwise inactive.</p><p><em>You can help by investigating and updating this page.</em></p>
  | color_bar=#FFB511
  | color_bar=#FFB511
| background=#fffbf3
| border=1px solid #fff0cf
| icon=ghost
  | class=unknown-status-place-ambox
  | class=unknown-status-place-ambox
}}[[Category:Places of unknown status]]<!--
}}[[Category:Places of unknown status]]<!--
--></includeonly>
--></includeonly>

Latest revision as of 19:35, 18 December 2024

This template displays a message on places with an "Unknown" status value to let readers know they are viewing a page about a place which may no longer be active (and needs to be updated). It also adds the page to Category:Places of unknown status.

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" via the status_text parameter was provided for the form, this will replace the message box text.

{{Unknown status place}}

This article describes a place of unknown status—it may be closed or otherwise inactive.

You can help by investigating and updating this page (see Help:Validating a place).