Template:Simpleicon: Difference between revisions
From questden
Jump to navigationJump to search
(Added description) |
m (centering for 3 icons) |
||
Line 5: | Line 5: | ||
'''Visual Example:''' | '''Visual Example:''' | ||
{{simpleicon|123|725| | {{simpleicon|123|725|320|1}} (Random images) | ||
'''Usage Examples''' | '''Usage Examples''' | ||
Line 33: | Line 33: | ||
{{#if:{{{3}}}| | {{#if:{{{3}}}| | ||
<tr><td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/icons/{{{3}}} http://tgchan.org/kusaba/thumb-for/icons/{{{3}}}.png]</span></td> | <tr><td style="padding: 2px;{{#if:{{{4}}}||text-align:center;|}}" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/icons/{{{3}}} http://tgchan.org/kusaba/thumb-for/icons/{{{3}}}.png]</span></td> | ||
{{#if:{{{4}}}| | {{#if:{{{4}}}| | ||
<td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/icons/{{{4}}} http://tgchan.org/kusaba/thumb-for/icons/{{{4}}}.png]</span></td>| | <td style="padding: 2px;" colspan="2"><span class="plainlinks">[http://tgchan.org/kusaba/image-for/icons/{{{4}}} http://tgchan.org/kusaba/thumb-for/icons/{{{4}}}.png]</span></td>| |
Revision as of 17:44, 19 July 2014
This uses the code from icon, so it's very similar, but it has a few removals and additions!
First, there is no caption or link, hence the name "simpleicon". Second, you can have up to four icons together! They stack in a 2x2 grid.
Visual Example:
(Random images)
Usage Examples
Using Simpleicon to get 4 images:
{{simpleicon|1|2|3|4}}
Using Simpleicon to get less than 4 images -- note that you must leave unused pipes, else it'll fail:
1 icon:{{simpleicon|1|||}}
2 icons:{{simpleicon|1|2||}}
3 icons:{{simpleicon|1|2|3|}}