Template:TestThisTemplate: Difference between revisions

From HorizonXI Wiki
No edit summary
mNo edit summary
 
(16 intermediate revisions by the same user not shown)
Line 1: Line 1:
[[Category:Templates|{{PAGENAME}}]]
{| class="navbox navbox-gutter mw-collapsible" style="border-collapse: separate; border-spacing: 2px; padding: 0; text-align: center;"
<includeonly><onlyinclude>__NOTOC__<!--
|- class="jobs-table"
 
! colspan="3" | <span class="navbox-vde plainlinks"><!--{{vdelinks|TestThisTemplate}}-->[https://horizonffxi.wiki/Template:TestThisTemplate v] &bull; [https://horizonffxi.wiki/Template:TestThisTemplate?action=edit e]</span>Jobs of Vana'diel by Era
Cheat sheet that is only visible during preview
|- class="jobs-table"
-->{{#switch:{{{1|}}}|bp|boilerplate={{Preview Only Infobox|<pre>{{Infobox Monster
! rowspan="2" style="padding: 1em;" | [[Final Fantasy XI]]<br>(2002-2004)
| image =  
! Standard Jobs
| image caption =  
| style="padding: 1em;" | [[Warrior]] &bull; [[Monk]] &bull; [[Thief]] &bull; [[White Mage]] &bull; [[Black Mage]] &bull; [[Red Mage]]
| job =  
|- class="jobs-table"
| family =
! Advanced Jobs
| family2 =
| style="padding: 1em;" | [[Paladin]] &bull; [[Dark Knight]] &bull; [[Beastmaster]] &bull; [[Bard]] &bull; [[Ranger]]
| family3 =
|- class="rotzmissions"
| crystal =
! colspan="2" style="padding: 1em;" | [[Rise of the Zilart]]<br>(2003-2004)
| weaknesses =
| style="padding: 1em;" | [[Summoner]] &bull; [[Samurai]] &bull; [[Ninja]] &bull; [[Dragoon]]
| resistances =
|- class="copmissions"
| immunities =
! colspan="2" style="padding: 1em;" | [[Chains of Promathia]]<br>(2004)
| absorbs =
| style="padding: 1em;" | ''None''
| type =
|- class="toau toaumissions"
| subtype =
! colspan="2" style="padding: 1em;" | [[Treasures of Aht Urhgan]]<br>(2006)
| tier =
| style="padding: 1em;" | [[Blue Mage]] &bull; [[Corsair]] &bull; [[Puppetmaster]]
| title obtained =
|- class="wotg wotgmissions"
}}</pre>
! colspan="2" style="padding: 1em;" | [[Wings of the Goddess]]<br>(2007)
|disable={{{1|}}}}}<!--
| style="padding: 1em;" | [[Dancer]] &bull; [[Scholar]]
-->|#default={{Preview Only Infobox|<pre>{{Infobox Monster
|- class="soa soamissions"
| image = <!-- Image filename. LEAVE BLANK if one is not available. -->
! colspan="2" style="padding: 1em;" | [[Seekers of Adoulin]]<br>(2013)
| image caption = <!-- Optional image caption -->
| style="padding: 1em;" | [[Geomancer]] &bull; [[Rune Fencer]]
| job = [[<job>]] <!-- Monster's job. Multiples may be provided. -->
| family = <!-- Valid values are at Category:Bestiary -->
| family2 = <!-- Optional parameter for additional family types -->
| family3 = <!-- Optional parameter for additional family types -->
| crystal = <!-- If the monster drops a crystal, provide the ELEMENT name -->
<!-- REGULAR MOB TRAITS -->
| weaknesses =  
| resistances =  
| immunities =
| absorbs =
<!-- NOTORIOUS MONSTER -->
| type = <!-- nm, notorious monster, znm, zeni notorious monster, vnm, voidwalker notorious monster, campaign leader, mega boss -->
| subtype = <!-- "mega boss" subtype -->
| tier = <!-- znm or vnm tier number -->
| title obtained =
}}
</pre>|disable={{{1|}}}}}}}<!--
 
