Difference between revisions of "Template:Creature Summary"

The Beyond Skyrim Wiki — Hosted by UESP
Jump to: navigation, search
m (1 revision imported: templates from UESPWiki)
(Undo revision 2426 by Candoran2 (talk) - it did affect categories, but the fauna categorization was not affected, as it was generated by the trail)
 
(17 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><cleanspace>
+
<includeonly><!--
<!-- 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:{{{notrail|}}}||{{Trail|Fauna|{{{type|}}}}}}}{{#if:{{{nocat|}}}||<!--
 
+
-->[[Category:{{#if: {{NAMESPACE}} | {{NAMESPACE}}-}}Creatures-All]]<!--
<!-- Defines -->
+
-->{{#if:{{{type|}}}|{{#ifeq:{{{type|}}}|N/A||[[Category:{{#if: {{NAMESPACE}} | {{NAMESPACE}}-}}Creatures-{{{type}}}]]}}}}<!--
{{#inherit:ns_base}}
+
-->{{#if:{{{soul|}}}|[[Category:{{#if: {{NAMESPACE}} | {{NAMESPACE}}-}}Souls-{{{soul|}}}]]}}}}<!--
{{#define:ns_base|Oblivion|if={{#switch:{{NAMESPACE}}|User|Template=1|0}}}}
+
-->__NOTOC__
{{#define:bgcolor|{{Race Color|{{{type|}}}|noquotes=1}}}}
+
{| class="wikitable infobox" style="float:right;"
{{#define:fcolor|{{Race Color FC|{{{type|}}}|noquotes=1}}}}
+
|+{{{titlename|{{PAGENAME}}}}}
{{#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"
 
 
|-
 
|-
!colspan=4 {{{headerStyle}}}|{{{titlename}}} {{#ifeq:{{NS_PARENT}}|Morrowind|{{Small|({{#if:{{{id|}}}|{{{id}}}|{{lc:{{{titlename}}}}}}})}}|{{#if:{{{refid|}}}|{{IDs2|addbefore=(RefID:&#32;|{{{refid}}}|addafter=)}}}}}}
+
{{#if:{{{image|}}}|
 +
{{!}}colspan=2{{!}}[[File:{{{image}}}|center|frameless]] {{#if:{{{caption|}}}|<div style="text-align:center; font-size:smaller;">{{{caption}}}</div>}} }}
 
|-
 
|-
!Added by
+
{{#if:{{{type|}}}|
|colspan=3|{{{mod|}}}
+
!Type
 +
{{!}} {{Autolink|{{{type}}}}} }}
 
|-
 
|-
!Home&nbsp;City
+
{{#if:{{{species|}}}|
|colspan=3|{{{city|}}}
+
!Species
|-
+
{{!}} {{Autolink|{{{species}}}}} }}
!House
 
|colspan=3|{{{house|}}}
 
|-
 
!Location
 
|colspan=3|{{{loc|}}}
 
 
|-
 
|-
!Species
+
{{#if:{{{soul|}}}|
|{{#if:{{{species|}}}|{{#ifeq:{{{species|}}}|N/A|N/A|{{#if:{{#pos:{{{species|}}}|:}}|{{{species}}}|{{#ifeq:{{{speciescat|}}}|none|{{{species}}}|{{SkipLink|{{NS_FULL}}{{{species}}}|{{{species}}}}}}}}}}}|{{huh}}}}
+
!{{UESP|Skyrim:Souls|Soul}}
!{{SkipLink|{{NS_PARENT}}:Souls|Soul}}
+
{{!}} {{{soul}}} }}
| {{#ifeq:{{NS_PARENT}}|Morrowind
 
  |{{#if:{{{soultype|}}}
 
    |{{{soultype}}} ({{{soul}}})
 
    |{{{soul|}}}}}
 
  |{{{soul|}}}}}
 
 
|-
 
|-
 +
{{#if:{{{level|}}}|
 
!Level
 
!Level
|{{{level|}}}
+
{{!}}{{{level}}} }}
!Type
 
|{{#if:{{{type|}}}|{{SkipLink|{{NS_FULL:{{{typenamesp|}}}}}{{{type}}}|{{{type}}}}}}}
 
 
|-
 
|-
!{{#if:{{{refid|}}}|{{SkipLink|{{NS_PARENT}}:NPCs#Console IDs|RefID}}}}
+
{{#if:{{{health|}}}|
|{{#if:{{{refid|}}}|{{IDs2|{{{refid|}}}|hover={{{refidhover|}}}|sep=<br>}}}}
+
!Health
!{{#if:{{{baseid|}}}|{{SkipLink|{{NS_PARENT}}:NPCs#Console IDs|BaseID}}}}
+
{{!}}{{{health}}} }}
|{{#if:{{{baseid|}}}|{{IDs2|{{{baseid|}}}|hover={{{baseidhover|}}}|sep=<br>}}}}
 
 
|-
 
|-
!Tribe
+
{{#if:{{{magicka|}}}|
|colspan=3|{{{tribe|}}}
+
!Magicka
 +
{{!}}{{{magicka}}} }}
 
|-
 
|-
!colspan=4 {{{headerStyle}}}|Attacks
+
{{#if:{{{stamina|}}}|
 +
!Stamina
 +
{{!}}{{{stamina}}} }}
 
|-
 
|-
|colspan=4|{{#if:1|{{{attack}}}}}
+
{{#if:{{{perks|}}}|
|-
+
!Perks
!colspan=4 {{{headerStyle}}}|Abilities
+
{{!}}{{#if:1|{{{perks}}}}} }}
|-
 
|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
+
{{#if:{{{skills|}}}|
|colspan=3|{{{skills|}}}
+
!Skills
|-
+
{{!}}{{#if:1|{{{skills}}}}} }}
!Perks
 
|colspan=3|{{{perks|}}}
 
 
|-
 
|-
!{{#if:{{{essential|}}}|{{SkipLink|{{NS_FULL}}Essential Creatures|Essential}}}}
+
{{#if:{{{abilities|}}}|
|colspan=3|{{{essential|}}}
+
!Abilities
 +
{{!}}{{#if:1|{{{abilities}}}}} }}
 
|-
 
|-
!{{#if:{{{protected|}}}|{{SkipLink|{{NS_FULL}}Protected Creatures|Protected}}}}
+
{{#if:{{{baseid|}}}|
|colspan=3|{{{protected|}}}
+
{{!}}colspan=2{{!}}<small>BaseID:&#32;{{{baseid}}}</small>}}
{{#if:{{{follower|}}}|
 
{{!}}-
 
!{{SkipLink|{{NS_FULL}}Followers|Follower}}
 
{{!}}colspan=3{{!}}{{{follower}}}
 
}}
 
 
|-
 
|-
!{{SkipLink|{{NS_FULL}}Factions|Faction(s)}}
+
{{#if:{{{refid|}}}|
|colspan=3|{{{faction|}}}
+
{{!}}colspan=2{{!}}<small>RefID:&#32;{{{refid}}}</small>}}
|}</cleantable>{{#if:{{{image|}}}|[[Image:{{{image}}}|thumb|left|{{{imgdesc|}}}]]}}{{#if:{{{altname|}}}|{{DEFAULTSORT:{{{altname}}}}}}}</includeonly><noinclude>
+
|}</includeonly><noinclude>
 
{{/Doc}}</noinclude>
 
{{/Doc}}</noinclude>

Latest revision as of 05:00, 12 April 2020

Summary[edit]

This template creates an infobox for use on all Creature pages. It includes the appropriate bread crumb trails and categories.

Parameters[edit]

Creature Summary
Parameter Scope Description
titlename optional Creature's name as displayed at the top of the infobox. Will default to use PAGENAME.
refid optional Creature's reference FormID. Multiple IDs should be separated with a comma.
baseid optional Creature's base FormID. Multiple IDs should be separated with a comma.
type optional Creature's type (e.g. Daedra, Undead, etc.)
species optional Species of the creature.
soul optional Creature's soul (Petty, Common, Grand, etc.)
level optional Creature's level
health optional Creature's health.
magicka optional Creature's magicka.
stamina optional Creature's stamina.
perks optional Creature's perks.
skills optional Creature's primary skills.
abilities optional Creature's passive abilities - resistances, weaknesses, etc.
image optional The name of an image file for this Creature, just the file name.
notrail optional If set to "yes", the breadcrumb trail normally created by the template is suppressed (for cases where multiple templates are used on one page or when used for a generic NPC).
nocat optional If set to "yes", the categories normally added by the template are suppressed.

Example[edit]

{{Creature Summary
|image=Zombie.jpg
|caption=A zombie
|type=Undead
|species=Zombie
|soul=Leveled
|level=lvl-1
|health=50×(lvl-1)
|magicka=N/A
|abilities=
*[[Oblivion:Resist Frost|Resist Frost]] 30%
*[[Oblivion:Resist Magic|Resist Magic]] 30%
*[[Oblivion:Resist Poison|Resist Poison]] 100%
*[[Oblivion:Weakness to Fire|Weakness to Fire]] 60%
|refid=00091AAA
|baseid=00091AA9
}}


Creature Summary
Zombie.jpg
A zombie
Type Undead
Species Zombie
Soul Leveled
Level lvl-1
Health 50×(lvl-1)
Magicka N/A
Abilities
BaseID: 00091AA9
RefID: 00091AAA