Template:Merchant: Difference between revisions

From HorizonXI Wiki
(Created page with "<includeonly>{{#switch:{{lc:{{{1|}}}}}<!-- -->| standard = Standard Merchant{{#if:{{{nation|}}}|{{#switch:{{lc:{{{conquest|}}}}}|1st|2nd|2nd/3rd = <nowiki/> :''{{{nation}}} Conquest: {{#switch:{{lc:{{{conquest|}}}}}|1st = 1st - citizens only|2nd = 1st / 2nd|2nd/3rd = 2nd / 3rd}} }}}}<!-- -->| regional = Regional Merchant{{#if:{{{2|}}}|<nowiki/> :''[[{{{2}}}|{{{2}}} region]]'' }}<!-- -->|tenshodo = Tenshodo Merchant<!-- -->|guildworker's union = [...")
Tag: visualeditor-wikitext
 
(commented out reference to guild rank requirements as that didnt exist in era)
 
(7 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{lc:{{{1|}}}}}<!--
<includeonly>{{#switch:{{lc:{{{1|}}}}}<!--
-->| standard = [[Standard Merchant]]{{#if:{{{nation|}}}|{{#switch:{{lc:{{{conquest|}}}}}|1st|2nd|2nd/3rd = <nowiki/>
-->| standard = [[Standard Merchant]]{{#if:{{{nation|}}}|{{#switch:{{lc:{{{conquest|}}}}}|1st|2nd|2nd/3rd = <nowiki/>
:''[[Conquest|{{{nation}}} Conquest]]: {{#switch:{{lc:{{{conquest|}}}}}|1st = 1st - citizens only|2nd = 1st / 2nd|2nd/3rd = 2nd / 3rd}}
*''[[Conquest|{{{nation}}} Conquest]]:<br> {{#switch:{{lc:{{{conquest|}}}}}|1st = 1st - citizens only|2nd = 1st / 2nd|2nd/3rd = 2nd / 3rd}}
}}}}<!--
}}}}<!--
-->| regional = [[Regional Merchant]]{{#if:{{{2|}}}|<nowiki/>
-->| regional = [[Regional Merchant]]{{#if:{{{2|}}}|<nowiki/>
:''[[{{{2}}}|{{{2}}} region]]''
:''[[{{{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.''-->[[Category:Merchant/Requires Rank]]}}<!--
}}<!--
 
if a KeyItem is required to make the purchase (Airship Pass to access the area)
-->{{#if:{{{key item|}}}|<nowiki/>
-->{{#if:{{{key item|}}}|<nowiki/>
:''Requires {{KeyItem}}[[{{{key item}}}]]''
:''Requires {{KeyItem}}[[{{{key item}}}]]''
Line 46: Line 56:
:*'''opens''', '''closes:''' The time this shop opens and closes.
:*'''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.
:*'''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.
<!--:*'''rank:''' The rank required to purchase the item.-->
:*'''key item:''' The key item required to purchase the item.
:*'''key item:''' The key item required to purchase the item.
:*'''note:''' Any additional note for the merchant.
:*'''note:''' Any additional note for the merchant.
Line 81: Line 91:
| {{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>
Line 89: Line 99:
| <pre>{{Merchant|Ranked Guild|Woodworking}}</pre>
| <pre>{{Merchant|Ranked Guild|Woodworking}}</pre>
| {{Merchant|Ranked Guild|Woodworking}}
| {{Merchant|Ranked Guild|Woodworking}}
|-
<!--|-
| <pre>{{Merchant|Ranked Guild|Clothcraft|rank = Novice}}</pre>
| <pre>{{Merchant|Ranked Guild|Clothcraft|rank = Novice}}</pre>
| {{Merchant|Ranked Guild|Clothcraft|rank = Novice}}
| {{Merchant|Ranked Guild|Clothcraft|rank = Novice}}-->
|-
<!--|-
| <pre>{{Merchant|Guild|Fishing|opens = 1:00|closes = 18:00|restocked = true}}</pre>
| <pre>{{Merchant|Guild|Fishing|opens = 1:00|closes = 18:00|restocked = true}}</pre>
| {{Merchant|Guild|Fishing|opens = 1:00|closes = 18:00|restocked = true}}
| {{Merchant|Guild|Fishing|opens = 1:00|closes = 18:00|restocked = true}}-->
|-
|-
| <pre>{{Merchant|Guild|Cooking|restocked = false}}</pre>
| <pre>{{Merchant|Guild|Cooking|restocked = false}}</pre>

Latest revision as of 16:20, 21 May 2025

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.
  • 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|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.