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= | <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=[[ | <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= | {{Shop|header|includeClasses|title={{DQ4}}|subtitle=DS}} | ||
{{Shop|entry|item=[[ | {{Shop|entry|item=[[Steel broadsword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}} | ||
{{Shop|entry|item=[[Cloak of | {{Shop|entry|item=[[Cloak of evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}} | ||
{{Shop|entry|item=[[Iron | {{Shop|entry|item=[[Iron helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}} | ||
{{Shop|entry|item=[[ | {{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= | {{Shop|header|title={{DQ5}}|subtitle=DS}} | ||
{{Shop|entry|item=[[Cautery | {{Shop|entry|item=[[Cautery sword]]|price=?|attributes=Attack +20}} | ||
{{Shop|entry|item=[[ | {{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= | {{Shop|header|includeClasses|title={{DQ4}}|subtitle=DS}} | ||
{{Shop|entry|item=[[ | {{Shop|entry|item=[[Steel broadsword]]|price=1500|attributes=Attack +15|classes=[[Warrior]]}} | ||
{{Shop|entry|item=[[Cloak of | {{Shop|entry|item=[[Cloak of evasion]]|price=2800|attributes=Defense +10|classes=[[Warrior]]<br/>[[Priest]]}} | ||
{{Shop|entry|item=[[Iron | {{Shop|entry|item=[[Iron helmet]]|price=2200|attributes=Defense +12|classes=[[Sage]]}} | ||
{{Shop|entry|item=[[ | {{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= | {{Shop|header|title={{DQ5}}|subtitle=DS}} | ||
{{Shop|entry|item=[[Cautery | {{Shop|entry|item=[[Cautery sword]]|price=?|attributes=Attack +20}} | ||
{{Shop|entry|item=[[ | {{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> | ||