Wiki Editing: Difference between revisions

From Exiled Kingdoms Wiki
(Created page with "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 pa...")
 
 
(17 intermediate revisions by 4 users not shown)
Line 3: Line 3:
== Individual Pages ==
== 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)
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 semicolon before the name. I.E.
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.:
:
:
  <nowiki>{{:NameofItem}}</nowiki>
  <nowiki>{{:NameofItem}}</nowiki>
Line 27: Line 27:
The Step argument is what determines the output within WpnSub (or any sub)
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.
The Sel is what's used to customize the results even more but isn't always necessary.
== [[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.
<nowiki>{{Tables|ArmTbl}}</nowiki>
Will create
{{Tables|ArmTbl}}
</table>
And to populate you use
<nowiki>{{Tables|ArmTblInput||Wiki Editing|Group|Slot}}</nowiki>
{{Tables|ArmTbl}}
{{Tables|ArmTblInput||Wiki Editing|Group|Slot}}
</table>
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
<nowiki>{{Resistances|{{{RawResist}}}|Disp}}</nowiki>
===[[Template:Resistances|Resistances]]===
Returns linked icons and resistance values from the format
|RawResist=0,0,0,0,0,0
Fire, Cold, Shock, Death, Toxic, Spirit
<nowiki>{{Resistances|20,0,0,0,0,20|Disp}}</nowiki>
{{Resistances|20,0,0,0,0,20|Disp}}
The Vuln option returns a 1 if the resistance matches the input:
<nowiki>{{Resistances|20,0,0,0,0,20|Vuln|Fire}}
{{Resistances|20,0,0,0,0,20|Vuln|Cold}}</nowiki>
{{Resistances|20,0,0,0,0,20|Vuln|Fire}}
{{Resistances|20,0,0,0,0,20|Vuln|Cold}}
===[[Template:Traits|Traits]]===
|RawTrait=0,0,0,0,0,0
Strength, Endurance, Agility, Intellect, Awareness, Personality
<nowiki>{{Traits|0,0,0,7,0,0|Disp}}</nowiki>
{{Traits|0,0,0,7,0,0|Disp}}
To select a specific trait
<nowiki>{{Traits|0,0,0,7,0,0|Select|Strength}}
{{Traits|0,0,0,7,0,0|Select|Intellect}}</nowiki>
{{Traits|0,0,0,7,0,0|Select|Strength}}
{{Traits|0,0,0,7,0,0|Select|Intellect}}
===[[Template:Attributes|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
<nowiki>{{Attributes|0,0,0,0,0,0,0,10,0,0,0|WDisp}}</nowiki>
{{Attributes|0,0,0,0,0,0,0,10,0,0,0|WDisp}}
Armor:
|RawAttr=0,0,0,0,0,0,0
Detection, Gossip, Stability(nl), Stun Immunity(nl), Tinkering, Wisdom, Shield(nl)
<nowiki>{{Attributes|0,0,0,0,0,9,0|ADisp}}</nowiki>
{{Attributes|0,0,0,0,0,9,0|ADisp}}
nl = no level
===[[Template:Damage|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
{{Damage|10,20,0,8,5,20,13,0,0,0,0,0|FullDisp}}
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
<nowiki>{{Damage|10,20,0,8,5,20,13,0,0,0,0,0|DPS}}>
</nowiki>
{{Damage|10,20,0,8,5,20,13,0,0,0,0,0|DPS}}
===[[Template:DPS|DPS]]===
Returns a DPS value based on inputs
<nowiki>{{DPS|Min=|Max=|Speed=|Crit=
|Elem_Dam=|Crit_Mult=}}</nowiki>
|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=}}
===[[Template:XPcalc|XPcalc]]===
Calculates XP based on level and whether it's labeled as a boss or miniboss(optional)
<nowiki>{{XPcalc|Level|boss/miniboss}}</nowiki>
Level 10 - <nowiki>{{XPcalc|10}}</nowiki>
{{XPcalc|10}}
Level 10 Boss - <nowiki>{{XPcalc|10|boss}}</nowiki>
{{XPcalc|10|boss}}
===[[Template:Inventory|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
<nowiki>{{Inventory|{{{InvI}}}|{{{InvA}}}|{{{InvW}}}|{{{Markup}}}}}</nowiki>
{{Tables|AreaMerchant}}
{{Inventory|Scroll of Recall|Platemail Leggings;Holy Helm|Soul Drinker|1}}
</table>
You can also:
<nowiki>{{Inventory|{{{InvI}}}|{{{InvA}}}|{{{InvW}}}|{{{Markup}}}|Links}}</nowiki>
{{Inventory|Scroll of Recall|Platemail Leggings;Holy Helm|Soul Drinker|1|Links}}


== 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 44: Line 174:


== 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]]
* [[Template:ArmSub|ArmSub]]
* [[Template:ArmSub|ArmSub]]
* [[Template:ClassSub|ClassSub]]
* [[Template:ItmSub|ItmSub]]
* [[Template:ItmSub|ItmSub]]
* [[Template:MobSub|MobSub]]
* [[Template:MobSub|MobSub]]
Line 54: Line 187:
* [[Template:WpnSub|WpnSub]]
* [[Template:WpnSub|WpnSub]]
}}
}}
== Miscellaneous Functions ==
===[[Template:Columns|Columns]]===
Sets up columns, 1st input is number of columns
<nowiki>{{Columns|2|
* list of
* items}}</nowiki>
:
{{Columns|2|
* list of
* items}}
===[[Template:Button|Button]]===
Makes buttons like on the home page
:
<nowiki>{{Button|[[Wiki Editing]]}}</nowiki>
{{Button|[[Wiki Editing]]}}
===[[Template:ImgLnk|ImgLnk]]===
Used to attach images to links
:
<nowiki>{{ImgLnk|The Snake Gang|Colo=1}}</nowiki>
:
<nowiki>{{ImgLnk|The Snake Gang}}</nowiki>
:
<nowiki>{{ImgLnk|The Snake Gang|icon=0}}</nowiki>
:
<nowiki>{{ImgLnk|The Snake Gang|icon=Exotic Substances.png}}</nowiki>
{{ImgLnk|The Snake Gang|Colo=1}}
{{ImgLnk|The Snake Gang}}
{{ImgLnk|The Snake Gang|icon=0}}
{{ImgLnk|The Snake Gang|icon=Exotic Substances.png}}
===[[Template:TextC|TextC]]===
Make a normal list out of a ; delimited list
:
<nowiki>{{TextC|a;b;c;d|SList}}</nowiki>
{{TextC|a;b;c;d|SList}}
:
<nowiki>{{TextC|a+b+c+d|SList|+}}</nowiki>
{{TextC|a+b+c+d|SList|+}}
===[[Template:Quote|Quote]]===
Used to make all quotes uniform
:
<nowiki>{{Quote|in-game|text quoted}}</nowiki>
:
{{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

Latest revision as of 22:27, 19 January 2018

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

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

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