Template:Species link/view: Difference between revisions
From Against the Storm Official Wiki
(created to format a link to a species page; does not do any lookups or validation, so it's a reserved template) |
m (swapping spaces for nbsp) |
||
Line 1: | Line 1: | ||
<includeonly><span class="ats-link-species">{{#ifeq: {{{size|}}} | none | <includeonly><span class="ats-link-species">{{#ifeq: {{{size|}}} | none | ||
| <!-- then skip icon --> | | <!-- then skip icon --> | ||
| <!-- else do icon --> | | <!-- else do icon -->[[File:{{{iconfilename|question_mark.png}}} | {{#switch:{{{size|small}}} |medium={{ImgM}}|large={{ImgL}}|huge={{ImgH}}|{{ImgS}} }} | ||
[[File:{{{iconfilename|question_mark.png}}} | {{#switch:{{{size|small}}} |medium={{ImgM}}|large={{ImgL}}|huge={{ImgH}}|{{ImgS}} }} | |link={{{name|Species}}} |{{{name|Species}}}]] | ||
|link={{{name|Species}}} | {{{name|Species}}} ]] | }} {{#ifeq: {{{1|}}} | notext | ||
}} {{#ifeq: {{{1|}}} | notext | |||
| <!-- then skip text part --> | | <!-- then skip text part --> | ||
| <!-- else do text part --> | | <!-- else do text part -->[[{{{name|Species}}}]]}}</span></includeonly><noinclude> | ||
[[{{{name|Species}}}]] }}</span></includeonly><noinclude> | |||
This template formats a link to a species given an icon filename, icon size, and name of the species. It does no lookups or validation, so use cautiously or use [[Template:Species_link]]. | This template formats a link to a species given an icon filename, icon size, and name of the species. It does no lookups or validation, so use cautiously or use [[Template:Species_link]]. |
Revision as of 02:23, 8 October 2024
This template formats a link to a species given an icon filename, icon size, and name of the species. It does no lookups or validation, so use cautiously or use Template:Species_link.
Example
{{Species|name=Human|iconfilename=Human_temp.png|size=medium}}