Template:Resource link/view: Difference between revisions
From Against the Storm Official Wiki
m (updating comments) |
(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) |
||
Line 1: | Line 1: | ||
<span class="ats-link-resource">{{#ifeq: {{{iconsize|}}} | none | <span class="ats-link-resource {{#ifeq:{{{iconsize|}}}|small|ats-flag-small|}}">{{#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}}} | ||
Line 15: | Line 15: | ||
== Examples == | == Examples == | ||
<pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}</pre> | <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}}</pre> | ||
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}} | {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}} | ||
Line 27: | Line 27: | ||
<pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}}</pre> | <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}}</pre> | ||
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}} | {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}} | ||
{|class=wikitable | {|class=wikitable | ||
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}</pre> | | <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}}</pre> | ||
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}} | | {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}} | ||
|- | |- | ||
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}</pre> | | <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}</pre> | ||
Line 41: | Line 41: | ||
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}} | | {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}} | ||
|- | |- | ||
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}}</pre> | | <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}}</pre> | ||
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}} | | {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}} | ||
|} | |} | ||
[[Category:Reserved templates]] | [[Category:Reserved templates]] | ||
</noinclude> | </noinclude> |
Revision as of 03:57, 19 October 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.
Examples
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}}
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}}
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=medium|display=notext}}
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=small}} |
Pie |
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}} |
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}} |