Template:Inactive place: Difference between revisions

From stencil.wiki
No edit summary
No edit summary
 
(12 intermediate revisions by 2 users not shown)
Line 2: Line 2:
This template displays a message on places with an "Inactive" <code>status</code> value to let readers know they are viewing a page about a place which no longer uses a duplicator or is otherwise inactive. It also adds the page to [[:Category:Inactive places]].
This template displays a message on places with an "Inactive" <code>status</code> value to let readers know they are viewing a page about a place which no longer uses a duplicator or is otherwise inactive. It also adds the page to [[:Category:Inactive 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 ==
Line 9: Line 9:
{{Inactive place}}
{{Inactive place}}
</pre>
</pre>
{{Inactive place}}
{{mbox
 
| text={{#if:{{#show:{{PAGENAME}}|?Has status message}}|{{#show:{{PAGENAME}}|?Has status message}}|This {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} is no longer active in [[stencil printing]] but remains in the wiki for historical reference.}}
| color_bar=#009DA5
| background=#f2fafa
| border=1px solid #E6F5F6
| class=inactive-place-ambox
| icon=hand fa-flip-horizontal
}}
</noinclude><!--
</noinclude><!--
--><includeonly>{{mbox
--><includeonly>{{mbox
  | 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 no longer active.}}
  | text={{#if:{{#show:{{PAGENAME}}|?Has status message}}|{{#show:{{PAGENAME}}|?Has status message}}|This {{#if:{{#show:{{PAGENAME}}|?Has place type}}|{{lc:{{#arraymap:{{#show:{{PAGENAME}}|?Has place type}}|,|@@@@|@@@@|/}}}}|place}} is no longer active in [[stencil printing]] but remains in the wiki for historical reference.}}
  | color_bar=#B9C3CD
  | color_bar=#009DA5
| background=#f2fafa
| border=1px solid #E6F5F6
  | class=inactive-place-ambox
  | class=inactive-place-ambox
| icon=hand fa-flip-horizontal
}}[[Category:Inactive places]]<!--
}}[[Category:Inactive places]]<!--
--></includeonly>
--></includeonly>

Latest revision as of 15:18, 17 December 2024

This template displays a message on places with an "Inactive" status value to let readers know they are viewing a page about a place which no longer uses a duplicator or is otherwise inactive. It also adds the page to Category:Inactive 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.

{{Inactive place}}
This place is no longer active in stencil printing but remains in the wiki for historical reference.