Lucarl的测试页
出自【暗黑百科】DiabloWiki_凯恩之角
(修订版本间的差异)
(→2模板测试) |
|||
第102行: | 第102行: | ||
{{2|模板:Black}} | {{2|模板:Black}} | ||
{{2|Black}} | {{2|Black}} | ||
+ | |||
+ | == 二代怪物模板 == | ||
+ | |||
+ | <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 难度级别|游戏难度]] | ||
+ | ! rowspan="2" {{!}} 生命 | ||
+ | ! colspan="6" {{!}} [[暗黑2 抗性|怪物抗性]] | ||
+ | ! rowspan="2" style="width: 1px;" {{!}} 伤害效果 | ||
+ | ! {{#if:{{{superunique|}}} | colspan="2" | rowspan="2" }} {{!}} 怪物位置 (怪物等级) | ||
+ | {{#if:{{{superunique|}}} | | | ||
+ | {{#if:{{{presets|}}} | ! rowspan="2" {{!}} 预设属性 }} | ||
+ | {{#if:{{{rune|}}} | ! rowspan="2" {{!}} 最高掉率符文 }} }} | ||
+ | {{!}}- | ||
+ | ! style="width: 2em;" {{!}} <span style="color: blue;">冰</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: red;">火</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: yellow;">电</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: orange;">魔</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: white;">物</span> | ||
+ | ! style="width: 2em;" {{!}} <span style="color: lime;">毒</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|}}} | | ||
+ | {{!}} 普通 | ||
+ | {{!}} {{{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 /> | ||
+ | {{!}}} }} | ||
+ | {{!}} 噩梦 | ||
+ | {{!}} {{{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 /> | ||
+ | {{!}}} }} | ||
+ | | 地狱 | ||
+ | | {{{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. | ||
+ | * The topmost monster must have |top added. This causes the table headers to appear. | ||
+ | <pre>{{Monster (Diablo II)|top</pre> | ||
+ | * 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. | ||
+ | <pre> | ||
+ | {{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 = | ||
+ | }}</pre>[[Category:Monster Templates]]</noinclude> |
在2011年10月17日 (一) 13:54所做的修订版本
目录 |
模板测试
怪物模板测试
|
涂鸦板
套装
套装
- 这个符号什么作用?
- 我写两个写两个
lucarl's apetite fork |
需求等级:99 无法破坏 单手伤害 233-233 需求力量:500 需求敏捷:无 攻击范围:视力可及内 100% 提升攻击速度 +100% 增加伤害 +1000 活力 +10000食量上限 |
- 模板怎么创建啊怎么创建
- 可以随便写吗随便写
- 管他可不可以我要试一试啊试一试
- 这他喵的怎么让模板加框啊加框
- 我算尼玛明白了,模板命令就是让你的页面中直接显示另一页面
- 还有,分类的作用是提供同类型页面的快速导航,其他作用有待理解
|
2模板测试
二代怪物模板
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 = }}