我将简要概述版面布局,以及为 wiki 添加内容所需的各项要求。I'm going to give a brief overview of the the layout and what's required to add to the wiki.
Individual Pages
Every 物品item, 区域area, NPCNPC, mob, 任务quest or 技能skill has its own page. 页面标题应使用其名称的首字母大写格式(每个单词的首字母大写)。The title of the page should be its name in title case (First Letter of Every Word in Caps).
页面本身将是一个模板,但不位于模板命名空间内。The page itself is going to be a template but not within the template namespace. That means when it's called, there needs to be a colon before the 名字name, e.g.:
{{:NameofItem}}
That call will create the page that's intended to be shown only on that 物品items individual page (like going to the 钢匕首Steel Dagger page itself). 默认参数用于创建它自己的页面。The default argument is for creating its own page.
要从调用中获取不同的数据,你必须传入(最多 2 个)参数,以告知模板要显示什么。To get different data from the call you have to send arguments(up to 2) that tell the template what to display.
{{:钢匕首Steel Dagger|genSel|描述Description}}
Will result in
锋利的钢制武器。Sharp steel weapon.
The individual page itself 是is a template call to whatever 类型type it 是is (WpnSub, ItmSub, MobSub, etc) But the arguments passed (伤害damage, 描述description) are what 是is passed and able to be searched. So by calling the 物品item page as a template as above what happened 是is:
钢匕首Steel Dagger template call with argument 1 being genSel and argument 2 being 描述Description. 随后,它以该页面中的所有命名参数调用 WpnSub,此外,参数 1 被作为 Step 传入,参数 2 被作为 Sel 传入。That then called WpnSub with all the named arguments from that page in addition to sending argument 1 as Step and argument 2 as Sel.
The Step argument 是is what determines the output within WpnSub (or any sub) The Sel 是is what's used to customize the results even more but isn't always necessary.
表格Tables
The 桌子table are currently consolidated in the 表格tables template. 你想要的表格可以作为一个参数来指定,同时所需的输入也都可用。The table you want can be specified as an argument with the necessary inputs also available.
{{表格Tables|ArmTbl}}
Will create
| Icon | 名字Name | 分组Group | 槽位Slot | 职业Class | 稀有度Rarity | 护甲Armor | 生命Health | 魔力Mana | 属性Attribute | 抗性Resistances | 属性Traits |
|---|
And to populate 你you 使用use
{{表格Tables|ArmTblInput||维基编辑Wiki Editing|分组Group|槽位Slot}}
| Icon | 名字Name | 分组Group | 槽位Slot | 职业Class | 稀有度Rarity | 护甲Armor | 生命Health | 魔力Mana | 属性Attribute | 抗性Resistances | 属性Traits |
|---|---|---|---|---|---|---|---|---|---|---|---|
| 维基编辑Wiki Editing | 分组Group | 槽位Slot |
If 你you're using the 表格tables template manually then 你you'll need to put
After your data
Modifiers
There are a few Templates that 拾取take an input and return a more relevant/easier to understand format.
For the most part 你you won't be passing 数值values like below but as variables
{{抗性Resistances|{{{RawResist}}}|Disp}}
抗性Resistances
Returns linked icons and 抗性resistance 数值values from the format
|RawResist=0,0,0,0,0,0 火焰Fire, 寒冷Cold, 闪电Shock, 死亡Death, 毒素Toxic, 精神Spirit
{{抗性Resistances|20,0,0,0,0,20|Disp}}
20
20
The Vuln option returns a 1 if the 抗性resistance matches the input:
{{抗性Resistances|20,0,0,0,0,20|Vuln|火焰Fire}}
{{抗性Resistances|20,0,0,0,0,20|Vuln|寒冷Cold}}
1 0
属性Traits
|RawTrait=0,0,0,0,0,0 力量Strength, 耐力Endurance, 敏捷Agility, 智力Intellect, 感知Awareness, 魅力Personality
{{属性Traits|0,0,0,7,0,0|Disp}}
7
To select a specific 特质trait
{{属性Traits|0,0,0,7,0,0|Select|力量Strength}}
{{属性Traits|0,0,0,7,0,0|Select|智力Intellect}}
0 1
属性Attributes
武器Weapon:
|RawAttr=0,0,0,0,0,0,0,0,0,0,0 野兽杀手Beast Slayer, 神圣Holy, 兽人杀手Orc Slayer, 麻痹Paralysis, 白银Silver(nl), 减速Slow, 眩晕Stun, 凶狠Vicious, 电磁脉冲EMP, 驱逐Banishing, 奥术Arcane
{{属性Attributes|0,0,0,0,0,0,0,10,0,0,0|WDisp}}
凶狠Vicious 10
护甲Armor:
|RawAttr=0,0,0,0,0,0,0 侦测Detection, 打探消息Gossip, 稳定Stability(nl), 眩晕免疫Stun Immunity(nl), 机关术Tinkering, 智慧Wisdom, 盾牌Shield(nl)
{{属性Attributes|0,0,0,0,0,9,0|ADisp}}
智慧Wisdom 9
nl = 否no 等级level
伤害Damage
Returns linked icons and 伤害damage 数值values from the format
|RawDmg=0,0,0,0,0,0,0,0,0,0,0,0 (0)Min, (1)max, (2)mainele, (3)ele dam, (4)ele, (5)速度speed, (6)暴击Crit, (7)暴击Crit Mult 1.5 default, (8) OnHit, (9) OnHit chance, (10) OnHit lvl
|RawDmg=10,20,0,8,5,20,13,0,0,0,0,0
10-20 +
8
Also since most 伤害damage 是is in this format 你you can bypass manually putting in 全部all the named fields required for 秒伤DPS by just sending 秒伤DPS as the second argument
{{伤害Damage|10,20,0,8,5,20,13,0,0,0,0,0|秒伤DPS}}>
48.7
秒伤DPS
Returns a 秒伤DPS 价值value based on inputs
{{秒伤DPS|Min=|Max=|速度Speed=|暴击Crit=
|Elem_Dam=|暴击Crit_Mult=}}
|Min=10|Max=20|速度Speed=20|暴击Crit=13 |Elem_Dam=8|暴击Crit_Mult=
48.7
XPcalc
Calculates 经验XP based on 等级level and whether it's labeled as a 首领boss or miniboss(optional)
{{XPcalc|等级Level|首领boss/miniboss}}
Level 10 - {{XPcalc|10}}
85
Level 10 首领Boss - {{XPcalc|10|首领boss}}
85
物品栏Inventory
This 是is used for the display of a 商人merchant's 物品items.
On the NPCNPCs page will be:
|InvI=回城卷轴Scroll of Recall |InvA=板甲护腿Platemail Leggings;圣洁头盔Holy Helm |InvW=噬魂者Soul Drinker |Markup=1
And gets used with
{{物品栏Inventory|{{{InvI}}}|{{{InvA}}}|{{{InvW}}}|{{{Markup}}}}}
| {{{2}}} | ||
|---|---|---|
| 名字Name | 花费Cost | 描述Description |
| 回城卷轴Scroll of Recall | 280 | 召回Recall 将你和你的队伍传送到附近城镇。Teleports you and your party to a nearby town. |
| 板甲护腿Platemail Leggings | 2000 | +3 AR +13 生命值HP |
| 圣洁头盔Holy Helm | +2 AR +8 生命值HP +8 MP |
|
| 噬魂者Soul Drinker | 18000 | 2-Handed 伤害DMG: Spd: 9 暴击Crit: 5% 野兽杀手Beast Slayer 2 |
你You can also:
{{物品栏Inventory|{{{InvI}}}|{{{InvA}}}|{{{InvW}}}|{{{Markup}}}|Links}}
回城卷轴Scroll of Recall; 板甲护腿Platemail Leggings; 圣洁头盔Holy Helm; 噬魂者Soul Drinker
The Lists
These act as a database that most of the 其他other pages to pull from. 如果需要更改表格中物品的顺序或添加物品,只需在这些列表中进行即可。If you need to change the order of an item in a table, or add an item it's done within these lists.
The Subs
This 是is where the layout of most pages 是is set. 这也是你在搜索特定内容时创建单独调用的地方。Also where you create the individual calls when searching for something specific.
Miscellaneous Functions
Columns
Sets up columns, 1st input 是is number of columns
{{Columns|2|
* list of
* 物品items}}
- list of
- 物品items
Button
Makes buttons like on the home page
{{Button|[[维基编辑Wiki Editing]]}}
ImgLnk
Used to attach images to links
{{ImgLnk|毒蛇帮The Snake Gang|Colo=1}}
{{ImgLnk|毒蛇帮The Snake Gang}}
{{ImgLnk|毒蛇帮The Snake Gang|icon=0}}
{{ImgLnk|毒蛇帮The Snake Gang|icon=珍稀药材Exotic Substances.png}}
毒蛇帮The Snake Gang
毒蛇帮The Snake Gang 毒蛇帮The Snake Gang
毒蛇帮The Snake Gang
TextC
Make a 普通(0%)normal list out of a ; delimited list
{{TextC|a;b;c;d|SList}}
- a
- b
- c
- d
{{TextC|a+b+c+d|SList|+}}
- a
- b
- c
- d
Quote
Used to make 全部all quotes uniform
{{Quote|in-游戏game|text quoted}}
“text quoted”― in-游戏game
Miscellaneous Layout Templates
Build
For creating character 构筑builds
公会Guild
For the layout of 公会guild pages
Infobox/Infobox2
The side bar on most Pages
Kingdom
Template for the different 王国kingdoms
XPperlvl
Base 经验XP 魅力per 等级Level, used by xpcalc