Template:Building link/view: Difference between revisions

From Against the Storm Official Wiki
m (quick clarification on default size)
(adding a small flag class so it can have a narrower border)
Line 1: Line 1:
<span class="ats-link-building nowrap">{{#ifeq: {{{iconsize|}}} | none
<span class="ats-link-building {{#ifeq:{{{iconsize|}}}|small|ats-flag-small|}} nowrap">{{#ifeq: {{{iconsize|}}} | none
|<!--then skip icon-->
|<!--then skip icon-->
|<!--else do icon-->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{iconsize|medium}}}
|<!--else do icon-->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{iconsize|medium}}}
Line 17: Line 17:
== Examples ==
== Examples ==


<pre>{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=medium|name=Furnace|plural=s}}</pre>
<pre>{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=small|name=Furnace|plural=s}}</pre>
{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=medium|name=Furnace|plural=s}}
{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=small|name=Furnace|plural=s}}





Revision as of 03:58, 19 October 2024

Name? Name?


Templates in the Reserved templates subcategory are NOT intended to be used directly by article authors.

These templates are reserved for special pages, meta pages, and automated by Lua modules.

Please reach out to the wiki community for alternatives before you use these templates on your pages.

Examples

{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=small|name=Furnace|plural=s}}

Furnace Furnaces


{{Building_link/view|iconsize=none|name=Furnace|plural=s}}

Furnaces


{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=large|name=Furnace|display=notext|plural=s}}

Furnace


{{Building_link/view|iconfilename=Ranch_icon.png|iconsize=medium|name=Ranch}}
Ranch Ranch
{{Building_link/view|iconsize=none|name=Ranch|plural=es}}
Ranches
{{Building_link/view|iconfilename=Ranch_icon.png|iconsize=huge|name=Ranch|display=notext|plural=es}}
Ranch