Wiki Editing

From Exiled Kingdoms Wiki
Jump to: navigation, search

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

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||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

</table>

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

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}}

Intellect.png 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

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

Inventory

This is used for the display of a merchant's items.

On the NPCs 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    Shock.png 20  
Soul Drinker 18000 2-Handed   DMG: Sword.png 4-19 +Death.png 6  Spd: 9   Crit: 5% Beast Slayer 1

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]]}}

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.png The Snake Gang
The Snake Gang.png The Snake Gang
 The Snake Gang
Exotic Substances.png The Snake Gang

TextC

Make a 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