Template:Specialization link/view: Difference between revisions

From Against the Storm Official Wiki
m (Improved example)
m (cleaning up some whitespace)
 
(12 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><span class="ats-link-specialization">{{#ifeq: {{{size|}}} | none  
<includeonly><span class="ats-link-specialization nowrap">{{#ifeq: {{{iconsize|}}} | 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:{{{iconsize|small}}} |medium={{ImgM}} |large={{ImgL}} |huge={{ImgL}} |<!--default small-->{{ImgS}} }} |link={{{name|Specialization}}} |{{{name|}}} ]]
|link={{{name|Specialization}}} | {{{name|}}} specialization ]]
}}{{#ifeq: {{{display|}}} | notext
}} [[{{{name|Specialization}}}]]</span></includeonly><noinclude>
  |<!-- then skip text part -->
  |<!-- else do text part -->{{#ifeq:{{{iconsize|}}}|none|<!--skip space-->|&nbsp;}}[[{{{name|Specialization}}} |{{{name|}}}{{#if:{{{type|}}}|&nbsp;({{{type|}}})|}}]]
}}</span></includeonly><noinclude>


This template formats a link to a specialization given an icon filename, icon size, and name of the specialization. It does no validation, so use cautiously or use [[Template:sl]].
{{Reserved template warning}}
 
== Example ==
 
<code><nowiki>{{Specialization|iconfilename=Icon_Spec_Fire_64x64.png|size=medium|name=Warmth}}</nowiki></code>
 
{{Specialization|iconfilename=Icon_Spec_Fire_64x64.png|size=medium|name=Warmth}}


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

Latest revision as of 22:12, 8 November 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.