Wiki Editing: Difference between revisions

From Exiled Kingdoms Wiki
mNo edit summary
mNo edit summary
Line 124: Line 124:


== The Lists ==
== The Lists ==
These act as a database that most of the other pages pull from.
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.
If you need to change the order of an item in a table, or add an item it's done within these lists.


Line 139: Line 139:


== The Subs ==
== The Subs ==
This is where the layout of most pages is set.  Also where you create the individual calls when searching for something specific.
{{Columns|2|
{{Columns|2|
* [[Template:AreaSub|AreaSub]]
* [[Template:AreaSub|AreaSub]]

Revision as of 03:49, 24 May 2017

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, NPC, mob, quest or skill had its own page. The title of the page should be it's 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 semicolon before the name. I.E.

{{: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.

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. 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||Name|Group}}
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}}

Fire.png 20 Holy.png 20

Traits

|RawTrait=0,0,0,0,0,0 
Strength, Endurance, Agility, Intellect, Awareness, Personality

{{Traits|0,0,0,7,0,0|Disp}}

Intellect.png 7 

Attributes

Weapon:

|RawAttr=0,0,0,0,0,0,0,0
Beast Slayer, Holy, Orc Slayer, Paralysis, Silver(nl), Slow, Stun, Vicious

{{Attributes|0,0,0,0,0,0,0,10|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

Sword.png 10-20 +Poison.png 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

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.