模板:Monsters (Diablo2)
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
第1行: | 第1行: | ||
+ | <includeonly> | ||
+ | <!------------> | ||
+ | <!-- HEADER --> | ||
+ | <!-- Controls the header that displays in the template. Some cells disappear depending on what is specified in the rest of the template (Preset Attributes, Abilities and Locations). --> | ||
+ | {{#ifeq:{{{1|}}} | top | | ||
+ | {{{!}} class="dftable dfborder" cellpadding="6" style="height: 100%; width: 100%; text-align: center;" | ||
+ | {{!}}- | ||
+ | ! rowspan="2" width="15%" {{!}} <span style="font-size: 1.4em; letter-spacing: .10em; font-family: Georgia;">{{#if:{{{breed|}}} | {{{breed}}} | {{{name}}} }}</span><br />{{{type|}}} | ||
+ | ! rowspan="2" width="1%" {{!}} {{2|Difficulty}} | ||
+ | ! rowspan="2" {{!}} Health | ||
+ | ! colspan="6" {{!}} [[Damage Reduction#Monster Resistances|Resistances]] | ||
+ | ! rowspan="2" style="width: 1px;" {{!}} Drain Effectiveness | ||
+ | ! {{#if:{{{superunique|}}} | colspan="2" | rowspan="2" }} {{!}} Locations (Monster Level) | ||
+ | {{#if:{{{superunique|}}} | | | ||
+ | {{#if:{{{presets|}}} | ! rowspan="2" {{!}} Preset Attributes }} | ||
+ | {{#if:{{{rune|}}} | ! rowspan="2" {{!}} Highest Rune Drop }} }} | ||
+ | {{!}}- | ||
+ | ! style="width: 2em;" {{!}} <span style="color: blue;">C</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: red;">F</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: yellow;">L</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: orange;">M</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: white;">Phy</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: lime;">Psn</span> | ||
+ | {{#if:{{{superunique|}}} | | ||
+ | ! Regular | ||
+ | ! [[Champion Monsters (Diablo II)|Champion]]/[[Unique Monsters (Diablo II)|Unique]] }} | ||
+ | {{!}}- }} | ||
+ | <!-----------------> | ||
+ | <!-- NORMAL CELL --> | ||
+ | <!-- If no |image is specified, the normal cell will be omitted and only the hell cell displayed. If no |imageN is specified, the template assumes one monster animation is used for all three difficulties. If it is specified, such as for act bosses, all difficulties will get their own image --> | ||
+ | {{#if:{{{image|}}} | | ||
+ | {{!}} {{#if:{{{imageN|}}} | | {{#if:{{{health|}}} | rowspan="3" {{!}} | {{#if:{{{healthN|}}} | rowspan="2" {{!}} }} }} }} | ||
+ | {{{!}} cellpadding="0" cellspacing="0" style="height: 100%; width: 100%;" | ||
+ | {{!}} valign="top" style="border-style: none;" {{!}} {{#if:{{{superunique|}}} | {{{name}}} }}<br /> | ||
+ | {{!}}- | ||
+ | {{!}} style="border-style: none; height: 1px;" {{!}} [[File:{{{image}}}]] | ||
+ | {{!}}- | ||
+ | {{!}} valign="bottom" style="border-style: none;" {{!}} {{#if:{{{superunique|}}} | [[Super Unique]]: {{{superunique}}} | {{#if:{{{basemonster|}}} | {{{basemonster}}} }} }}<br /> | ||
+ | {{!}}} | ||
+ | {{#if:{{{health|}}} | | ||
+ | {{!}} Normal | ||
+ | {{!}} {{{health}}} | ||
+ | {{!}} {{#ifexpr:{{{cold|}}} >= 100 | <span style="color: blue;">{{{cold}}}</span> | {{{cold}}} }} | ||
+ | {{!}} {{#ifexpr:{{{fire|}}} >= 100 | <span style="color: red;">{{{fire}}}</span> | {{{fire}}} }} | ||
+ | {{!}} {{#ifexpr:{{{lightning|}}} >= 100 | <span style="color: yellow;">{{{lightning}}}</span> | {{{lightning}}} }} | ||
+ | {{!}} {{#ifexpr:{{{magic|}}} >= 100 | <span style="color: orange;">{{{magic}}}</span> | {{{magic}}} }} | ||
+ | {{!}} {{#ifexpr:{{{physical|}}} >= 100 | <span style="color: white;">{{{physical}}}</span> | {{{physical}}} }} | ||
+ | {{!}} {{#ifexpr:{{{poison|}}} >= 100 | <span style="color: lime;">{{{poison}}}</span> | {{{poison}}} }} | ||
+ | {{!}} {{{drain}}}% | ||
+ | {{!}} {{{location}}} | ||
+ | {{#if:{{{superunique|}}} | {{!}} {{{ulocation}}} | {{#if:{{{health|}}} | | ||
+ | {{#if:{{{presets|}}} | {{!}} rowspan="3" {{!}} {{{presets}}} }} }} | ||
+ | {{#if:{{{rune|}}} | {{!}} {{{rune}}} }} }} | ||
+ | {{!}}- }} }} | ||
+ | <!--------------------> | ||
+ | <!-- NIGHTMARE CELL --> | ||
+ | {{#if:{{{healthN|}}} | {{#if:{{{imageN|}}} | | ||
+ | {{!}} | ||
+ | {{{!}} cellpadding="0" cellspacing="0" style="height: 100%; width: 100%;" | ||
+ | {{!}} valign="top" style="border-style: none;" {{!}} <br /> | ||
+ | {{!}}- | ||
+ | {{!}} style="border-style: none; height: 1px;" {{!}} [[File:{{{imageN}}}]] | ||
+ | {{!}}- | ||
+ | {{!}} valign="bottom" style="border-style: none;" {{!}} <br /> | ||
+ | {{!}}} }} | ||
+ | {{!}} Nightmare | ||
+ | {{!}} {{{healthN}}} | ||
+ | {{!}} {{#ifexpr:{{{coldN|}}} >= 100 | <span style="color: blue;">{{{coldN}}}</span> | {{{coldN}}} }} | ||
+ | {{!}} {{#ifexpr:{{{fireN|}}} >= 100 | <span style="color: red;">{{{fireN}}}</span> | {{{fireN}}} }} | ||
+ | {{!}} {{#ifexpr:{{{lightningN|}}} >= 100 | <span style="color: yellow;">{{{lightningN}}}</span> | {{{lightningN}}} }} | ||
+ | {{!}} {{#ifexpr:{{{magicN|}}} >= 100 | <span style="color: orange;">{{{magicN}}}</span> | {{{magicN}}} }} | ||
+ | {{!}} {{#ifexpr:{{{physicalN|}}} >= 100 | <span style="color: white;">{{{physicalN}}}</span> | {{{physicalN}}} }} | ||
+ | {{!}} {{#ifexpr:{{{poisonN|}}} >= 100 | <span style="color: lime;">{{{poisonN}}}</span> | {{{poisonN}}} }} | ||
+ | {{!}} {{{drainN}}}% | ||
+ | {{!}} {{{locationN}}} | ||
+ | {{#if:{{{superunique|}}} | {{!}} {{{ulocationN}}} | {{#if:{{{health|}}} | | | ||
+ | {{#if:{{{presets|}}} | {{!}} rowspan="2" {{!}} {{{presets}}} }} }} | ||
+ | {{#if:{{{runeN|}}} | {{!}} {{{runeN}}} }} }} | ||
+ | {{!}}- }} | ||
+ | <!---------------> | ||
+ | <!-- HELL CELL --> | ||
+ | <!-- If no |image is displayed, only this part shows up. It is designed to accommodate for monsters that only appear in Hell, such as DClone, Lilith and Pit Lords. --> | ||
+ | {{#if:{{{imageH|}}} | | ||
+ | {{!}} | ||
+ | {{{!}} cellpadding="0" cellspacing="0" style="height: 100%; width: 100%;" | ||
+ | {{!}} valign="top" style="border-style: none;" {{!}} {{#if:{{{image|}}} | | {{#if:{{{1|}}} | | {{{name}}} }} }}<br /> | ||
+ | {{!}}- | ||
+ | {{!}} style="border-style: none; height: 1px;" {{!}} [[File:{{{imageH}}}]] | ||
+ | {{!}}- | ||
+ | {{!}} valign="bottom" style="border-style: none;" {{!}} <br /> | ||
+ | {{!}}} }} | ||
+ | | Hell | ||
+ | | {{{healthH}}} | ||
+ | | {{#ifexpr:{{{coldH|}}} >= 100 | <span style="color: blue;">{{{coldH}}}</span> | {{{coldH}}} }} | ||
+ | | {{#ifexpr:{{{fireH|}}} >= 100 | <span style="color: red;">{{{fireH}}}</span> | {{{fireH}}} }} | ||
+ | | {{#ifexpr:{{{lightningH|}}} >= 100 | <span style="color: yellow;">{{{lightningH}}}</span> | {{{lightningH}}} }} | ||
+ | | {{#ifexpr:{{{magicH|}}} >= 100 | <span style="color: orange;">{{{magicH}}}</span> | {{{magicH}}} }} | ||
+ | | {{#ifexpr:{{{physicalH|}}} >= 100 | <span style="color: white;">{{{physicalH}}}</span> | {{{physicalH}}} }} | ||
+ | | {{#ifexpr:{{{poisonH|}}} >= 100 | <span style="color: lime;">{{{poisonH}}}</span> | {{{poisonH}}} }} | ||
+ | | {{{drainH}}}% | ||
+ | | {{{locationH}}} | ||
+ | {{#if:{{{superunique|}}} | {{!}} {{{ulocationH}}} | {{#if:{{{healthN|}}} | | | ||
+ | {{#if:{{{presets|}}} | {{!}} {{{presets}}} }} }} | ||
+ | {{#if:{{{runeH|}}} | {{!}} {{{runeH}}} }} }} | ||
+ | |- | ||
+ | </includeonly> | ||
+ | <noinclude> | ||
This template is used to display [[Diablo II]] monster data. It accomodates regular monsters, superunique monsters and bosses. The formatting is screwed up on this page due to how it is designed. | This template is used to display [[Diablo II]] monster data. It accomodates regular monsters, superunique monsters and bosses. The formatting is screwed up on this page due to how it is designed. | ||
* The topmost monster must have |top added. This causes the table headers to appear. | * The topmost monster must have |top added. This causes the table headers to appear. | ||
第60行: | 第167行: | ||
|runeH = | |runeH = | ||
- | }}</pre>[[Category:Monster Templates]] | + | }}</pre>[[Category:Monster Templates]]</noinclude> |
在2011年10月1日 (六) 12:44所做的修订版本
This template is used to display Diablo II monster data. It accomodates regular monsters, superunique monsters and bosses. The formatting is screwed up on this page due to how it is designed.
- The topmost monster must have |top added. This causes the table headers to appear.
{{Monster (Diablo II)|top
- Each monster uses a full template. If five monster breeds are to be displayed on the same page, the template needs to be used five times.
- |imageN and |imageH are used to display color variations between difficulties for act bosses. They should be left blank for all other types of monsters.
- |superunique is used to display what the superunique version of a monster is called. All regular monsters must have this field filled; if no superunique exists, enter "None".
- Resists automatically color if they reach 100 or above.
- |ulocation is where the champion/unique version of a monster type may spawn. For Super Uniques and Bosses, leave this blank.
- |presets refers to Super Unique abilities like Spectral Hit.
- When a page is done, the table must be ended like this: |}. Otherwise a navbox cannot be added to the bottom of the page.
{{Monster (Diablo II) |name = |breed = |type = |image = |imageN = |imageH = |superunique = |basemonster = |health = |healthN = |healthH = |physical = |magic = |fire = |lightning = |cold = |poison = |physicalN = |magicN = |fireN = |lightningN = |coldN = |poisonN = |physicalH = |magicH = |fireH = |lightningH = |coldH = |poisonH = |drain = |drainN = |drainH = |location = |locationN = |locationH = |ulocation = |ulocationN = |ulocationH = |presets = |rune = |runeN = |runeH = }}