Difference between revisions of "Template:Icon/doc"

From Summertime Saga Wiki
Jump to: navigation, search
(Created page with "This template inserts the following: <pre>File:{{{1}}} icon.png{{!}}alt{{=}}{{{1}}}{{!}}link{{=}}{{{2|{{{1}}}}}}{{!}}[[{{{2|{{{1}}}}}}|{{{3|{{{2|{{{1}}}}}}}}}]]</pre> It has n...")
 
m (Example)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
 
It has no square braces, so it could be used in galleries (with [[:wikipedia:Help:Magic words#Formatting|#tag: construction]]). Although if braces are added manually, it will produce regular linked picture without any parameters or text.
 
It has no square braces, so it could be used in galleries (with [[:wikipedia:Help:Magic words#Formatting|#tag: construction]]). Although if braces are added manually, it will produce regular linked picture without any parameters or text.
  
== Samples ==
+
== Example ==
  
<pre>
+
{|class=wikitable style="width:100%;"
{{#tag:Gallery|
+
! Markup
 +
! Renders as
 +
|-
 +
| <pre>{{#tag:Gallery|
 
{{Icon|Cat food}}
 
{{Icon|Cat food}}
 +
}}}</pre>
 +
| {{#tag:Gallery|
 +
{{Icon|Cat food}}
 +
}}
 +
|-
 +
| <pre>{{#tag:Gallery|
 +
{{Icon|Nom nom|Cat food}}
 +
}}</pre>
 +
| {{#tag:Gallery|
 
{{Icon|Nom nom|Cat food}}
 
{{Icon|Nom nom|Cat food}}
 +
}}
 +
|-
 +
| <pre>{{#tag:Gallery|
 
{{Icon|Nom nom|Cat food|Nom nom}}
 
{{Icon|Nom nom|Cat food|Nom nom}}
}}
+
}}</pre>  
</pre>  
+
| {{#tag:Gallery|
will produce
 
{{#tag:Gallery|
 
{{Icon|Cat food}}
 
{{Icon|Nom nom|Cat food}}
 
 
{{Icon|Nom nom|Cat food|Nom nom}}
 
{{Icon|Nom nom|Cat food|Nom nom}}
 
}}
 
}}
 +
|}
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
[[Category:Templates documentation]]
 
[[Category:Templates documentation]]

Latest revision as of 00:51, 11 July 2020

This template inserts the following:

File:{{{1}}} icon.png{{!}}alt{{=}}{{{1}}}{{!}}link{{=}}{{{2|{{{1}}}}}}{{!}}[[{{{2|{{{1}}}}}}|{{{3|{{{2|{{{1}}}}}}}}}]]

It has no square braces, so it could be used in galleries (with #tag: construction). Although if braces are added manually, it will produce regular linked picture without any parameters or text.

Example

Markup Renders as
{{#tag:Gallery|
{{Icon|Cat food}}
}}}
{{#tag:Gallery|
{{Icon|Nom nom|Cat food}}
}}
{{#tag:Gallery|
{{Icon|Nom nom|Cat food|Nom nom}}
}}