Template:Species link/view: Difference between revisions

From Against the Storm Official Wiki
m (swapping spaces for nbsp)
m (finally might be done tweaking the whitespace in this thing)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="ats-link-species">{{#ifeq: {{{size|}}} | none
<includeonly><span class="ats-link-species nowrap">{{#ifeq: {{{size|}}} | none  
| <!-- then skip icon -->
| <!--skip icon-->  
| <!-- else do icon -->[[File:{{{iconfilename|question_mark.png}}} | {{#switch:{{{size|small}}} |medium={{ImgM}}|large={{ImgL}}|huge={{ImgH}}|{{ImgS}} }}
|<!--do icon -->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{size|small}}}  
|link={{{name|Species}}} |{{{name|Species}}}]]
| medium={{ImgM}}  
}}{{#ifeq: {{{1|}}} | notext
| large={{ImgL}}  
| <!-- then skip text part -->
| huge={{ImgH}}  
| <!-- else do text part -->&nbsp;[[{{{name|Species}}}]]}}</span></includeonly><noinclude>
|<!--else-->{{ImgS}} }} | link={{{name|Species}}} | {{{name|Species}}}]]}} {{#ifeq: {{{display|}}} | notext  
| <!--skip text-->  
|<!--do text -->[[{{{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]].
<!-- 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. -->


== Example ==
{{Template:Reserved_template_warning}}
 
<code><nowiki>{{Species|name=Human|iconfilename=Human_temp.png|size=medium}}</nowiki></code>
 
{{Species|name=Human|iconfilename=Human_temp.png|size=medium}}


[[Category: Reserved templates]]
[[Category: Reserved templates]]
[[Category: Link templates]]
</noinclude>
</noinclude>

Latest revision as of 00:07, 12 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.