Editing Template:Creature Summary
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone.
Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | <includeonly><!-- | + | <includeonly><cleanspace> |
− | -->{{# | + | <!-- Note: This template makes use of instructions like {{#if:1|{{{attack}}}}} instead of just {{{attack}}} to trigger correct bullet handling with parameters like "drops=* Minor Loot" (without requiring a leading line break in the template call). --> |
− | --> | + | |
− | -->{{#if:{{{type|}}}|{{#ifeq:{{{type|}}}|N/A||[[Category:{{#if: {{ | + | <!-- Defines --> |
− | - | + | {{#inherit:ns_base}} |
− | --> | + | {{#define:ns_base|Oblivion|if={{#switch:{{NAMESPACE}}|User|Template=1|0}}}} |
− | {| class="wikitable | + | {{#define:bgcolor|{{Race Color|{{{type|}}}|noquotes=1}}}} |
− | + | {{#define:fcolor|{{Race Color FC|{{{type|}}}|noquotes=1}}}} | |
+ | {{#define:headerStyle|style="color:{{{fcolor}}}; background-color:{{{bgcolor}}}"}} | ||
+ | {{#define:image|case=any}} | ||
+ | {{#define:titlename|{{LABELNAME}}}} | ||
+ | {{Parameter Check|type=Creature}} | ||
+ | {{#unset:image|ifnot={{#ifeq:{{{image|}}}|none||{{{image|}}}}}}} | ||
+ | |||
+ | <!-- Bread Crumb Trail --> | ||
+ | {{#ifeq:{{NAMESPACE}}|User||{{#inittrail:Creatures|if={{#if:{{{notrail|}}}|0|1}}}} | ||
+ | {{#addtotrail:{{{type}}}|ns={{{typenamesp|{{NS_ID}}}}}|if={{#if:{{{notrail|}}}|0|{{{type|}}}}}}} | ||
+ | {{#addtotrail:Merchants|separator=' / '|if={{#if:{{{notrail|}}}|0|{{{buys|}}}{{{sells|}}}}}}} | ||
+ | {{#addtotrail:[[{{NS_FULL}}Blacksmith|Blacksmiths]]|separator=' / '|if={{#if:{{{notrail|}}}|0|{{{repair|}}}}}}}}} | ||
+ | |||
+ | <!-- Categories --> | ||
+ | {{#if:{{{nocat|}}}|| | ||
+ | {{#switch:{{SUBJECTSPACE}}|User|Template= | ||
+ | |[[Category:{{NS_CATEGORY}}-Creatures-All]] | ||
+ | {{#define:speciescat|{{#ifeq:{{{species|}}}|Radiant|Radiant Creatures|{{{species|}}}}}}} | ||
+ | {{#ifeq:{{{health|}}}|0|[[Category:{{NS_CATEGORY}}-Dead Creatures]]| | ||
+ | {{#if:{{{type|}}}|{{#ifeq:{{{type|}}}|N/A||{{#ifeq:{{{type|}}}|Radiant||[[Category:{{NS_CATEGORY}}-Creatures-{{{type}}}]]}}}}}} | ||
+ | {{#if:{{{tribe|}}}|[[Category:{{NS_CATEGORY}}-Creatures-{{{type}}}-{{{tribe}}}]]}} | ||
+ | {{#ifeq:{{{speciescat|}}}|none||{{#ifeq:{{{species|}}}|N/A||{{#if:{{{speciescat|{{{species|}}}}}}|{{#ifeq:{{{speciescat|}}}|Radiant Creatures|[[Category:{{NS_CATEGORY}}-{{{speciescat|}}}]]|[[Category:{{NS_CATEGORY}}-Creatures-{{{type}}}-{{{speciescat|{{{species}}}}}}]]}}}}}}}} | ||
+ | {{#if:{{{buys|{{{sells|}}}}}}|[[Category:{{NS_CATEGORY}}-Merchants]]}} | ||
+ | {{#if:{{{repair|}}}|[[Category:{{NS_CATEGORY}}-Repairs]]}} | ||
+ | {{#if:{{{follower|}}}|[[Category:{{NS_CATEGORY}}-Follower Creatures]]|}} | ||
+ | {{#if:{{{essential|}}}|[[Category:{{NS_CATEGORY}}-Essential Creatures]]|}} | ||
+ | {{#if:{{{protected|}}}|[[Category:{{NS_CATEGORY}}-Protected Creatures]]|}}}}}} | ||
+ | {{#local:soultype|{{#switch:{{NS_PARENT}} | ||
+ | |Morrowind={{#iferror:{{#expr:{{{soul|}}} * 1}}||{{#ifexpr:{{{soul|}}}<=30|Petty | ||
+ | |{{#ifexpr:{{{soul|}}}<=60|Lesser | ||
+ | |{{#ifexpr:{{{soul|}}}<=120|Common | ||
+ | |{{#ifexpr:{{{soul|}}}<=180|Greater | ||
+ | |{{#ifexpr:{{{soul|}}}<=600|Grand|Divine | ||
+ | }}}}}}}}}}}} | ||
+ | |Oblivion={{#switch:{{{soul}}}|Petty|Lesser|Common|Greater|Grand={{{soul}}}|{{#ifeq:{{#sub:{{{soul|}}}|0|7}}|Leveled|Leveled}}}} | ||
+ | |Skyrim={{#switch:{{{soul}}}|Petty|Lesser|Common|Greater|Grand|Black|Dragon={{{soul}}}|{{#ifeq:{{#sub:{{{soul|}}}|0|7}}|Leveled|Leveled}}}} | ||
+ | }}|if={{#if:{{{soul|}}}|1}}}} | ||
+ | {{#if:{{{soultype|}}}|[[Category:{{NS_CATEGORY}}-Souls-{{{soultype|}}}]]}} | ||
+ | }} | ||
+ | |||
+ | <!-- Infobox --> | ||
+ | </cleanspace><cleantable> | ||
+ | {|class="wikitable" width="{{{tablewidth|33%}}}" style="float:right; margin:0 0 0.75em 1em" | ||
|- | |- | ||
− | {{#if:{{{ | + | !colspan=4 {{{headerStyle}}}|{{{titlename}}} {{#ifeq:{{NS_PARENT}}|Morrowind|{{Small|({{#if:{{{id|}}}|{{{id}}}|{{lc:{{{titlename}}}}}}})}}|{{#if:{{{refid|}}}|{{IDs2|addbefore=(RefID: |{{{refid}}}|addafter=)}}}}}} |
− | {{ | + | |
|- | |- | ||
− | + | !Added by | |
− | + | |colspan=3|{{{mod|}}} | |
− | {{ | + | |
|- | |- | ||
− | + | !Home City | |
− | + | |colspan=3|{{{city|}}} | |
− | {{ | + | |
|- | |- | ||
− | {{#if:{{{ | + | !House |
− | !{{ | + | |colspan=3|{{{house|}}} |
− | {{ | + | |- |
+ | !Location | ||
+ | |colspan=3|{{{loc|}}} | ||
+ | |- | ||
+ | !Species | ||
+ | |{{#if:{{{species|}}}|{{#ifeq:{{{species|}}}|N/A|N/A|{{#if:{{#pos:{{{species|}}}|:}}|{{{species}}}|{{#ifeq:{{{speciescat|}}}|none|{{{species}}}|{{SkipLink|{{NS_FULL}}{{{species}}}|{{{species}}}}}}}}}}}|{{huh}}}} | ||
+ | !{{SkipLink|{{NS_PARENT}}:Souls|Soul}} | ||
+ | | {{#ifeq:{{NS_PARENT}}|Morrowind | ||
+ | |{{#if:{{{soultype|}}} | ||
+ | |{{{soultype}}} ({{{soul}}}) | ||
+ | |{{{soul|}}}}} | ||
+ | |{{{soul|}}}}} | ||
|- | |- | ||
− | |||
!Level | !Level | ||
− | {{!}}{{{ | + | |{{{level|}}} |
+ | !Type | ||
+ | |{{#if:{{{type|}}}|{{SkipLink|{{NS_FULL:{{{typenamesp|}}}}}{{{type}}}|{{{type}}}}}}} | ||
|- | |- | ||
− | {{#if:{{{ | + | !{{#if:{{{refid|}}}|{{SkipLink|{{NS_PARENT}}:NPCs#Console IDs|RefID}}}} |
− | ! | + | |{{#if:{{{refid|}}}|{{IDs2|{{{refid|}}}|hover={{{refidhover|}}}|sep=<br>}}}} |
− | {{ | + | !{{#if:{{{baseid|}}}|{{SkipLink|{{NS_PARENT}}:NPCs#Console IDs|BaseID}}}} |
+ | |{{#if:{{{baseid|}}}|{{IDs2|{{{baseid|}}}|hover={{{baseidhover|}}}|sep=<br>}}}} | ||
|- | |- | ||
− | + | !Tribe | |
− | + | |colspan=3|{{{tribe|}}} | |
− | {{ | + | |
|- | |- | ||
− | {{ | + | !colspan=4 {{{headerStyle}}}|Attacks |
− | + | ||
− | + | ||
|- | |- | ||
− | + | |colspan=4|{{#if:1|{{{attack}}}}} | |
− | + | ||
− | + | ||
|- | |- | ||
− | {{#if:{{{ | + | !colspan=4 {{{headerStyle}}}|Abilities |
− | ! | + | |- |
− | {{!}}{{#if: | + | |colspan=4|{{#if:1|{{{abilities}}}}} |
+ | |- | ||
+ | !colspan=4 {{{headerStyle}}}|Drops | ||
+ | |- | ||
+ | |colspan=4|{{#if:1|{{{drops}}}}} | ||
+ | |- | ||
+ | !colspan=4 {{{headerStyle}}}|Services | ||
+ | |- | ||
+ | !Other | ||
+ | |colspan=3|{{#if:{{{repair|}}}|[[Image:Repairicon_small.png|Repairs]] [[{{NS_PARENT}}:Blacksmith|Repairs]]}} | ||
+ | |- | ||
+ | !colspan=4 {{{headerStyle}}}|Merchant | ||
+ | |- | ||
+ | !{{SkipLink|{{NS_PARENT}}:Commerce#Merchants' Gold|Gold}} | ||
+ | |{{{gold|}}} | ||
+ | !{{#if:{{{buys|{{{sells|}}}}}}|{{SkipLink|{{NS_PARENT}}:Mercantile|Mercantile}}}} | ||
+ | |{{#if:{{{buys|{{{sells|}}}}}}|{{merc|0}}}} | ||
+ | |- | ||
+ | !Sells | ||
+ | |colspan=3|{{{sells|}}} | ||
+ | |- | ||
+ | !Buys | ||
+ | |colspan=3|{{{buys}}} | ||
+ | |- | ||
+ | !colspan=4 {{{headerStyle}}}|Other Information | ||
+ | |- | ||
+ | !{{SkipLink|{{NS_PARENT}}:Health|Health}} | ||
+ | |{{{health}}} {{#ifeq:{{{health|}}}|0|('''Dead''')|}} | ||
+ | !{{SkipLink|{{NS_PARENT}}:Magicka|Magicka}} | ||
+ | |{{{magicka}}} | ||
+ | |- | ||
+ | !{{#if:{{{stamina|}}}|{{SkipLink|{{NS_PARENT}}:Stamina|Stamina}}}} | ||
+ | |colspan=3| {{{stamina|}}} | ||
+ | |- | ||
+ | !Alarm | ||
+ | |{{{alarm|{{#if:{{{fight|}}}|{{huh}}}}}}} | ||
+ | !Fight | ||
+ | |{{{fight|{{#if:{{{alarm|}}}|{{huh}}}}}}} | ||
+ | |- | ||
+ | !{{#if:{{{resp|}}}|{{SkipLink|{{NS_PARENT}}:Responsibility|Respons.}}}} | ||
+ | |{{{resp|{{#if:{{{agress|}}}|{{huh}}}}}}} | ||
+ | !{{#if:{{{aggress|}}}|{{SkipLink|{{NS_PARENT}}:Aggression|Aggress.}}}} | ||
+ | |{{{aggress|{{#if:{{{resp|}}}|{{huh}}}}}}} | ||
+ | |- | ||
+ | !Primary Skills | ||
+ | |colspan=3|{{{skills|}}} | ||
+ | |- | ||
+ | !Perks | ||
+ | |colspan=3|{{{perks|}}} | ||
|- | |- | ||
− | {{#if:{{{ | + | !{{#if:{{{essential|}}}|{{SkipLink|{{NS_FULL}}Essential Creatures|Essential}}}} |
− | + | |colspan=3|{{{essential|}}} | |
− | {{ | + | |
|- | |- | ||
− | {{#if:{{{ | + | !{{#if:{{{protected|}}}|{{SkipLink|{{NS_FULL}}Protected Creatures|Protected}}}} |
− | {{!}}colspan= | + | |colspan=3|{{{protected|}}} |
+ | {{#if:{{{follower|}}}| | ||
+ | {{!}}- | ||
+ | !{{SkipLink|{{NS_FULL}}Followers|Follower}} | ||
+ | {{!}}colspan=3{{!}}{{{follower}}} | ||
+ | }} | ||
|- | |- | ||
− | {{#if:{{{ | + | !{{SkipLink|{{NS_FULL}}Factions|Faction(s)}} |
− | {{ | + | |colspan=3|{{{faction|}}} |
− | + | |}</cleantable>{{#if:{{{image|}}}|[[Image:{{{image}}}|thumb|left|{{{imgdesc|}}}]]}}{{#if:{{{altname|}}}|{{DEFAULTSORT:{{{altname}}}}}}}</includeonly><noinclude> | |
{{/Doc}}</noinclude> | {{/Doc}}</noinclude> |