Template:Specialization link/view: Difference between revisions
From Against the Storm Official Wiki
m (76561197969631737 moved page Template:Specialization to Template:Specialization link/view: Moving view templates as subpages under the things that use them) |
(Editing code; fixing extra leading space when no icon.) |
||
Line 1: | Line 1: | ||
<includeonly><span class="ats-link-specialization">{{#ifeq: {{{ | <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:{{{ | [[File:{{{iconfilename|question_mark.png}}} | | ||
|link={{{name|Specialization}}} | {{{name|}}} | {{#switch:{{{iconsize|small}}} | ||
|<!-- then skip text part --> | |medium={{ImgM}} | ||
|<!-- else do text part -->[[{{{name|Specialization}}} |{{{name|}}} | |large={{ImgL}} | ||
|<!--default small--> {{ImgS}} }} | |||
|link={{{name|Specialization}}} | |||
|{{{name|}}} {{#if:{{{type|}}}|({{{type|}}})|}} | |||
]] | |||
}}{{#ifeq: {{{display|}}} | notext | |||
|<!-- then skip text part --> | |||
|<!-- else do text part -->{{#ifeq:{{{iconsize|}}}|none|<!--skip space-->| }}[[{{{name|Specialization}}} |{{{name|}}} {{#if:{{{type|}}}|({{{type|}}})|}}]] | |||
}}</span></includeonly><noinclude> | |||
{{Specialization link/view|iconfilename=Icon_Spec_Fire_64x64.png|iconsize=small|name=Warmth}} | |||
{{Specialization link/view|iconfilename=Icon_Spec_Fire_64x64.png|iconsize=medium|name=Warmth|type=Comfort}} | |||
{{Specialization link/view|iconfilename=Icon_Spec_Fire_64x64.png|iconsize=large|name=Name|type=Type}} | |||
{{Specialization link/view|iconsize=none|name=Masonry|type=Proficiency}} | |||
{{Specialization link/view|iconfilename=Icon_Spec_Fire_64x64.png|iconsize=medium|name=Name|type=Type|display=notext}} | |||
[[Category: Reserved templates]] | [[Category: Reserved templates]] | ||
</noinclude> | </noinclude> |