Template:Resource link/view: Difference between revisions

From Against the Storm Official Wiki
m (updating comments)
(adding includeonly; removing examples to make the reserved template warning stand out)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<span class="ats-link-resource">{{#ifeq: {{{iconsize|}}} | none
<includeonly><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}}}
Line 7: Line 7:
|<!--default-->{{ImgS}} }} | link={{{name|Name?}}} | {{{name|Name?}}}]]}} {{#ifeq: {{{display|}}} | notext
|<!--default-->{{ImgS}} }} | link={{{name|Name?}}} | {{{name|Name?}}}]]}} {{#ifeq: {{{display|}}} | notext
|<!--then skip text-->
|<!--then skip text-->
|<!--else do text-->[[{{{name|Name?}}}]]}}</span><noinclude>
|<!--else do text-->[[{{{name|Name?}}}]]}}</span></includeonly><noinclude>
 
<!-- DO NOT change whitespace and newlines in the above template code, or it will output inappropriately. I've done the best that is possible with parserfunctions to create readable code, but there are some functions and markup that must start on the same line where the functions and markup before them end. -->


{{Template:Reserved_template_warning}}
{{Template:Reserved_template_warning}}
== Examples ==
<pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}</pre>
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}
<pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}</pre>
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}
<pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}}</pre>
{{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>
{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}}
{|class=wikitable
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}</pre>
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png}}
|-
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}</pre>
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=huge}}
|-
| <pre>{{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|iconsize=none}}</pre>
| {{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>
| {{Resource link/view|name=Pie|iconfilename=Icon_Resource_Pie.png|display=notext}}
|}


[[Category:Reserved templates]]
[[Category:Reserved templates]]
</noinclude>
</noinclude>

Latest revision as of 14:00, 9 November 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.