Template:Combat
From TheKolWiki
| This high-use template has been protected from editing to prevent inaccurate edits and/or vandalism. Please use the talk page to discuss changes, and/or to ask an administrator to make an edit for you.
|
{{Combat}} <includeonly>{{#if:{{{noline|}}}| |----}}
{| style="margin-left: {{#expr: {{{nest|0}}} * 2}}em;"
|-
| colspan="2" | '''[[{{{name}}}|{{data2|{{{name}}}|name|{{{name}}}}}]] '''<span class="plainlinks" style="font-size:smaller;text-align:right;"> -- ({{#ifexist:Data:{{{name|}}}|[{{fullurl:Data:{{{name|}}}|action=edit}} edit metadata]|[{{fullurle:Data:{{{name}}}|action=edit&preload=Template:Combat/data}} create metadata]}})</span>'''
|-
| {{click|image={{data2|{{{name}}}|image|{{{image}}}}}||link={{{name}}}}}
|
- '''Item Drops:''' {{data2|{{{name}}}|items|{{{drops|None}}}}}{{#if:{{{bounty|{{data2|{{{name}}}|bounty|}}}}}
|
- '''[[The Bounty Hunter Hunter's Shack|Bounty]]:''' {{{bounty|{{data2|{{{name}}}|bounty|}}}}}'''}}{{#if:{{{quest|{{data2|{{{name}}}|quest|}}}}}|
- '''Quest Items:''' {{{quest|{{data2|{{{name}}}|quest|}}}}}'''}}{{#if:{{{pickpocket|{{data2|{{{name}}}|pickpocket|}}}}}|
- '''[[Pickpocket]]:''' {{{pickpocket|{{data2|{{{name}}}|pickpocket|}}}}}'''}}
- '''Meat Drop:''' {{#switch:{{data2|{{{name}}}|meat|{{{meat|None}}}}}|!=Indeterminate|#default={{data2|{{{name}}}|meat|{{{meat|None}}}}}}}
- '''Substat Gain:''' {{#switch:{{data2|{{{name}}}|stat|}}|!=Indeterminate|?=?|={{#switch:{{data2|{{{name}}}|attack|{{{stat|}}}}}|!=Indeterminate|?=?|#default={{#if:{{{stat|}}}|{{{stat|}}}|{{#switch:{{data2|{{{name}}}|attack|?}}|!=Indeterminate|?=?|#default={{#ifexpr:{{data2|{{{name}}}|attack|}}<4|1|{{#expr:{{data2|{{{name}}}|attack|}}/4}}}}}}}}}}|#default={{data2|{{{name}}}|stat|?}}}}
- '''Monster Level:''' {{#switch:{{data2|{{{name}}}|attack|{{{level|}}}}}|!=Indeterminate|#default={{data2|{{{name}}}|attack|{{{level|}}}}}}}
- '''Moxie for No Hit[[Safe Adventuring|*]]:''' {{#switch:{{{MoxieNoHit|{{{level|{{data2|{{{name}}}|attack|?}}}}}}}}|?=?|!=Indeterminate|#default={{{MoxieNoHit|{{#if:{{{level|}}}|{{#ifeq:{{{level}}}|?|?|{{#expr:{{{level}}}+7}}}}|{{#ifeq:{{data2|{{{name}}}|attack|?}}|?|?|{{#expr:{{data2|{{{name}}}|attack|?}}+7}}}}}}}}}}}
- '''Monster Defense:''' {{#switch:{{data2|{{{name}}}|defense|{{{defense}}}}}|!=Indeterminate|#default={{data2|{{{name}}}|defense|{{{defense|?}}}}}}}
- '''Hit Points:''' {{#switch:{{data2|{{{name}}}|hp|{{{hp}}}}}|!=Indeterminate|#default={{data2|{{{name}}}|hp|{{{hp}}}}}}}
- '''Initiative:''' {{#switch:{{data2|{{{name}}}|init|{{{init}}}}}|!=Indeterminate|#default={{data2|{{{name}}}|init|{{{init|?}}}}}}}
- '''Elemental Resistance:''' {{#switch:{{data2|{{{name}}}|element|{{{element|?}}}}}|none=None|None=None|!=Indeterminate|?=Unconfirmed; change to none if confirmed as none.[[Category:Needs Confirm| {{PAGENAME}}]]|{{data2|{{{name}}}|element|{{{element|?}}}}}={{element|{{data2|{{{name}}}|element|{{{element|?}}}}}|}}}}
- '''Elemental Weakness:''' {{#switch:{{data2|{{{name}}}|element|{{{element|?}}}}}|
hot={{element|stench|}} and {{element|sleaze|}}|
cold={{element|hot|}} and {{element|spooky|}}|
spooky={{element|hot|}} and {{element|stench|}}|
stench={{element|cold|}} and {{element|sleaze|}}|
sleaze={{element|cold|}} and {{element|spooky|}}|
bad spelling=[[dictionary]]|
shadow|none=None|None=None|!=Indeterminate|?=?}}
- '''Physical Resistance:''' {{#switch:{{data2|{{{name}}}|physical|{{{physical|None}}}}}|none=None|!=Indeterminate|#default={{data2|{{{name}}}|physical|{{{physical|None}}}}}}}
{{#if:{{{note1|}}}|*''Note:'' {{{note1}}}}}{{#if:{{{note2|}}}|*''Note:'' {{{note2}}}}}{{#if:{{{note3|}}}|*''Note:'' {{{note3}}}}}{{#if:{{{note4|}}}|*''Note:'' {{{note4}}}}}
|}</includeonly><noinclude>
{{prot high-use}}
{{Code2}}
==Usage==
Include the {{tl|Combat}} template for each combat adventure:
{{Combat|
name=''<span style="font-family: sans-serif">Sabre-toothed lime</span>''|
drops=''<span style="font-family: sans-serif"><nowiki>[[lime]], [[lime|totally different lime]]</nowiki></span>''|
meat=''<span style="font-family: sans-serif">13-16</span>''|
stat=''<span style="font-family: sans-serif">2-3</span>''|
element=''<span style="font-family: sans-serif">none</span>''|
image=''<span style="font-family: sans-serif">biglime.gif</span>''|
level=''<span style="font-family: sans-serif">77</span>''|
hp=''<span style="font-family: sans-serif">60</span>''}}
====Required Parameters====
- <code>name=</code> the name of the monster, as it appears in bold at the top of your center pane when adventuring.
- <code>drops=</code> a list of dropped items, separated by commas and spaces.
- Each item is double-bracketed to link to the item's page.
- If you gain multiple copies of an item, list the item multiple times.
- <code>meat=</code> the Meat gain.
- Make sure you take into account any active [[Meat from Monsters|Meat gain modifiers]].
- <code>stat=</code> the total substat gain.
- Add up Muscle, Mysticality, and Moxie gains. Make sure you take into account any active [[Stat Gains from Fights|stat gain modifiers]] (i.e., stat days, familiars, equipment, and effects).
- <code>element=</code> the monster's [[elements|element]].
- A monster is resistant to its own element and susceptible to two corresponding elements.
- If a monster has no element, list it as "none".
- <code>physical=</code> the monster's [[Physical Resistance]] ("none" or a percentage).
- <code>image=</code> the picture associated with the adventure, uploaded to the wiki with the filename used in the Kingdom.
- <code>level=</code> the monster's level.
- Be sure to take into account any active [[Monster Level|monster level modifiers]].
- If the monster's level scales with the player's, put "scales with level".
- <code>hp=</code> the monster's hit points.
- Be sure to take into account any active [[Monster Level|monster level modifiers]].
- If the monster's level scales with the player's, put "scales with level".
====Optional Parameters====
- <code>noline=yes</code> will suppress the top separator line (used for combats imbedded in choice adventures).
- <code>nest=X</code> will indent the adventure by X em (used for combats imbedded in choice adventures).
- If a data page has been created for the combat adventure, most parameters become optional. <code>name=</code> is always required.
- Substat gain from the template call has highest priority (will be the one chosen for display if provided), followed by the <code>stat</code> field on the data page, and the <code>attack</code>/4 field on the data page.
- <code>bounty=X</code> is for listing [[The Bounty Hunter Hunter's Shack|bounty items]].
- <code>quest=X</code> is for listing items that are quest drops
- <code>pickpocket=X</code> is for listing items that drop only on [[Pickpocket]].
This yields:
{{Combat|name=Sabre-toothed lime|drops=[[lime]], [[lime|totally different lime]]|meat=13-16|stat=2-3|element=none|image=biglime.gif|level=77|hp=60}}
[[Category:Standardization Templates|{{PAGENAME}}]]</noinclude>
Usage
Include the {{Combat}} template for each combat adventure:
{{Combat|
name=Sabre-toothed lime|
drops=[[lime]], [[lime|totally different lime]]|
meat=13-16|
stat=2-3|
element=none|
image=biglime.gif|
level=77|
hp=60}}
Required Parameters
name= the name of the monster, as it appears in bold at the top of your center pane when adventuring.
drops= a list of dropped items, separated by commas and spaces.
- Each item is double-bracketed to link to the item's page.
- If you gain multiple copies of an item, list the item multiple times.
meat= the Meat gain.
stat= the total substat gain.
- Add up Muscle, Mysticality, and Moxie gains. Make sure you take into account any active stat gain modifiers (i.e., stat days, familiars, equipment, and effects).
element= the monster's element.
- A monster is resistant to its own element and susceptible to two corresponding elements.
- If a monster has no element, list it as "none".
physical= the monster's Physical Resistance ("none" or a percentage).
image= the picture associated with the adventure, uploaded to the wiki with the filename used in the Kingdom.
level= the monster's level.
- Be sure to take into account any active monster level modifiers.
- If the monster's level scales with the player's, put "scales with level".
hp= the monster's hit points.
- Be sure to take into account any active monster level modifiers.
- If the monster's level scales with the player's, put "scales with level".
Optional Parameters
noline=yes will suppress the top separator line (used for combats imbedded in choice adventures).
nest=X will indent the adventure by X em (used for combats imbedded in choice adventures).
- If a data page has been created for the combat adventure, most parameters become optional.
name= is always required.
- Substat gain from the template call has highest priority (will be the one chosen for display if provided), followed by the
stat field on the data page, and the attack/4 field on the data page.
bounty=X is for listing bounty items.
quest=X is for listing items that are quest drops
pickpocket=X is for listing items that drop only on Pickpocket.
This yields:
|