Template:Specialization link/view: Difference between revisions
From Against the Storm Official Wiki
m (Improved example) |
m (76561197969631737 moved page Template:Specialization to Template:Specialization link/view: Moving view templates as subpages under the things that use them) |
||
(5 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">{{#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|}}} | |link={{{name|Specialization}}} | {{{name|}}} ({{{type|}}}) ]]}} {{#ifeq: {{{1|}}} | notext | ||
}} [[{{{name|Specialization}}}]]</span></includeonly><noinclude> | |<!-- then skip text part --> | ||
|<!-- else do text part -->[[{{{name|Specialization}}} |{{{name|}}} ({{{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]]. | ||
Line 12: | Line 13: | ||
<code><nowiki>{{Specialization|iconfilename=Icon_Spec_Fire_64x64.png|size=medium|name=Warmth}}</nowiki></code> | <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}} | {{Specialization|iconfilename=Icon_Spec_Fire_64x64.png|size=medium|name=Warmth|type=Comfort}} | ||
[[Category: Reserved templates]] | [[Category: Reserved templates]] | ||
[[Category: Link templates]] | [[Category: Link templates]] | ||
</noinclude> | </noinclude> |
Latest revision as of 03:31, 29 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}}