Template:Store At A Glance: Difference between revisions

From Elanthipedia
Jump to navigation Jump to search
(Adds capabilities to handle festival merchants)
(Updated the {{Incomplete}} handling to make exceptions for province, city, and mapnumber if fest is defined and not y. Also added in additional spaces for a merchant that appears at multiple festivals)
Line 1: Line 1:
<includeonly>
<includeonly>
<!-- Adds Incomplete template if non-optional information is missing-->
<!-- Adds Incomplete template if non-optional information is missing-->
{{#if:{{IfAND|{{{Province|}}}|{{{Town|}}}|{{{MapNumber|}}}|{{{Owner|}}}|{{{NumRooms|}}}|{{{Store Type|}}}}}||{{Incomplete}}}}
{{#if:{{IfAND|{{IfOR|{{{Province|}}}|{{{Fest|}}}}}|{{IfOR|{{{Town|}}}|{{{Fest|}}}}}|{{IfOR|{{{MapNumber|}}}|{{{Fest|}}}}}|{{{Owner|}}}|{{{NumRooms|}}}|{{{Store Type|}}}}}|{{#If:{{{Fest|}}}|{{#Ifeq|{{lc:{{{Fest}}}}}|y||1}}|1}}||{{Incomplete}}}}
{| cellpadding="2" style="float:right; width:300px; background:#BAD0EF; margin-left:1em; border-spacing:1px;"
{| cellpadding="2" style="float:right; width:300px; background:#BAD0EF; margin-left:1em; border-spacing:1px;"
|-
|-
! colspan="2" | '''{{{Store Name}}}'''
! colspan="2" | '''{{{Store Name}}}'''
|- bgcolor="#FFFFFF"
|- bgcolor="#FFFFFF"
{{#If:{{{Fest|}}}|{{!}} valign="top"{{!}}Festival{{!}}{{!}}align="center" style="padding-top: 0.5em"{{!}}{{#Ifeq:{{lc:{{{Fest}}}}}|y|''Unknown''|[[{{{Fest}}}]]}}}}
{{#If:{{{Fest|}}}|{{!}} valign="top"{{!}}Festival{{!}}{{!}}align="center" style="padding-top: 0.5em"{{!}}{{#Ifeq:{{lc:{{{Fest}}}}}|y|''Unknown''|[[{{{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'' }}
| valign="top"| Province || align="center" {{#If:{{{Fest|}}||style="padding-top: 0.5em"}} | {{#if: {{{Province|}}} | [[{{{Province}}}]] | ''Unknown'' }}
Line 51: Line 51:
|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)*
|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 Type =
|Store Type1 = *
|Store Type2 = *
.....
.....
|Store Type10 = *
|Store Type10 = *
|Fest = (If this is a festival shop, put the festival name, or if it is unknown, put "y")
|Fest = (If this is a festival shop or a merchant that is not always available, put the festival name, or if it is unknown, put "y")
|Fest2 = (These additional slots are for use when the same merchant shows up with the *same wares* at multiple festivals)*
|Fest3 = *
|Fest4 = *
}}
}}
</pre>
</pre>

Revision as of 20:13, 19 April 2008


Use

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 is unknown, put "y")
|Fest2            = (These additional slots are for use when the same merchant shows up with the *same wares* at multiple festivals)*
|Fest3            = *
|Fest4            = *
}}

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