Template:Species link/view: Difference between revisions

From Against the Storm Official Wiki
(fixing whitespace; removing test code. I think this works now.)
(updating view template parameter size to iconsize)
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="ats-link-species nowrap">
<span class="ats-link-species nowrap">{{#ifeq: {{{iconsize|}}} | none  
{{#ifeq: {{{size|}}} | none
|<!--then skip icon-->
|<!--skip icon-->
|<!--else do icon -->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{iconsize|small}}}  
|<!--do icon -->[[File:{{{iconfilename|question_mark.png}}}|{{#switch:{{{size|small}}}|medium={{ImgM}}|large={{ImgL}}|huge={{ImgH}}|{{ImgS}}}}|link={{{name|Species}}}|{{{name|Species}}}]]}}
|<!--case--> medium={{ImgM}}  
{{#ifeq: {{{display|}}} | notext
|<!--case--> large={{ImgL}}  
|<!--skip text-->
|<!--case--> huge={{ImgH}}  
|<!--do text -->[[{{{name|Species}}}]]}}
|<!--default-->{{ImgS}} }} | link={{{name|Species}}} | {{{name|Species}}}]]}} {{#ifeq: {{{display|}}} | notext  
</span></includeonly><noinclude>
|<!--then skip text-->
|<!--else do text -->[[{{{name|Species}}}]]}}</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. -->


{{Template:Reserved_template_warning}}
{{Template:Reserved_template_warning}}
== Examples ==
<pre>{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}</pre>
{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}
<pre>{{Species_link/view|iconsize=none|name=Humans}}</pre>
{{Species_link/view|iconsize=none|name=Humans}}
<pre>{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans|display=notext}}</pre>
{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans|display=notext}}
{|class=wikitable
| <pre>{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}</pre>
| {{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}
|-
| <pre>{{Species_link/view|iconsize=none|name=Humans}}</pre>
| {{Species_link/view|iconsize=none|name=Humans}}
|-
| <pre>{{Species_link/view|iconfilename=human_temp.png|iconsize=large|name=Humans|display=notext}}</pre>
| {{Species_link/view|iconfilename=human_temp.png|iconsize=large|name=Humans|display=notext}}
|}


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

Latest revision as of 02:35, 15 October 2024

Species Species


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

{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}

Humans Humans


{{Species_link/view|iconsize=none|name=Humans}}

Humans


{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans|display=notext}}

Humans


{{Species_link/view|iconfilename=human_temp.png|iconsize=medium|name=Humans}}
Humans Humans
{{Species_link/view|iconsize=none|name=Humans}}
Humans
{{Species_link/view|iconfilename=human_temp.png|iconsize=large|name=Humans|display=notext}}
Humans