Wiki Editing: Difference between revisions

From Exiled Kingdoms Wiki
mNo edit summary
mNo edit summary
Line 28: Line 28:
The Sel is what's used to customize the results even more but isn't always necessary.
The Sel is what's used to customize the results even more but isn't always necessary.


== Tables ==
== [[Template:Tables|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.
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.


Line 55: Line 55:
  <nowiki>{{Resistances|{{{RawResist}}}|Disp}}</nowiki>
  <nowiki>{{Resistances|{{{RawResist}}}|Disp}}</nowiki>


===Resistances===
===[[Template:Resistances|Resistances]]===
Returns linked icons and resistance values from the format  
Returns linked icons and resistance values from the format  
  |RawResist=0,0,0,0,0,0
  |RawResist=0,0,0,0,0,0
Line 63: Line 63:
  {{Resistances|20,0,0,0,0,20|Disp}}
  {{Resistances|20,0,0,0,0,20|Disp}}


===Traits===
===[[Template:Traits|Traits]]===


  |RawTrait=0,0,0,0,0,0  
  |RawTrait=0,0,0,0,0,0  
Line 71: Line 71:
  {{Traits|0,0,0,7,0,0|Disp}}
  {{Traits|0,0,0,7,0,0|Disp}}


===Attributes===
===[[Template:Attributes|Attributes]]===


Weapon:
Weapon:
Line 90: Line 90:
nl = no level
nl = no level


===Damage===
===[[Template:Damage|Damage]]===
Returns linked icons and damage values from the format  
Returns linked icons and damage values from the format  
  |RawDmg=0,0,0,0,0,0,0,0,0,0,0,0
  |RawDmg=0,0,0,0,0,0,0,0,0,0,0,0
Line 104: Line 104:
  {{Damage|10,20,0,8,5,20,13,0,0,0,0,0|DPS}}
  {{Damage|10,20,0,8,5,20,13,0,0,0,0,0|DPS}}


===DPS===
===[[Template:DPS|DPS]]===
Returns a DPS value based on inputs
Returns a DPS value based on inputs
  <nowiki>{{DPS|Min=|Max=|Speed=|Crit=
  <nowiki>{{DPS|Min=|Max=|Speed=|Crit=
Line 113: Line 113:
  {{DPS|Min=10|Max=20|Speed=20|Crit=13|Elem_Dam=8|Crit_Mult=}}
  {{DPS|Min=10|Max=20|Speed=20|Crit=13|Elem_Dam=8|Crit_Mult=}}


===XPcalc===
===[[Template:XPcalc|XPcalc]]===
Calculates XP based on level and whether it's labeled as a boss or miniboss(optional)
Calculates XP based on level and whether it's labeled as a boss or miniboss(optional)
  <nowiki>{{XPcalc|Level|boss/miniboss}}</nowiki>
  <nowiki>{{XPcalc|Level|boss/miniboss}}</nowiki>
Line 155: Line 155:
== Miscellaneous Functions ==
== Miscellaneous Functions ==


===Columns===
===[[Template:Columns|Columns]]===
Sets up columns, 1st input is number of columns
Sets up columns, 1st input is number of columns
  <nowiki>{{Columns|2|
  <nowiki>{{Columns|2|
Line 165: Line 165:
* items}}
* items}}


===Button===
===[[Template:Button|Button]]===
Makes buttons like on the home page
Makes buttons like on the home page
:
:
Line 171: Line 171:
  {{Button|[[Wiki Editing]]}}
  {{Button|[[Wiki Editing]]}}


===ImgLnk===
===[[Template:ImgLnk|ImgLnk]]===
Used to attach images to links
Used to attach images to links
:
:
Line 183: Line 183:
  {{ImgLnk|The Snake Gang|icon=0}}
  {{ImgLnk|The Snake Gang|icon=0}}


===TextC===
===[[Template:TextC|TextC]]===
Make a normal list out of a ; delimited list
Make a normal list out of a ; delimited list
:
:
Line 192: Line 192:
  {{TextC|a+b+c+d|SList|+}}
  {{TextC|a+b+c+d|SList|+}}


===Quote===
===[[Template:Quote|Quote]]===
Used to make all quotes uniform
Used to make all quotes uniform
:
:
Line 198: Line 198:
:
:
  {{Quote|in-game|text quoted}}
  {{Quote|in-game|text quoted}}
== Miscellaneous Layout Templates ==
===[[Template:Build|Build]]===
For creating character builds
===[[Template:Guild|Guild]]===
For the layout of guild pages
===[[Template:Infobox|Infobox]]/[[Template:Infobox2|Infobox2]]===
The side bar on most Pages
===[[Template:Kingdom|Kingdom]]===
Template for the different kingdoms
===[[Template:XPperlvl|XPperlvl]]===
Base XP per Level, used by xpcalc

Revision as of 07:59, 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||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}}

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.


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

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