Template:Shop/doc: Difference between revisions

No edit summary
No edit summary
 
Line 1: Line 1:
The Shop template is used to display shop information for various locations in Dragon Quest games.  This template covers all types of shops (items, tools, weapons, armor).   
The Shop template is used to display shop information for various locations in ''[[Dragon Quest (series)|Dragon Quest]]'' games.  This template covers all types of shops (items, tools, weapons, armor).   


==Usage==
==Usage==
Line 5: Line 5:
===Header===
===Header===
A header call to this template should be the first usage of this template on any page.
A header call to this template should be the first usage of this template on any page.
<pre>{{Shop|header|includeClasses|collapsed|title=[[Dragon Quest II]]|subtitle=NES}}</pre>
<pre>{{Shop|header|includeClasses|collapsed|title={{DQ2}}|subtitle=NES}}</pre>
*header: A required parameter which marks this as the start of a shop table.
*header: A required parameter which marks this as the start of a shop table.
*includeClasses: An optional parameter marking whether this shop table should include a column for character classes.  This applies when the shop has equipment which can be equipped by 1 or more characters.  It should be used in association with entries that include the 'classes' parameter (see below). This parameter '''must''' be the 2nd passed parameter if it is included.
*includeClasses: An optional parameter marking whether this shop table should include a column for character classes.  This applies when the shop has equipment which can be equipped by 1 or more characters.  It should be used in association with entries that include the 'classes' parameter (see below). This parameter '''must''' be the 2nd passed parameter if it is included.
Line 13: Line 13:
===Entries===
===Entries===
Each entry in the shop table is represented by a single template call. Note that the list of entries for a shop should follow the ordering of the list in-game.  Also, the names of items should also be the ones used in-game, meaning they will often be redirect links.
Each entry in the shop table is represented by a single template call. Note that the list of entries for a shop should follow the ordering of the list in-game.  Also, the names of items should also be the ones used in-game, meaning they will often be redirect links.
<pre>{{Shop|entry|item=[[Broad Sword]]|price=4g per person}}</pre>
<pre>{{Shop|entry|item=[[Steel broadsword]]|price=4g per person}}</pre>
*entry: A required parameter which marks this as a single shop table entry.
*entry: A required parameter which marks this as a single shop table entry.
*item: The name of the item.  Should be an interwiki link.
*item: The name of the item.  Should be an interwiki link.
Line 31: Line 31:
==Example==
==Example==
===Sample===
===Sample===
{{Shop|header|includeClasses|title=[[Dragon Quest IV]]|subtitle=DS}}
{{Shop|header|includeClasses|title={{DQ4}}|subtitle=DS}}
{{Shop|entry|item=[[Broad Sword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}}
{{Shop|entry|item=[[Steel broadsword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}}
{{Shop|entry|item=[[Cloak of Evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}}
{{Shop|entry|item=[[Cloak of evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}}
{{Shop|entry|item=[[Iron Helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}}
{{Shop|entry|item=[[Iron helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}}
{{Shop|entry|item=[[Judgement Staff]]|price=1300|attributes=Attack +7||classes=[[Mage]]}}
{{Shop|entry|item=[[Staff of sentencing]]|price=1300|attributes=Attack +7||classes=[[Mage]]}}
{{Shop|note|includeClasses|text=This shop is only open at night.}}
{{Shop|note|includeClasses|text=This shop is only open at night.}}
{{Shop|footer}}
{{Shop|footer}}


{{Shop|header|title=[[Dragon Quest V]]|subtitle=DS}}
{{Shop|header|title={{DQ5}}|subtitle=DS}}
{{Shop|entry|item=[[Cautery Sword]]|price=?|attributes=Attack +20}}
{{Shop|entry|item=[[Cautery sword]]|price=?|attributes=Attack +20}}
{{Shop|entry|item=[[Flame Sword]]|price=8600|attributes=Attack +1}}
{{Shop|entry|item=[[Fire blade]]|price=8600|attributes=Attack +1}}
{{Shop|note|text=This shop's prices change throughout the game.}}
{{Shop|note|text=This shop's prices change throughout the game.}}
{{Shop|footer}}
{{Shop|footer}}
Line 47: Line 47:
===Code===
===Code===
<pre>
<pre>
{{Shop|header|includeClasses|title=[[Dragon Quest IV]]|subtitle=DS}}
{{Shop|header|includeClasses|title={{DQ4}}|subtitle=DS}}
{{Shop|entry|item=[[Broad Sword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}}
{{Shop|entry|item=[[Steel broadsword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}}
{{Shop|entry|item=[[Cloak of Evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}}
{{Shop|entry|item=[[Cloak of evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}}
{{Shop|entry|item=[[Iron Helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}}
{{Shop|entry|item=[[Iron helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}}
{{Shop|entry|item=[[Judgement Staff]]|price=1300|attributes=Attack +7||classes=[[Mage]]}}
{{Shop|entry|item=[[Staff of sentencing]]|price=1300|attributes=Attack +7||classes=[[Mage]]}}
{{Shop|note|includeClasses|text=This shop is only open at night.}}
{{Shop|note|includeClasses|text=This shop is only open at night.}}
{{Shop|footer}}
{{Shop|footer}}


{{Shop|header|title=[[Dragon Quest V]]|subtitle=DS}}
{{Shop|header|title={{DQ5}}|subtitle=DS}}
{{Shop|entry|item=[[Cautery Sword]]|price=?|attributes=Attack +20}}
{{Shop|entry|item=[[Cautery sword]]|price=?|attributes=Attack +20}}
{{Shop|entry|item=[[Flame Sword]]|price=8600|attributes=Attack +1}}
{{Shop|entry|item=[[Fire blade]]|price=8600|attributes=Attack +1}}
{{Shop|note|text=This shop's prices change throughout the game.}}
{{Shop|note|text=This shop's prices change throughout the game.}}
{{Shop|footer}}
{{Shop|footer}}
</pre>
</pre>