Difference between revisions of "Template:Icons"
Jump to navigation
Jump to search
m |
m |
||
(15 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
− | < | + | <includeonly>{|cellspacing="2" cellpadding="2" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;" |
− | |In {{PAGENAME}} you can find the below services. | + | |In {{PAGENAME}} you can find the below services. See '''[[Sacred 2:Map Icons|Map Icons]]''': |
{| | {| | ||
| | | | ||
|- | |- | ||
− | {{# | + | {{#if: {{{1}}}|{{!}} {{Icon|{{{1}}}}}|{{!}}'''None'''}} |
− | {{# | + | {{#if: {{{2}}}|{{!}} {{Icon|{{{2}}}}}}} |
− | {{# | + | {{#if: {{{3}}}|{{!}} {{Icon|{{{3}}}}}}} |
− | {{# | + | {{#if: {{{4}}}|{{!}} {{Icon|{{{4}}}}}}} |
− | {{# | + | {{#if: {{{5}}}|{{!}} {{Icon|{{{5}}}}}}} |
− | {{# | + | {{#if: {{{6}}}|{{!}} {{Icon|{{{6}}}}}}} |
− | {{# | + | {{#if: {{{7}}}|{{!}} {{Icon|{{{7}}}}}}} |
− | {{# | + | {{#if: {{{8}}}|{{!}} {{Icon|{{{8}}}}}}} |
− | {{# | + | {{#if: {{{9}}}|{{!}} {{Icon|{{{9}}}}}}} |
− | {{# | + | {{#if: {{{10}}}|{{!}} {{Icon|{{{10}}}}}}} |
− | {{# | + | {{#if: {{{11}}}|{{!}} {{Icon|{{{11}}}}}}} |
− | {{# | + | {{#if: {{{12}}}|{{!}} {{Icon|{{{12}}}}}}} |
− | {{# | + | {{#if: {{{13}}}|{{!}} {{Icon|{{{13}}}}}}} |
− | {{# | + | {{#if: {{{14}}}|{{!}} {{Icon|{{{14}}}}}}} |
− | {{# | + | {{#if: {{{15}}}|{{!}} {{Icon|{{{15}}}}}}} |
− | {{# | + | {{#if: {{{16}}}|{{!}} {{Icon|{{{16}}}}}}} |
|} | |} | ||
− | |} | + | |}</includeonly> |
− | < | + | <noinclude> |
− | + | Numbers that are associated to icons: | |
{|style="text-align:center;" border="1" cellpadding="5" cellspacing="0" | {|style="text-align:center;" border="1" cellpadding="5" cellspacing="0" | ||
Line 45: | Line 45: | ||
|<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span> | |<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span> | ||
|} | |} | ||
+ | |||
+ | |||
+ | In order to use this template you just have to supply numbers separated by bars , | , and each number will generate an icon. In order to use this template you must take a look at the above table to see which number is associated to each icon, and supply the numbers to the template in the order you want. | ||
+ | |||
+ | You type this: | ||
+ | <pre>{{Icons|2|5|6|12|13}}</pre> | ||
+ | |||
+ | Wiki shows this: | ||
+ | {{Icons|2|5|6|12|13}} | ||
+ | |||
+ | You can also print a table, keeping the current layout, without any icons. Then the '''None''' word will appear instead. Note you have always to supply a bar , | , after the template name. | ||
+ | |||
+ | So, if you type this: | ||
+ | <pre>{{Icons|}}</pre> | ||
+ | |||
+ | Wiki shows this: | ||
+ | {{Icons|}} | ||
+ | |||
+ | |||
+ | The code on this Template that makes it all work: | ||
+ | |||
+ | <pre> | ||
+ | {|cellspacing="2" cellpadding="2" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;" | ||
+ | |In {{PAGENAME}} you can find the below services. See '''[[Sacred 2:Map Icons|Map Icons]]''': | ||
+ | {| | ||
+ | | | ||
+ | |- | ||
+ | {{#if: {{{1}}}|{{!}} {{Icon|{{{1}}}}}|{{!}}'''None'''}} | ||
+ | {{#if: {{{2}}}|{{!}} {{Icon|{{{2}}}}}}} | ||
+ | {{#if: {{{3}}}|{{!}} {{Icon|{{{3}}}}}}} | ||
+ | {{#if: {{{4}}}|{{!}} {{Icon|{{{4}}}}}}} | ||
+ | {{#if: {{{5}}}|{{!}} {{Icon|{{{5}}}}}}} | ||
+ | {{#if: {{{6}}}|{{!}} {{Icon|{{{6}}}}}}} | ||
+ | {{#if: {{{7}}}|{{!}} {{Icon|{{{7}}}}}}} | ||
+ | {{#if: {{{8}}}|{{!}} {{Icon|{{{8}}}}}}} | ||
+ | {{#if: {{{9}}}|{{!}} {{Icon|{{{9}}}}}}} | ||
+ | {{#if: {{{10}}}|{{!}} {{Icon|{{{10}}}}}}} | ||
+ | {{#if: {{{11}}}|{{!}} {{Icon|{{{11}}}}}}} | ||
+ | {{#if: {{{12}}}|{{!}} {{Icon|{{{12}}}}}}} | ||
+ | {{#if: {{{13}}}|{{!}} {{Icon|{{{13}}}}}}} | ||
+ | {{#if: {{{14}}}|{{!}} {{Icon|{{{14}}}}}}} | ||
+ | {{#if: {{{15}}}|{{!}} {{Icon|{{{15}}}}}}} | ||
+ | {{#if: {{{16}}}|{{!}} {{Icon|{{{16}}}}}}} | ||
+ | |} | ||
+ | |} | ||
+ | </pre> | ||
+ | </noinclude> |
Latest revision as of 19:41, 31 October 2013
Numbers that are associated to icons:
1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 |
In order to use this template you just have to supply numbers separated by bars , | , and each number will generate an icon. In order to use this template you must take a look at the above table to see which number is associated to each icon, and supply the numbers to the template in the order you want.
You type this:
{{Icons|2|5|6|12|13}}
Wiki shows this:
In Icons you can find the below services. See Map Icons:
|
You can also print a table, keeping the current layout, without any icons. Then the None word will appear instead. Note you have always to supply a bar , | , after the template name.
So, if you type this:
{{Icons|}}
Wiki shows this:
In Icons you can find the below services. See Map Icons:
|
The code on this Template that makes it all work:
{|cellspacing="2" cellpadding="2" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;" |In {{PAGENAME}} you can find the below services. See '''[[Sacred 2:Map Icons|Map Icons]]''': {| | |- {{#if: {{{1}}}|{{!}} {{Icon|{{{1}}}}}|{{!}}'''None'''}} {{#if: {{{2}}}|{{!}} {{Icon|{{{2}}}}}}} {{#if: {{{3}}}|{{!}} {{Icon|{{{3}}}}}}} {{#if: {{{4}}}|{{!}} {{Icon|{{{4}}}}}}} {{#if: {{{5}}}|{{!}} {{Icon|{{{5}}}}}}} {{#if: {{{6}}}|{{!}} {{Icon|{{{6}}}}}}} {{#if: {{{7}}}|{{!}} {{Icon|{{{7}}}}}}} {{#if: {{{8}}}|{{!}} {{Icon|{{{8}}}}}}} {{#if: {{{9}}}|{{!}} {{Icon|{{{9}}}}}}} {{#if: {{{10}}}|{{!}} {{Icon|{{{10}}}}}}} {{#if: {{{11}}}|{{!}} {{Icon|{{{11}}}}}}} {{#if: {{{12}}}|{{!}} {{Icon|{{{12}}}}}}} {{#if: {{{13}}}|{{!}} {{Icon|{{{13}}}}}}} {{#if: {{{14}}}|{{!}} {{Icon|{{{14}}}}}}} {{#if: {{{15}}}|{{!}} {{Icon|{{{15}}}}}}} {{#if: {{{16}}}|{{!}} {{Icon|{{{16}}}}}}} |} |}