Difference between revisions of "Template:Hairstyle infobox"
Jump to navigation
Jump to search
(47 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly>{{#set:Has context=hairstyle}}{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|#default=}} | <includeonly>{{#set:Has context=hairstyle}}{{#switch:{{lc:{{{release|}}}}}|heavensward = {{Heavensward expansion content}}|stormblood = {{Stormblood expansion content}}|shadowbringers = {{Shadowbringers expansion content}}|endwalker = {{Endwalker expansion content}}|dawntrail = {{Dawntrail expansion content}}|#default=}}{{#if:{{{release|}}}||{{#switch:{{{patch|}}}|1.0|2.0|2.05|2.1|2.15|2.16|2.2|2.21|2.25|2.28|2.3|2.35|2.38|2.4|2.41|2.45|2.5|2.51|2.55|2.56|2.57=|#default=[[Category:Missing release]]}}}} | ||
<div class="infobox-n hairstyle"> | <div class="infobox-n hairstyle"> | ||
<div style="float:left;height:0px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | <div style="float:left;height:0px;position:relative;top:0px;left:0px;visibility:hidden;">.</div> | ||
Line 5: | Line 5: | ||
<div style="text-align: center; clear: both;">[[Has duty image::File:{{#ifeq:{{{image|y}}}|y|<!-- Predefined -->{{#titleparts:{{PAGENAME}}}} (image).png|<!-- Custom file path -->{{{image}}}}}|280px]]</div> | <div style="text-align: center; clear: both;">[[Has duty image::File:{{#ifeq:{{{image|y}}}|y|<!-- Predefined -->{{#titleparts:{{PAGENAME}}}} (image).png|<!-- Custom file path -->{{{image}}}}}|280px]]</div> | ||
<div class="wrapper"> | <div class="wrapper"> | ||
{{#if: {{{gender|}}} | | |||
;Type | |||
:{{#arraymap: {{{gender|}}} |,|@@@|{{#switch: {{lc:@@@}} | |||
| male = Male | |||
| female = Female | |||
| unisex = Male, Female | |||
| #default = {{ucfirst:@@@}} | |||
}} | |||
}} | |||
}}<!-- | |||
-->{{#if: {{{type|}}} | | |||
;Type | ;Type | ||
:{{#arraymap: {{{type|}}} |,|@@@|{{#switch: {{lc:@@@}} | :{{#arraymap: {{{type|}}} |,|@@@|{{#switch: {{lc:@@@}} | ||
Line 10: | Line 21: | ||
| unlocked = [[Hairstyles#Unlocked Hairstyles|{{ucfirst:@@@}}]] | | unlocked = [[Hairstyles#Unlocked Hairstyles|{{ucfirst:@@@}}]] | ||
| #default = {{ucfirst:@@@}} | | #default = {{ucfirst:@@@}} | ||
}} | }} | ||
}} | }} | ||
Line 28: | Line 26: | ||
-->{{#if: {{{unlock-item|}}} | | -->{{#if: {{{unlock-item|}}} | | ||
;Unlock Item | ;Unlock Item | ||
: | :{{item icon|{{{unlock-item}}}}} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{activity|}}} | | -->{{#if: {{{activity|}}} | | ||
Line 44: | Line 42: | ||
-->{{#if: {{{achievement|}}} | | -->{{#if: {{{achievement|}}} | | ||
;Achievement | ;Achievement | ||
: | :{{item icon|{{{achievement}}}}} | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{purchased-from|}}} | | -->{{#if: {{{purchased-from|}}} | | ||
; | ;Vendor | ||
:[[{{{purchased-from}}}]] | :[[{{{purchased-from}}}]] | ||
}}<!-- | }}<!-- | ||
-->{{#if: {{{location|}}} | | |||
; [[Zone]] | |||
: {{#switch: {{{location|}}}|Varies|varies={{{location}}}|#default=[[{{{location|}}}]]}} {{#if: {{{coordinates|}}}|<small>({{{coordinates|}}})</small>}} }}<!-- | |||
-->{{#if: {{{cost-type|}}} | | -->{{#if: {{{cost-type|}}} | | ||
;Cost | ;Cost | ||
Line 61: | Line 62: | ||
| namazu koban = {{{cost}}} {{Tribe token|namazu koban}} | | namazu koban = {{{cost}}} {{Tribe token|namazu koban}} | ||
| mythic clan mark logs = {{{cost}}} [[Mythic Clan Mark Log]]s | | mythic clan mark logs = {{{cost}}} [[Mythic Clan Mark Log]]s | ||
| skybuilders scrip = {{{cost}}} {{Skybuilders scrip}} | |||
| bozjan cluster = {{{cost}}} {{Bozjan cluster}} | |||
| seafarer cowrie = {{{cost}}} {{cowrie|seafarer}} | |||
| rokkon potsherd = {{{cost}}} {{item icon|Rokkon Potsherd}} | |||
| usd = {{{cost}}} $/€/£/¥ | | usd = {{{cost}}} $/€/£/¥ | ||
| #default = {{{cost}}} {{ucfirst:@@@}} | | #default = {{{cost}}} {{ucfirst:@@@}} | ||
Line 68: | Line 73: | ||
-->{{#if: {{{patch|}}} | | -->{{#if: {{{patch|}}} | | ||
; Patch | ; Patch | ||
: {{{patch}}} | : [[Patch {{{patch}}}|{{{patch}}}]] | ||
}} | }} | ||
{{clear}} | |||
</div></div><!-- | </div></div><!-- | ||
-->{{#if:{{{description|}}}| | -->{{#if:{{{description|}}}| | ||
Line 76: | Line 82: | ||
<!-- GET INFO TO AUTO FILL TABLE --> | <!-- GET INFO TO AUTO FILL TABLE --> | ||
{{#set:image=[[file:{{{image|}}}]] }} | {{#set:image=[[file:{{{image|}}}]] }} | ||
{{#set: | {{#set:gender={{{gender|}}} }} | ||
{{#set:type={{{type|}}} |+sep}} | {{#set:type={{{type|}}} |+sep}} | ||
{{#set:unlock-item={{{unlock-item|}}} }} | {{#set:unlock-item={{{unlock-item|}}} }} | ||
{{#set:activity={{{activity|}}} |+sep}} | {{#set:activity={{{activity|}}} |+sep}} | ||
Line 86: | Line 90: | ||
{{#set:achievement={{{achievement|}}} |+sep}} | {{#set:achievement={{{achievement|}}} |+sep}} | ||
{{#set:purchased-from={{{purchased-from|}}} |+sep}} | {{#set:purchased-from={{{purchased-from|}}} |+sep}} | ||
{{#set:location={{{location|}}} }} | |||
{{#set:coordinates={{{coordinates|}}} }} | |||
{{#set:cost-type={{{cost-type|}}} }} | {{#set:cost-type={{{cost-type|}}} }} | ||
{{#set:cost={{{cost|}}} }} | {{#set:cost={{{cost|}}} }} | ||
Line 117: | Line 123: | ||
| achievement = | | achievement = | ||
| purchased-from = | | purchased-from = | ||
| location = | |||
| coordinates = | |||
| cost-type = | | cost-type = | ||
| cost = | | cost = | ||
Line 127: | Line 135: | ||
; name: Optional. Name of the hairstyle. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | ; name: Optional. Name of the hairstyle. Defaults to <code><nowiki>{{PAGENAME}}</nowiki></code>. | ||
; image: Optional. Hairstyle image. Defaults to File:<code><nowiki>{{PAGENAME}}</nowiki></code>.png | ; image: Optional. Hairstyle image. Defaults to File:<code><nowiki>{{PAGENAME}}</nowiki></code>.png | ||
; type: Required. The type the hairstyle is placed under. Accepts ''general'', ''special'', ''expressions''. | ; type: Required. The type the hairstyle is placed under. Accepts ''general'', ''special'', ''expressions''. | ||
; unlock-item: Optional. The item used to unlock the hairstyle. | ; unlock-item: Optional. The item used to unlock the hairstyle. | ||
; activity: Optional. The name of the activity where the hairstyle is unlocked. | ; activity: Optional. The name of the activity where the hairstyle is unlocked. | ||
Line 137: | Line 142: | ||
; achievement: Optional. The name of the achievement that unlocks the hairstyle. | ; achievement: Optional. The name of the achievement that unlocks the hairstyle. | ||
; purchased-from: Optional. How to purchase the hairstyle | ; purchased-from: Optional. How to purchase the hairstyle | ||
; location : Required. The area or zone the NPC can be found. | |||
; coordinates: Optional. The X, Y and Z coordinates to the NPCs location, comma-separated. Eg.: <code>23.2, 5.55, 1</code>. <!-- Displays and interactive map with a marker of the NPC's location. EG <code>[12345,31321]</code>. See {{tl|Infobox map}} for more details. --> | |||
; cost-type: Optional. The currency used to purchase the hairstyle. Accepts: "gil", "mgp", "seals", "wolf marks", "kojin sango", "ananta dreamstaff", "namazu koban", "mythic clan mark logs", "usd" | ; cost-type: Optional. The currency used to purchase the hairstyle. Accepts: "gil", "mgp", "seals", "wolf marks", "kojin sango", "ananta dreamstaff", "namazu koban", "mythic clan mark logs", "usd" | ||
; cost: Optional. amount of the currency needed to purchase the hairstyle. | ; cost: Optional. amount of the currency needed to purchase the hairstyle. | ||
; patch: Optional. Patch this hairstyle was released in. | ; patch: Optional. Patch this hairstyle was released in. | ||
; release: Optional. Expansion this hairstyle belongs to. Accepts ''heavensward'' or ''stormblood''. | ; release: Optional. Expansion this hairstyle belongs to. Accepts ''heavensward'' or ''stormblood'' or ''shadowbringers'' or ''dawntrail''. | ||
==Examples== | ==Examples== | ||
<pre>{{Hairstyle infobox | <pre>{{Hairstyle infobox | ||
| name = | | name = Lexen-tails Hairstyle | ||
| image = lexen- | | image = lexen-tails hairstyle1.jpg | ||
| | | gender = unisex | ||
| type = | | type = unlocked | ||
| unlock-item = Modern Aesthetics - Lexen-tails | |||
| unlock-item = | |||
| activity = | | activity = | ||
| event = | | event = | ||
| quest = | | quest = | ||
| achievement = | | achievement = | ||
| purchased-from = Gold Saucer | | purchased-from = Gold Saucer Attendant | ||
| cost-type = | | location = The Gold Saucer | ||
| cost = | | coordinates = 5.1,6.6 | ||
| patch = 4. | | cost-type = mgp | ||
| cost = 50,000 | |||
| patch = 4.5 | |||
| release = stormblood | | release = stormblood | ||
}}</pre> | }}</pre> | ||
{{Hairstyle infobox | {{Hairstyle infobox | ||
| name = Lexen-tails | | name = Lexen-tails Hairstyle | ||
| image = lexen- | | image = lexen-tails hairstyle1.jpg | ||
| gender = unisex | | gender = unisex | ||
| type = unlocked | |||
| unlock-item = Modern Aesthetics - Lexen-tails | | unlock-item = Modern Aesthetics - Lexen-tails | ||
| activity = | | activity = | ||
Line 172: | Line 179: | ||
| achievement = | | achievement = | ||
| purchased-from = Gold Saucer Attendant | | purchased-from = Gold Saucer Attendant | ||
| location = The Gold Saucer | |||
| coordinates = 5.1,6.6 | |||
| cost-type = mgp | | cost-type = mgp | ||
| cost =50,000 | | cost = 50,000 | ||
| patch = 4.5 | | patch = 4.5 | ||
| release = stormblood | | release = stormblood |
Latest revision as of 04:09, 8 September 2023
Usage
Use this infobox for defining hairstyles within the game.
{{Hairstyle infobox | name = | image = | gender = | unlock-item = | activity = | event = | quest = | achievement = | purchased-from = | location = | coordinates = | cost-type = | cost = | patch = | release = }}
Parameters
- name
- Optional. Name of the hairstyle. Defaults to
{{PAGENAME}}
. - image
- Optional. Hairstyle image. Defaults to File:
{{PAGENAME}}
.png - type
- Required. The type the hairstyle is placed under. Accepts general, special, expressions.
- unlock-item
- Optional. The item used to unlock the hairstyle.
- activity
- Optional. The name of the activity where the hairstyle is unlocked.
- event
- Optional. The name of the event where the hairstyle is unlocked.
- quest
- Optional. The name of the quest that unlocks the hairstyle.
- achievement
- Optional. The name of the achievement that unlocks the hairstyle.
- purchased-from
- Optional. How to purchase the hairstyle
- location
- Required. The area or zone the NPC can be found.
- coordinates
- Optional. The X, Y and Z coordinates to the NPCs location, comma-separated. Eg.:
23.2, 5.55, 1
. - cost-type
- Optional. The currency used to purchase the hairstyle. Accepts: "gil", "mgp", "seals", "wolf marks", "kojin sango", "ananta dreamstaff", "namazu koban", "mythic clan mark logs", "usd"
- cost
- Optional. amount of the currency needed to purchase the hairstyle.
- patch
- Optional. Patch this hairstyle was released in.
- release
- Optional. Expansion this hairstyle belongs to. Accepts heavensward or stormblood or shadowbringers or dawntrail.
Examples
{{Hairstyle infobox | name = Lexen-tails Hairstyle | image = lexen-tails hairstyle1.jpg | gender = unisex | type = unlocked | unlock-item = Modern Aesthetics - Lexen-tails | activity = | event = | quest = | achievement = | purchased-from = Gold Saucer Attendant | location = The Gold Saucer | coordinates = 5.1,6.6 | cost-type = mgp | cost = 50,000 | patch = 4.5 | release = stormblood }}
Lexen-tails Hairstyle
- Type
- Male, Female
- Type
- Unlocked
- Unlock Item
- Modern Aesthetics - Lexen-tails
- Vendor
- Gold Saucer Attendant
- Zone
- The Gold Saucer (5.1,6.6)
- Cost
- 50,000
- Patch
- 4.5