Template:Building link/view: Difference between revisions
From Against the Storm Official Wiki
m (multiple sizes for testing) |
(Adding support for plural names) |
||
Line 6: | Line 6: | ||
|<!--default (small is not an option for building icons)-->{{ImgM}} }} | link={{{name|Name?}}} | {{{name|Name?}}}]]}} {{#ifeq: {{{display|}}} | notext | |<!--default (small is not an option for building icons)-->{{ImgM}} }} | link={{{name|Name?}}} | {{{name|Name?}}}]]}} {{#ifeq: {{{display|}}} | notext | ||
|<!--then skip text --> | |<!--then skip text --> | ||
|<!--else do text -->[[{{{name|Name?}}}]]}}</span><noinclude> | |<!--else do text -->[[{{{name|Name?}}}]]{{{plural|}}}}}</span><noinclude> | ||
<!-- DO NOT change whitespace and newlines in the above template code, or it will output inappropriately. I've done the best that is possible with parserfunctions to create readable code, but there are some functions and markup that must start on the same line where the functions and markup before them end. --> | <!-- DO NOT change whitespace and newlines in the above template code, or it will output inappropriately. I've done the best that is possible with parserfunctions to create readable code, but there are some functions and markup that must start on the same line where the functions and markup before them end. --> | ||
Line 14: | Line 14: | ||
== Examples == | == Examples == | ||
<pre>{{Building_link/view|iconfilename= | <pre>{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=medium|name=Furnace|plural=s}}</pre> | ||
{{Building_link/view|iconfilename= | {{Building_link/view|iconfilename=Furnace_icon.png|iconsize=medium|name=Furnace|plural=s}} | ||
<pre>{{Building_link/view|iconsize=none|name= | <pre>{{Building_link/view|iconsize=none|name=Furnace|plural=s}}</pre> | ||
{{Building_link/view|iconsize=none|name= | {{Building_link/view|iconsize=none|name=Furnace|plural=s}} | ||
<pre>{{Building_link/view|iconfilename= | <pre>{{Building_link/view|iconfilename=Furnace_icon.png|iconsize=large|name=Furnace|display=notext|plural=s}}</pre> | ||
{{Building_link/view|iconfilename= | {{Building_link/view|iconfilename=Furnace_icon.png|iconsize=large|name=Furnace|display=notext|plural=s}} | ||
{|class=wikitable | {|class=wikitable | ||
| <pre>{{Building_link/view|iconfilename= | | <pre>{{Building_link/view|iconfilename=Ranch_icon.png|iconsize=medium|name=Ranch}}</pre> | ||
| {{Building_link/view|iconfilename= | | {{Building_link/view|iconfilename=Ranch_icon.png|iconsize=medium|name=Ranch}} | ||
|- | |- | ||
| <pre>{{Building_link/view|iconsize=none|name= | | <pre>{{Building_link/view|iconsize=none|name=Ranch|plural=es}}</pre> | ||
| {{Building_link/view|iconsize=none|name= | | {{Building_link/view|iconsize=none|name=Ranch|plural=es}} | ||
|- | |- | ||
| <pre>{{Building_link/view|iconfilename= | | <pre>{{Building_link/view|iconfilename=Ranch_icon.png|iconsize=huge|name=Ranch|display=notext|plural=es}}</pre> | ||
| {{Building_link/view|iconfilename= | | {{Building_link/view|iconfilename=Ranch_icon.png|iconsize=huge|name=Ranch|display=notext|plural=es}} | ||
|} | |} | ||
[[Category:Reserved templates]] | [[Category:Reserved templates]] | ||
</noinclude> | </noinclude> |
Revision as of 01:24, 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}} |