Difference between revisions of "Template:Icons"

From SacredWiki
Jump to navigation Jump to search
m
m
 
(9 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 
<includeonly>{|cellspacing="2" cellpadding="2" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;"
 
<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.  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>|<nowiki></nowiki>}}
+
{{#if: {{{1}}}|{{!}} {{Icon|{{{1}}}}}|{{!}}'''None'''}}
{{#ifeq: 2 |{{{2}}}|{{!}}<span style="cursor:help;" title="Side Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/grey-.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{2}}}|{{!}} {{Icon|{{{2}}}}}}}
{{#ifeq: 3 |{{{3}}}|{{!}}<span style="cursor:help;" title="Character Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/blue-.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{3}}}|{{!}} {{Icon|{{{3}}}}}}}
{{#ifeq: 4 |{{{4}}}|{{!}}<span style="cursor:help;" title="Ascaron Employee">http://www.sacredwiki.org/images/Sacred_2/Icon/grey.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{4}}}|{{!}} {{Icon|{{{4}}}}}}}
{{#ifeq: 5 |{{{5}}}|{{!}}<span style="cursor:help;" title="Merchant">http://www.sacredwiki.org/images/Sacred_2/Icon/merchant.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{5}}}|{{!}} {{Icon|{{{5}}}}}}}
{{#ifeq: 6 |{{{6}}}|{{!}}<span style="cursor:help;" title="Blacksmith">http://www.sacredwiki.org/images/Sacred_2/Icon/blacksmith.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{6}}}|{{!}} {{Icon|{{{6}}}}}}}
{{#ifeq: 7 |{{{7}}}|{{!}}<span style="cursor:help;" title="Rune Master">http://www.sacredwiki.org/images/Sacred_2/Icon/runemaster.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{7}}}|{{!}} {{Icon|{{{7}}}}}}}
{{#ifeq: 8 |{{{8}}}|{{!}}<span style="cursor:help;" title="Horse Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/horsetrader.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{8}}}|{{!}} {{Icon|{{{8}}}}}}}
{{#ifeq: 9 |{{{9}}}|{{!}}<span style="cursor:help;" title="Special Mount Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/specialmount.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{9}}}|{{!}} {{Icon|{{{9}}}}}}}
{{#ifeq: 10 |{{{10}}}|{{!}}<span style="cursor:help;" title="Captain">http://www.sacredwiki.org/images/Sacred_2/Icon/captain.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{10}}}|{{!}} {{Icon|{{{10}}}}}}}
{{#ifeq: 11 |{{{11}}}|{{!}}<span style="cursor:help;" title="Storage Chest">http://www.sacredwiki.org/images/Sacred_2/Icon/chest.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{11}}}|{{!}} {{Icon|{{{11}}}}}}}
{{#ifeq: 12 |{{{12}}}|{{!}}<span style="cursor:help;" title="Monolith">http://www.sacredwiki.org/images/Sacred_2/Icon/activemonolith.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{12}}}|{{!}} {{Icon|{{{12}}}}}}}
{{#ifeq: 13 |{{{13}}}|{{!}}<span style="cursor:help;" title="Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/interportal.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{13}}}|{{!}} {{Icon|{{{13}}}}}}}
{{#ifeq: 14 |{{{14}}}|{{!}}<span style="cursor:help;" title="Mini Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/teleport.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{14}}}|{{!}} {{Icon|{{{14}}}}}}}
{{#ifeq: 15 |{{{15}}}|{{!}}<span style="cursor:help;" title="Graveyard">http://www.sacredwiki.org/images/Sacred_2/Icon/graveyard.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{15}}}|{{!}} {{Icon|{{{15}}}}}}}
{{#ifeq: 16 |{{{16}}}|{{!}}<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{16}}}|{{!}} {{Icon|{{{16}}}}}}}
 
|}
 
|}
|}
+
|}</includeonly>
</includeonly>
 
 
 
 
<noinclude>
 
<noinclude>
 
Numbers that are associated to icons:
 
Numbers that are associated to icons:
Line 49: Line 47:
  
  
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.
+
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:
 
You type this:
<pre>{{Icons||2|||5|6||||||12|13|||}}</pre>
+
<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:
 
Wiki shows this:
{{Icons||2|||5|6||||||12|13|||}}
+
{{Icons|}}
  
  
Line 62: Line 68:
 
<pre>
 
<pre>
 
{|cellspacing="2" cellpadding="2" style="background-color:#EBD7A8;border: 2px solid #DCBA6A;"
 
{|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.  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>|<nowiki></nowiki>}}
+
{{#if: {{{1}}}|{{!}} {{Icon|{{{1}}}}}|{{!}}'''None'''}}
{{#ifeq: 2 |{{{2}}}|{{!}}<span style="cursor:help;" title="Side Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/grey-.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{2}}}|{{!}} {{Icon|{{{2}}}}}}}
{{#ifeq: 3 |{{{3}}}|{{!}}<span style="cursor:help;" title="Character Quest">http://www.sacredwiki.org/images/Sacred_2/Icon/blue-.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{3}}}|{{!}} {{Icon|{{{3}}}}}}}
{{#ifeq: 4 |{{{4}}}|{{!}}<span style="cursor:help;" title="Ascaron Employee">http://www.sacredwiki.org/images/Sacred_2/Icon/grey.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{4}}}|{{!}} {{Icon|{{{4}}}}}}}
{{#ifeq: 5 |{{{5}}}|{{!}}<span style="cursor:help;" title="Merchant">http://www.sacredwiki.org/images/Sacred_2/Icon/merchant.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{5}}}|{{!}} {{Icon|{{{5}}}}}}}
{{#ifeq: 6 |{{{6}}}|{{!}}<span style="cursor:help;" title="Blacksmith">http://www.sacredwiki.org/images/Sacred_2/Icon/blacksmith.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{6}}}|{{!}} {{Icon|{{{6}}}}}}}
{{#ifeq: 7 |{{{7}}}|{{!}}<span style="cursor:help;" title="Rune Master">http://www.sacredwiki.org/images/Sacred_2/Icon/runemaster.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{7}}}|{{!}} {{Icon|{{{7}}}}}}}
{{#ifeq: 8 |{{{8}}}|{{!}}<span style="cursor:help;" title="Horse Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/horsetrader.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{8}}}|{{!}} {{Icon|{{{8}}}}}}}
{{#ifeq: 9 |{{{9}}}|{{!}}<span style="cursor:help;" title="Special Mount Trader">http://www.sacredwiki.org/images/Sacred_2/Icon/specialmount.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{9}}}|{{!}} {{Icon|{{{9}}}}}}}
{{#ifeq: 10 |{{{10}}}|{{!}}<span style="cursor:help;" title="Captain">http://www.sacredwiki.org/images/Sacred_2/Icon/captain.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{10}}}|{{!}} {{Icon|{{{10}}}}}}}
{{#ifeq: 11 |{{{11}}}|{{!}}<span style="cursor:help;" title="Storage Chest">http://www.sacredwiki.org/images/Sacred_2/Icon/chest.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{11}}}|{{!}} {{Icon|{{{11}}}}}}}
{{#ifeq: 12 |{{{12}}}|{{!}}<span style="cursor:help;" title="Monolith">http://www.sacredwiki.org/images/Sacred_2/Icon/activemonolith.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{12}}}|{{!}} {{Icon|{{{12}}}}}}}
{{#ifeq: 13 |{{{13}}}|{{!}}<span style="cursor:help;" title="Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/interportal.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{13}}}|{{!}} {{Icon|{{{13}}}}}}}
{{#ifeq: 14 |{{{14}}}|{{!}}<span style="cursor:help;" title="Mini Portal">http://www.sacredwiki.org/images/Sacred_2/Icon/teleport.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{14}}}|{{!}} {{Icon|{{{14}}}}}}}
{{#ifeq: 15 |{{{15}}}|{{!}}<span style="cursor:help;" title="Graveyard">http://www.sacredwiki.org/images/Sacred_2/Icon/graveyard.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{15}}}|{{!}} {{Icon|{{{15}}}}}}}
{{#ifeq: 16 |{{{16}}}|{{!}}<span style="cursor:help;" title="Temple">http://www.sacredwiki.org/images/Sacred_2/Icon/temple.png</span>|<nowiki></nowiki>}}
+
{{#if: {{{16}}}|{{!}} {{Icon|{{{16}}}}}}}
 
|}
 
|}
 
|}
 
|}
 
</pre>
 
</pre>
 
</noinclude>
 
</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
gold-.png grey-.png blue-.png grey.png merchant.png blacksmith.png runemaster.png horsetrader.png specialmount.png captain.png chest.png activemonolith.png interportal.png teleport.png graveyard.png temple.png


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:

grey-.png

merchant.png

blacksmith.png

activemonolith.png

interportal.png


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:
None


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}}}}}}}
|}
|}