Template:Merchant: Difference between revisions

From HorizonXI Wiki
m (testing regional goods categorization)
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 4: Line 4:
}}}}<!--
}}}}<!--
-->| regional = [[Regional Merchant]]{{#if:{{{2|}}}|<nowiki/>
-->| regional = [[Regional Merchant]]{{#if:{{{2|}}}|<nowiki/>
:''[[{{{2}}}|{{{2}}} region]]''[[Category:Regional_Goods]]
:''[[{{{2}}}|{{{2}}} region]]''{{#ifeq:{{NAMESPACE}}|Template||[[Category:Regional_Goods]][[Category:{{{2}}}/Regional_Goods]]}}
}}<!--
}}<!--
-->|tenshodo = [[Tenshodo Merchant]]<!--
-->|tenshodo = [[Tenshodo Merchant]]<!--
-->|guildworker's union = [[Guildworker's Union|Guildworker's Union Rep.]]<!--
-->|guildworker's union = [[Guildworker's Union|Guildworker's Union Rep.]]<!--
-->|guild|ranked guild = [[{{#switch:{{lc:{{{2|}}}}}|alchemy|alchemist|alchemists' = Alchemists' Guild|bonecraft|boneworker|boneworkers' = Boneworkers' Guild|clothcraft|weaver|weavers' = Weavers' Guild|cooking|culinarian|culinarians' = Culinarians' Guild|fishing|fisherman|fishermen|fishermans' = Fishermans' Guild|goldsmithing|goldsmith|goldsmiths' = Goldsmiths' Guild|leathercraft|tanner|tanners' = Tanners' Guild|smithing|blacksmith|blacksmiths' = Blacksmiths' Guild|woodworking|carpenter|carpenters' = Carpenters' Guild|#default = Guild Merchant}}]]<!--
-->|guild|ranked guild = [[{{#switch:{{lc:{{{2|}}}}}|alchemy|alchemist|alchemists' = Alchemists' Guild|bonecraft|boneworker|boneworkers' = Boneworkers' Guild|clothcraft|weaver|weavers' = Weavers' Guild|cooking|culinarian|culinarians' = Culinarians' Guild|fishing|fisherman|fishermen|fishermans' = Fishermens' Guild|goldsmithing|goldsmith|goldsmiths' = Goldsmiths' Guild|leathercraft|tanner|tanners' = Tanners' Guild|smithing|blacksmith|blacksmiths' = Blacksmiths' Guild|woodworking|carpenter|carpenters' = Carpenters' Guild|#default = Guild Merchant}}{{#if:{{{3|}}}|&nbsp;{{#switch:{{lc:{{{3}}}}}
|bastok=(Bastok)
|sandoria|san d'oria=(San d'Oria)
|windurst=(Windurst)
|mhaura=(Mhaura)
|selbina=(Selbina)
|al zahbi=(Al Zahbi)
|aht urhgan whitegate|whitegate=(Aht Urhgan Whitegate)
|#default=({{{3}}})}}}}]]{{#if:{{{3|}}}|<nowiki/>
:{{Guild Opening Times|{{{2}}}|{{{3|}}}|format=short}}}}<!--
-->|special event = [[Special Event|Special Event Merchant]]{{#if:{{{2|}}}|<nowiki/>
-->|special event = [[Special Event|Special Event Merchant]]{{#if:{{{2|}}}|<nowiki/>
:''Only available during the [[{{{2|}}}]] event.''
:''Only available during the [[{{{2|}}}]] event.''
Line 16: Line 25:
-->|#default = {{{1}}}<!--
-->|#default = {{{1}}}<!--
-->}}<!--
-->}}<!--
-->{{#if:{{{opens|}}}{{{closes|}}}|<nowiki/>
--><!--{{#if:{{{opens|}}}{{{closes|}}}|<nowiki/>
:''Open {{#if:{{{opens|}}}|{{#iferror:{{#time:G:i|{{{opens}}}}}|{{#time:G:i|{{{opens}}}:00}}|{{#time:G:i|{{{opens}}}}}}}|???{{Information Needed|{{#if:{{NAMESPACE}}|nc}}}}}} - {{#if:{{{closes|}}}|{{#iferror:{{#time:G:i|{{{closes}}}}}|{{#time:G:i|{{{closes}}}:00}}|{{#time:G:i|{{{closes}}}}}}}|???{{Information Needed|{{#if:{{NAMESPACE}}|nc}}}}}}''
:''Open {{#if:{{{opens|}}}|{{#iferror:{{#time:G:i|{{{opens}}}}}|{{#time:G:i|{{{opens}}}:00}}|{{#time:G:i|{{{opens}}}}}}}|???{{Information Needed|{{#if:{{NAMESPACE}}|nc}}}}}} - {{#if:{{{closes|}}}|{{#iferror:{{#time:G:i|{{{closes}}}}}|{{#time:G:i|{{{closes}}}:00}}|{{#time:G:i|{{{closes}}}}}}}|???{{Information Needed|{{#if:{{NAMESPACE}}|nc}}}}}}''
|{{#if:{{{hours|}}}{{#if:{{{2|}}}|{{#ifeq:{{lc:{{{1|}}}}}|guild|1}}}}|<nowiki/>
|{{#if:{{{hours|}}}{{#if:{{{2|}}}|{{#ifeq:{{lc:{{{1|}}}}}|guild|1}}}}|<nowiki/>
:''Open {{#if:{{{hours|}}}|{{{hours}}}|{{#switch:{{lc:{{{2|}}}}}|alchemy|alchemist|alchemists' = 8:00 - 23:00|bonecraft|boneworker|boneworkers' = 8:00 - 23:00|clothcraft|weaver|weavers' = 6:00 - 21:00|cooking|culinarian|culinarians' = 5:00 - 20:00|fishing|fisherman|fishermen|fishermans' = 3:00 - 18:00|goldsmithing|goldsmith|goldsmiths' = 8:00 - 23:00|leathercraft|tanner|tanners' = 3:00 - 18:00|smithing|blacksmith|blacksmiths' = 8:00 - 23:00|woodworking|carpenter|carpenters' = 6:00 - 21:00}}}}''
:''Open {{#if:{{{hours|}}}|{{{hours}}}|{{#switch:{{lc:{{{2|}}}}}|alchemy|alchemist|alchemists' = 8:00 - 23:00|bonecraft|boneworker|boneworkers' = 8:00 - 23:00|clothcraft|weaver|weavers' = 6:00 - 21:00|cooking|culinarian|culinarians' = 5:00 - 20:00|fishing|fisherman|fishermen|fishermans' = 3:00 - 18:00|goldsmithing|goldsmith|goldsmiths' = 8:00 - 23:00|leathercraft|tanner|tanners' = 3:00 - 18:00|smithing|blacksmith|blacksmiths' = 8:00 - 23:00|woodworking|carpenter|carpenters' = 6:00 - 21:00}}}}''
}}}}<!--
}}}}--><!--
-->{{#if:{{{rank|}}}|<nowiki/>
-->{{#if:{{{rank|}}}|<nowiki/>
:''{{{rank}}} rank required.''
:''{{{rank}}} rank required.''
Line 81: Line 90:
| {{Merchant|Guild}}
| {{Merchant|Guild}}
|-
|-
| <pre>{{Merchant|Guild|Alchemy}}</pre>
| <pre>{{Merchant|Guild|Alchemy|bastok}}</pre>
| {{Merchant|Guild|Alchemy}}
| {{Merchant|Guild|Alchemy|bastok}}
|-
|-
| <pre>{{Merchant|Guild|Alchemists'}}</pre>
| <pre>{{Merchant|Guild|Alchemists'}}</pre>

Latest revision as of 20:24, 30 October 2024

Usage

{{Merchant|<merchant type>|<region/guild/special event>}}
  • The first parameter ("merchant type") will be automatically formatted for "standard", "regional", "guild", "ranked guild", "guildworker's union", and "special event".
  • The second parameter ("region/guild/special event") is only used for regional, guild, and special event merchants (see examples below).
  • The following parameters can also be used, but are optional:
  • nation, conquest: The nation and conquest standing required for this merchant to sell the item. (standard merchant only)
  • opens, closes: The time this shop opens and closes.
  • restocked: "true" or "yes" if this item will be automatically restocked every day and "false" or "no" if it is only stocked by players selling items to the merchants. Only use this parameter if the merchant has limited stock, like a guild.
  • rank: The rank required to purchase the item.
  • key item: The key item required to purchase the item.
  • note: Any additional note for the merchant.

Examples

Code Result
{{Merchant|???}}
Unknown Information Needed
{{Merchant|Standard}}
Standard Merchant
{{Merchant|Standard|nation = San d'Oria|conquest = 1st}}
Standard Merchant
{{Merchant|Standard|nation = Windurst|conquest = 2nd}}
Standard Merchant
{{Merchant|Regional}}
Regional Merchant
{{Merchant|Regional|Zulkheim}}
Regional Merchant
Zulkheim region
{{Merchant|Tenshodo}}
Tenshodo Merchant
{{Merchant|Guildworker's Union}}
Guildworker's Union Rep.
{{Merchant|Guild}}
Guild Merchant
{{Merchant|Guild|Alchemy|bastok}}
Alchemists' Guild (Bastok)
Open 8:00 - 23:00. Holiday: Lightsday.
{{Merchant|Guild|Alchemists'}}
Alchemists' Guild
{{Merchant|Ranked Guild|Woodworking}}
Carpenters' Guild
{{Merchant|Ranked Guild|Clothcraft|rank = Novice}}
Weavers' Guild
Novice rank required.
{{Merchant|Guild|Fishing|opens = 1:00|closes = 18:00|restocked = true}}
Fishermens' Guild
Automatically restocked.
{{Merchant|Guild|Cooking|restocked = false}}
Culinarians' Guild
Not automatically restocked.
{{Merchant|Special Event}}
Special Event Merchant
{{Merchant|Special Event|Starlight Celebration}}
Special Event Merchant
Only available during the Starlight Celebration event.
{{Merchant|Green Thumb Moogle}}
Green Thumb Moogle
{{Merchant|Green Thumb Moogle|key item = Sheep memento}}
Green Thumb Moogle
Requires Key ItemSheep memento
{{Merchant|[[Buffalo Ranch Merchant]]}}
Buffalo Ranch Merchant
{{Merchant|[[Buffalo Ranch Merchant]]|note = Tier III stock.}}
Buffalo Ranch Merchant
Tier III stock.