Difference between revisions of "Template:Icons"
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. For more info about icons see '''[[Sacred 2:Map Icons|Map Icons]]''': | |In {{PAGENAME}} you can find the below services. For more info about icons see '''[[Sacred 2:Map Icons|Map Icons]]''': | ||
{| | {| | ||
Line 22: | Line 22: | ||
|} | |} | ||
|} | |} | ||
− | </ | + | </includeonly> |
+ | |||
+ | 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 46: | Line 48: | ||
|} | |} | ||
+ | |||
+ | In order to use this template there must always be 16 bars, | , within the template code on your page. <nowiki>{{Icons||||||||||||||||}}</nowiki> After each bar a number can be typed in order to generate an icon. Each bar is associated to a number and icon in numerical order. <nowiki>{{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}}</nowiki> The easiest way to use this template would be to copy <nowiki>{{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}}</nowiki> and then remove the numbers that are not needed like the below example. | ||
+ | |||
+ | You type this: | ||
+ | <pre>{{Icons||2|||5|6||||||12|13|||}}</pre> | ||
+ | |||
+ | Wiki shows this: | ||
+ | {{Icons||2|||5|6||||||12|13|||}} | ||
Revision as of 05:22, 10 June 2009
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 there must always be 16 bars, | , within the template code on your page. {{Icons||||||||||||||||}} After each bar a number can be typed in order to generate an icon. Each bar is associated to a number and icon in numerical order. {{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}} The easiest way to use this template would be to copy {{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}} and then remove the numbers that are not needed like the below example.
You type this:
{{Icons||2|||5|6||||||12|13|||}}
Wiki shows this:
In Icons you can find the below services. For more info about icons see Map Icons:
|
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 there must always be 16 bars, | , within the template code on your page. {{Icons||||||||||||||||}} After each bar a number can be typed in order to generate an icon. Each bar is associated to a number and icon in numerical order. {{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}} The easiest way to use this template would be to copy {{Icons|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16}} and then remove the numbers that are not needed like the below example.
You type this:
{{Icons||2|||5|6||||||12|13|||}}
Wiki shows this: Template loop detected: Template:Icons
The code on this Template that makes it all work:
{|cellspacing="0" cellpadding="0" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;" |In {{PAGENAME}} you can find the below services. For more info about icons see '''[[Sacred 2:Map Icons|Map Icons]]''': {| | |- {{#ifeq: 1 |{{{1}}}|{{!}}<span style="cursor:help;" title="Campaign Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/gold-.png</span>|}} {{#ifeq: 2 |{{{2}}}|{{!}}<span style="cursor:help;" title="Side Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/grey-.png</span>|}} {{#ifeq: 3 |{{{3}}}|{{!}}<span style="cursor:help;" title="Character Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/blue-.png</span>|}} {{#ifeq: 4 |{{{4}}}|{{!}}<span style="cursor:help;" title="Ascaron Employee">http://www.sacredwiki.org/images/Sacred_2/Icon/grey.png</span>|}} {{#ifeq: 5 |{{{5}}}|{{!}}<span style="cursor:help;" title="Merchant">http://www.sacredwiki.org/images/Sacred_2/Icon/merchant.png</span>|}} {{#ifeq: 6 |{{{6}}}|{{!}}<span style="cursor:help;" title="Blacksmith">http://www.sacredwiki.org/images/Sacred_2/Icon/blacksmith.png</span>|}} {{#ifeq: 7 |{{{7}}}|{{!}}<span style="cursor:help;" title="Rune Master">http://www.sacredwiki.org/images/Sacred_2/Icon/runemaster.png</span>|}} {{#ifeq: 8 |{{{8}}}|{{!}}<span style="cursor:help;" title="Horse Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/horsetrader.png</span>|}} {{#ifeq: 9 |{{{9}}}|{{!}}<span style="cursor:help;" title="Special Mount Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/specialmount.png</span>|}} {{#ifeq: 10 |{{{10}}}|{{!}}<span style="cursor:help;" title="Captain">http://www.sacredwiki.org/images/Sacred_2/Icon/captain.png</span>|}} {{#ifeq: 11 |{{{11}}}|{{!}}<span style="cursor:help;" title="Storage Chest">http://www.sacredwiki.org/images/Sacred_2/Icon/chest.png</span>|}} {{#ifeq: 12 |{{{12}}}|{{!}}<span style="cursor:help;" title="Monolith">http://www.sacredwiki.org/images/Sacred_2/Icon/activemonolith.png</span>|}} {{#ifeq: 13 |{{{13}}}|{{!}}<span style="cursor:help;" title="Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/interportal.png</span>|}} {{#ifeq: 14 |{{{14}}}|{{!}}<span style="cursor:help;" title="Mini Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/teleport.png</span>|}} {{#ifeq: 15 |{{{15}}}|{{!}}<span style="cursor:help;" title="Graveyard">http://www.sacredwiki.org/images/Sacred_2/Icon/graveyard.png</span>|}} {{#ifeq: 16 |{{{16}}}|{{!}}<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span>|}} |} |}
The code on this Template that makes it all work:
{|cellspacing="0" cellpadding="0" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;" |In {{PAGENAME}} you can find the below services. For more info about icons see '''[[Sacred 2:Map Icons|Map Icons]]''': {| | |- {{#ifeq: 1 |{{{1}}}|{{!}}<span style="cursor:help;" title="Campaign Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/gold-.png</span>|}} {{#ifeq: 2 |{{{2}}}|{{!}}<span style="cursor:help;" title="Side Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/grey-.png</span>|}} {{#ifeq: 3 |{{{3}}}|{{!}}<span style="cursor:help;" title="Character Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/blue-.png</span>|}} {{#ifeq: 4 |{{{4}}}|{{!}}<span style="cursor:help;" title="Ascaron Employee">http://www.sacredwiki.org/images/Sacred_2/Icon/grey.png</span>|}} {{#ifeq: 5 |{{{5}}}|{{!}}<span style="cursor:help;" title="Merchant">http://www.sacredwiki.org/images/Sacred_2/Icon/merchant.png</span>|}} {{#ifeq: 6 |{{{6}}}|{{!}}<span style="cursor:help;" title="Blacksmith">http://www.sacredwiki.org/images/Sacred_2/Icon/blacksmith.png</span>|}} {{#ifeq: 7 |{{{7}}}|{{!}}<span style="cursor:help;" title="Rune Master">http://www.sacredwiki.org/images/Sacred_2/Icon/runemaster.png</span>|}} {{#ifeq: 8 |{{{8}}}|{{!}}<span style="cursor:help;" title="Horse Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/horsetrader.png</span>|}} {{#ifeq: 9 |{{{9}}}|{{!}}<span style="cursor:help;" title="Special Mount Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/specialmount.png</span>|}} {{#ifeq: 10 |{{{10}}}|{{!}}<span style="cursor:help;" title="Captain">http://www.sacredwiki.org/images/Sacred_2/Icon/captain.png</span>|}} {{#ifeq: 11 |{{{11}}}|{{!}}<span style="cursor:help;" title="Storage Chest">http://www.sacredwiki.org/images/Sacred_2/Icon/chest.png</span>|}} {{#ifeq: 12 |{{{12}}}|{{!}}<span style="cursor:help;" title="Monolith">http://www.sacredwiki.org/images/Sacred_2/Icon/activemonolith.png</span>|}} {{#ifeq: 13 |{{{13}}}|{{!}}<span style="cursor:help;" title="Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/interportal.png</span>|}} {{#ifeq: 14 |{{{14}}}|{{!}}<span style="cursor:help;" title="Mini Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/teleport.png</span>|}} {{#ifeq: 15 |{{{15}}}|{{!}}<span style="cursor:help;" title="Graveyard">http://www.sacredwiki.org/images/Sacred_2/Icon/graveyard.png</span>|}} {{#ifeq: 16 |{{{16}}}|{{!}}<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span>|}} |} |}