Template:Resource link/view: Difference between revisions

From Against the Storm Official Wiki
(adding a small flag class so it can have a narrower border; cleaning up examples so they match what we'll get from the module better)
m (adding nowrap class . . . I hope this is okay)
Line 1: Line 1:
<span class="ats-link-resource {{#ifeq:{{{iconsize|}}}|small|ats-flag-small|}}">{{#ifeq: {{{iconsize|}}} | none
<span class="ats-link-resource {{#ifeq:{{{iconsize|}}}|small|ats-flag-small|}} nowrap">{{#ifeq: {{{iconsize|}}} | none
|<!--then skip icon-->
|<!--then skip icon-->
|<!--else do icon-->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{iconsize|small}}}
|<!--else do icon-->[[File:{{{iconfilename|question_mark.png}}} | {{#switch: {{{iconsize|small}}}

Revision as of 03:58, 19 October 2024

Name? Name?


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

{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}}

Pie Pie


{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}

Pie Pie


{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}}

Pie


{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}}

Pie


{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}}
Pie Pie
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}
Pie Pie
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}}
Pie
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}}
Pie