Template:Store At A Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Added currency override for wandering merchants, additional festival options, and extended documentation)
(City, Province and map number will now vanish if they are empty and Fest is defined)
Line 8: Line 8:
{{#If:{{{Fest|}}}|{{!}} valign="top"{{!}}Festival{{!}}{{!}}align="center" style="padding-top: 0.5em"{{!}}{{#switch:{{lc:{{{Fest}}}}}|y=''Unknown''|w=Rarely available|[[{{{Fest}}}]]{{#If:{{{Fest2|}}}|<br>[[{{{Fest2}}}]]}}{{#If:{{{Fest3|}}}|<br>[[{{{Fest3}}}]]}}{{#If:{{{Fest4|}}}|<br>[[{{{Fest4}}}]]}}}}}}
{{#If:{{{Fest|}}}|{{!}} valign="top"{{!}}Festival{{!}}{{!}}align="center" style="padding-top: 0.5em"{{!}}{{#switch:{{lc:{{{Fest}}}}}|y=''Unknown''|w=Rarely available|[[{{{Fest}}}]]{{#If:{{{Fest2|}}}|<br>[[{{{Fest2}}}]]}}{{#If:{{{Fest3|}}}|<br>[[{{{Fest3}}}]]}}{{#If:{{{Fest4|}}}|<br>[[{{{Fest4}}}]]}}}}}}
{{#If:{{{Fest|}}}|{{!}}- bgcolor="#FFFFFF"}}
{{#If:{{{Fest|}}}|{{!}}- bgcolor="#FFFFFF"}}
| valign="top"| Province || align="center" {{#If:{{{Fest|}}}||style="padding-top: 0.5em"}} | {{#if: {{{Province|}}} | [[{{{Province}}}]] | ''Unknown'' }}
{{#Ifeq:{{#If:{{{Province|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}} valign="top"{{!}} Province {{!}}{{!}} align="center" {{#If:{{{Fest|}}}||style="padding-top: 0.5em"}} {{!}} {{#if: {{{Province|}}} | [[{{{Province}}}]] | ''Unknown'' }}
|- bgcolor="#FFFFFF"
}}
| valign="top"| Town || align="center" | {{#if: {{{Town|}}} | [[{{{Town}}}]] | ''Unknown''}}
{{#Ifeq:{{#If:{{{Province|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
|- bgcolor="#FFFFFF"
{{!}}- bgcolor="#FFFFFF"
| valign="top"| Map || align="center" | {{#if: {{{MapNumber|}}} | [[RanikMap{{{MapNumber}}} | Ranik's Map {{{MapNumber}}}]] | ''Unknown''}}
}}
|- bgcolor="#FFFFFF"
{{#Ifeq:{{#If:{{{Town|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}} valign="top"{{!}} Town {{!}}{{!}} align="center" {{!}} {{#if: {{{Town|}}} | [[{{{Town}}}]] | ''Unknown''}}
}}
{{#Ifeq:{{#If:{{{Town|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}- bgcolor="#FFFFFF"
}}
{{#Ifeq:{{#If:{{{MapNumber|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}} valign="top"{{!}} Map {{!}}{{!}} align="center" {{!}} {{#if: {{{MapNumber|}}} | [[RanikMap{{{MapNumber}}} | Ranik's Map {{{MapNumber}}}]] | ''Unknown''}}
}}
{{#Ifeq:{{#If:{{{MapNumber|}}}|1|0}}{{#If:{{{Fest|}}}|1|0}}|01||
{{!}}- bgcolor="#FFFFFF"
}}
| valign="top"| Owner || align="center" | {{#if: {{{Owner|}}} | [[{{{Owner}}}]] | ''Unknown''}}{{#if: {{{Owner2|}}} | &nbsp;and [[{{{Owner2}}}]] | }}
| valign="top"| Owner || align="center" | {{#if: {{{Owner|}}} | [[{{{Owner}}}]] | ''Unknown''}}{{#if: {{{Owner2|}}} | &nbsp;and [[{{{Owner2}}}]] | }}
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
Line 22: Line 34:
{{#If:{{IfOR|{{{guildres|}}}|{{{guildres2|}}}|{{{levelres|}}}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{guildres|}}}|[[{{{guildres}}}]]}}{{#If:{{{guildres2|}}}|,&nbsp;[[{{{guildres2}}}]]}}{{#If:{{{levelres|}}}|{{#If:{{{guildres|}}}|,&nbsp;}}}}{{#If:{{{levelres|}}}|{{#switch:{{{levelres}}}|1|21|31|41|51|61|71|81|91|101|121|131|141={{{levelres}}}st circle|2|22|32|42|52|62|72|82|92|102|122|132|142={{{levelres}}}nd circle|1|23|33|43|53|63|73|83|93|103|123|133|143={{{levelres}}}rd circle|{{{levelres}}}th circle}}}}}}
{{#If:{{IfOR|{{{guildres|}}}|{{{guildres2|}}}|{{{levelres|}}}}}|{{!}}valign=top{{!}}Restrictions{{!}}{{!}}align=center{{!}}{{#If:{{{guildres|}}}|[[{{{guildres}}}]]}}{{#If:{{{guildres2|}}}|,&nbsp;[[{{{guildres2}}}]]}}{{#If:{{{levelres|}}}|{{#If:{{{guildres|}}}|,&nbsp;}}}}{{#If:{{{levelres|}}}|{{#switch:{{{levelres}}}|1|21|31|41|51|61|71|81|91|101|121|131|141={{{levelres}}}st circle|2|22|32|42|52|62|72|82|92|102|122|132|142={{{levelres}}}nd circle|1|23|33|43|53|63|73|83|93|103|123|133|143={{{levelres}}}rd circle|{{{levelres}}}th circle}}}}}}
{{#If:{{IfOR|{{{guildres|}}}|{{{guildres2|}}}|{{{levelres|}}}}}|{{!}}-valign="center"}}
{{#If:{{IfOR|{{{guildres|}}}|{{{guildres2|}}}|{{{levelres|}}}}}|{{!}}-valign="center"}}
|align="center" colspan="2"|<div style="font-size:16pt">This store only accepts {{#If:{{{Coin|}}}|{{#switch:{{{lc:Coin}}}|kronar|kronars = Kronars|lirum|lirums = Lirums|dokora|dokoras=Dokoras|Coin type error!}}|'''{{#switch:{{{Province}}}
|align="center" colspan="2"|<div style="font-size:16pt">This store only accepts {{#If:{{{Coin|}}}|{{#switch:{{lc:{{{Coin}}}}}|kronar|kronars = Kronars|lirum|lirums = Lirums|dokora|dokoras=Dokoras|Coin type error!}}|'''{{#switch:{{{Province}}}
| Therengia = Lirums
| Therengia = Lirums
| Ilithi = Dokoras
| Ilithi = Dokoras

Revision as of 21:13, 19 April 2008


Usage Documentaton

Copy and paste the following to your page:

{{Store At A Glance
|Store Name       = 
|Province         = 
|Town             = 
|MapNumber        = 
|Owner            = 
|Owner2           = *
|NumRooms         = 
|guildres         = * (is at least part of it restricted to one guild? if so, list it)
|guildres2        = *
|levelres         = * (is at least part of it restricted to a minimum level, either of a specific guild or just in general? if so list it as a number)
|Store Type       = 
|Store Type2      = *
.....
|Store Type10     = *
|Fest             = * (If this is a festival shop or a merchant that is not always available, put the festival name, or if it 
|Fest2            = * is unknown, put "y". If they are a wandering merchant, put W.
|Fest3            = * The additional slots are for use when the same merchant shows up with the *same wares* at multiple festivals)
|Fest4            = *
|Coin             = (For festival or rare merchants, what currency they accept)
}}

Please delete those fields marked with * if they are not valid.
Please leave other fields BLANK if they are unknown.