End of preview only infobox part
start of categorizations
 
-->{{categorize|{{{1|}}}|[[Category:Bestiary]]{{#if:{{{family|}}}{{{family2}}}{{{family3}}}|[[Category:{{{family|}}}]]}}{{#switch:{{lc:{{{type|}}}}}
| nm
| notorious monster = [[Category:Notorious Monsters]]
| henm
| hyper empty notorious monster = [[Category:HENM]][[Category:Notorious Monsters]]
| znm
| zeni notorious monster = [[Category:Notorious Monsters]][[Category:Zeni Notorious Monsters]]
| vnm
| voidwalker notorious monster = [[Category:Notorious Monsters]][[Category:Voidwalker Notorious Monsters]]
| campaign leader = [[Category:Notorious Monsters]][[Category:Campaign Battles]]
| mega boss = [[Category:Notorious Monsters]]{{#if:{{{subtype|}}}|[[Category:{{{subtype}}}]]}}
}}}}<!--
 
Categorization End
Start of actual code
 
-->
{{#if:{{{image|}}}|[[File:{{{image}}}|thumb|right|{{{image caption|{{PAGENAME}}}}}]]{{#if:{{{alternate image|}}}|[[File:{{{alternate image}}}|thumb|{{{alternate image caption|{{PAGENAME}}}}}]]}}|{{Mob-image-stub|{{{1|}}}}}}}
{| class="left-col-1"
|- {{#if:{{{job|}}}||style="display: none;"}}
! [[Job]]:
| {{{job}}}
|-
! [[Bestiary|Family]]:
| {{#if:{{{family|}}}|[[:Category:{{{family}}}|{{{family}}}]]|{{Information Needed|{{{1|}}}}}}}
|- {{#if: {{{family2|}}}||style="display: none;"}}
! [[Bestiary|Family 2]]:
| [[:Category:{{{family2}}}|{{{family2}}}]]
|-
|- {{#if: {{{family3|}}}||style="display: none;"}}
! [[Bestiary|Family 3]]:
| [[:Category:{{{family3}}}|{{{family3}}}]]
|-
! [[Crystal]]:
| {{#if:{{{crystal|}}}|[[{{{crystal}}} Crystal|{{{{{crystal}}}}}]]|''None''}}
|- {{#if:{{{weaknesses|}}}{{{resistances|}}}{{{immunities|}}}{{{absorbs|}}}||style="display: none;"}}
| style="height: 1rem;" | <!-- empty row for space -->
|- {{#if:{{{weaknesses|}}}||style="display: none;"}}
! [[Resistance|Weak against]]:
| {{{weaknesses}}}
|-
{{#if:{{{resistances|}}}||style="display: none;"}}
! [[Resistance|Resistant to]]:
| {{{resistances}}}
|-
{{#if:{{{immunities|}}}||style="display: none;"}}
! [[Resistance|Immune to]]:
| {{{immunities}}}
|-
{{#if:{{{absorbs|}}}||style="display: none;"}}
! [[Resistance|Absorbs]]:
| {{{absorbs|}}}
|- {{#if:{{{type|}}}{{{title|}}}||style="display: none;"}}
| style="height: 1rem;" | <!-- empty row for space -->
|- {{#if:{{{type|}}}||style="display: none;"}}
! colspan=2 | {{#switch:{{lc:{{{type|}}}}}
| notorious monster = {{Colorlink|NM|Notorious Monster}}
| henm = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| hyper empty notorious monster = {{Colorlink|NM|Hyper Empty Notorious Monster}}
| zeni notorious monster = {{Colorlink|NM|Zeni Notorious Monsters|Zeni Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|5|V = V|#default = ??}})}}
| voidwalker notorious monster = {{Colorlink|NM|Voidwalker Notorious Monsters|Voidwalker Notorious Monster (Tier {{#switch:{{{tier|}}}|1|I = I|2|II = II|3|III = III|4|IV = IV|#default = ?? {{Information Needed|{{{1|}}}}} }})}}
| campaign leader = {{Colorlink|NM|{{{subtype|Campaign}}}|Campaign Leader}}
| mega boss = {{#if:{{{subtype|}}}|{{Colorlink|NM|{{{subtype}}}|Mega Boss}}|{{Color|NM|Mega Boss}}}}
| #default = {{{type}}}
}}{{#if:{{{title obtained|}}}|<br/>}}<!--
-->{{#if:{{{title obtained|}}}|'''[[Titles|Title Obtained]]:''' {{{title obtained}}}|}}
|}
|}
</onlyinclude></includeonly>
==Usage==
Header information for a {{Cl|Bestiary}} monster entry.
* See Also: [[Template:Monster Information]]
===Parameters===
*'''First unnamed Parameter''' (optional): You can set the first unnamed parameter to:
** ''nc'' (no category) to prevent automatic categorization (e.g. for example pages)
** ''nd'' (no documentation) to suppress the preview documentation (helpful in the editing process)
** ''bp'' (boilerplate) to have the preview documentation without comments so you can just copy it to the page (helpful for creating new pages to just start with {{fontaccent|<nowiki>{{Infobox Monster|bp}}</nowiki>}} and copy the boilerplate from the preview only)
* <u>Basics</u>
** '''image:''' Filename of the monster image.<br/>If one is not available, ''leave this blank.'' It will insert the {{Tl|Mob-image-stub}} template.
** '''image caption:''' ''Optional.'' Caption for the image.
** '''job:''' {{Cl|Jobs|Job(s)}} of the monster. ''Example'': <code style="font-size:1.2em;"><nowiki>[[Black Mage]]</nowiki></code>
** '''family:''' A valid {{Cl|Bestiary|family}} that the monster belongs to.
** '''family2''' An optional parameter to be used if a monster belongs to multiple families.
** '''family3''' Another optional parameter to be used if a monster belongs to multiple families.
** '''crystal:''' ''Optional.'' Crystal that the monster drops.<br/>Valid values: ''Fire, Ice, Wind, Earth, Lightning, Water, Light, Dark''<br/>''Only provide a value if the monster can drop one.''{{Spc}}
* <u>Physical and Magical Traits</u>
** ''Important'': For {{Cl|Notorious Monsters}}, do not use these parameters. Instead, use {{Tl|NM-Notes}}
** '''weaknesses''', '''resistances''', '''immunities''', '''absorbs'''{{Spc}}
* <u>Notorious Monster</u>
** ''These parameters are only used for {{Cl|Notorious Monsters}}.''
** '''type:''' Monster type. Used for notorious monster types.<br/>Valid values: ''nm, notorious monster, znm, zeni notorious monster, vnm, voidwalker notorious monster, campaign leader, mega boss''<br/>Any other value will be output as provided.
** '''subtype:''' If the '''type''' is ''mega boss'', provide the '''subtype''' category name.
** '''tier:''' If the '''type''' is ''znm'' or ''vnm'', provide the tier number.<br/>Valid values: ''1, I, 2, II, 3, III, 4, IV, 5, V''<br/>An invalid value will result in '''??''' {{Information Needed|nc}} being displayed.{{Spc}}
** '''title obtained:''' ''Optional.'' Title obtained for defeating the monster.
===Examples===
{{Infobox Monster|nc
| image = Young Quadav.png
| image caption = Young Quadav
| job = [[Warrior]]
| family = Quadav
| crystal = Water
| weaknesses = {{element|Lightning}}
| resistances =  {{Fire|resist}}
| immunities = {{Dark|resist}}
| absorbs = {{Water|resist}}
| type = henm
| subtype =
| tier = 2
| title obtained = Big Shot
}}
{{TestThisTemplate|nc
| image = Young Quadav.png
| image caption = Young Quadav
| job = [[Warrior]]
| family = Quadav
| crystal = Water
| weaknesses = {{element|Lightning}}
| resistances =  {{Fire|resist}}
| immunities = {{Dark|resist}}
| absorbs = {{Water|resist}}
| type = henm
| subtype =
| tier = 2
| title obtained = Big Shot
}}

Latest revision as of 22:46, 21 November 2024