Template:Specialization link/view: Difference between revisions

From Against the Storm Official Wiki
m (swapping spaces for nbsp)
m (removing an extra space I hope)
Line 1: Line 1:
<includeonly><span class="ats-link-specialization">{{#ifeq: {{{size|}}} | none  
<includeonly><span class="ats-link-specialization">{{#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|Specialization}}} | {{{name|}}}&nbsp;({{{type|}}}) ]]}}&nbsp;{{#ifeq: {{{1|}}} | notext
|link={{{name|Specialization}}} | {{{name|}}}&nbsp;({{{type|}}}) ]]}}&nbsp;{{#ifeq: {{{1|}}} | notext
| <!-- then skip text part -->
|<!-- then skip text part -->  
| <!-- else do text part -->[[{{{name|Specialization}}} | {{{name|}}}&nbsp;({{{type|}}})]]}}</span></includeonly><noinclude>
|<!-- else do text part -->[[{{{name|Specialization}}} |{{{name|}}}&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]].
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]].

Revision as of 03:04, 8 October 2024


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.

Example

{{Specialization|iconfilename=Icon_Spec_Fire_64x64.png|size=medium|name=Warmth}}

Template:Specialization