Template:Building link/view: Difference between revisions
From Against the Storm Official Wiki
(Adding support for plural names) |
m (checking for typos) |
||
(One intermediate revision by the same user not shown) | |||
Line 1: | Line 1: | ||
<span class="ats-link-building nowrap">{{#ifeq: {{{iconsize|}}} | none | <span class="ats-link-building 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}}} | ||
|<!--case--> large={{ImgL}} | |<!--case--> small={{ImgS}} | ||
|<!--case--> huge={{ImgH}} | |<!--case--> large={{ImgL}} | ||
|<!--default | |<!--case--> huge={{ImgH}} | ||
|<!--default-->{{ImgM}} }} | link={{{name|Name?}}} | {{{name|Name?}}}]]}} {{#ifeq: {{{display|}}} | notext | |||
|<!--then skip text --> | |<!--then skip text --> | ||
|<!--else do text -->[[{{{name|Name?}}}]]{{{plural|}}}}}</span><noinclude> | |<!--else do text -->[[{{{name|Name?}}}]]{{{plural|}}}}}</span><noinclude> |
Latest revision as of 03:16, 15 October 2024
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=medium|name=Furnace|plural=s}}
{{Building_link/view|iconsize=none|name=Furnace|plural=s}}
{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=large|name=Furnace|display=notext|plural=s}}
{{Building_link/view|iconfilename=Ranch_icon.png|iconsize=medium|name=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}} |