How to use templates

From Medivia Online Wiki

How to use templates


Thanks to @hunz, who wrote templates source code, our wiki do looks prettier and adding informations about monsters and items is now easier.
But not everyone knows how to edit pages using templates. This is why I made this guide. It is really easy, but it will take a lot of effort to edit all the item/monster pages.


Currently we do have two templates on our wiki:

To use them you simply copy and paste the code and edit it to match the info about specific item/monster.
Here are the source codes:

TEM SOURCE CODE
{{Item|
name=|
image=[[File:filename.png]]|
category=|
atk=|
def=|
arm=|
loot_value=|
weight=|
hand=|
dropped_by=[[MONSTER]]|
description=|
attributes=|
note=|
buy_from_CITY=[[NPC NAME]] (PRICE gp)|
sell_to_CITY=[[NPC NAME]] (PRICE gp)|
}}
Example (Skull Staff)
{{Item|
category=Clubs|
name=Skull Staff|
image=[[File:Skull staff.png]]|
atk=36|
def=12|
hands=1|
weight=17.0|
description=The staff longs for death.|
loot_value=6,000 - 7,500 gp|
dropped_by=[[Necromancer]], [[Warlock]], [[Dipthrah]], [[Ogre Warrior]], [[Necromantica]]|
sell_to_yehsha=[[Alesar]] (6000 gp, only if friendly with green Djinns)|
note=Upgrading from a [[Dragon Hammer]] to a Skull Staff will enable you to carry almost two additional backpacks full of runes. It's part of the [[Mid Level Set (Any Vocation)]]. Can be obtained in [[Medusa Shield Quest]].
}}

Notice that I've deleted some part of the code that I didn't need (in this case arm=|, attributes=|) because Skull Staff don't have armor or any other attribute. Also notice that all the links are in square brackets ( [[|]] ).


MONSTER SOURCE CODE


{{Monster|
name=|
image=[[File:monsterfile.png]]|
hp=|
exp=|
summon=|
convince=|
abilities=|
pushable=y/n|
push_objects=y/n|
walks_around=|
immune_to=|
neutral_to=|
task=|
est_max_damage=|
sounds=|
note=|
strategy=|
strategy_warriors=|
strategy_mages=|
strategy_scouts=|
skinnable=|
location=|
loot=|
}}

It's the same as editing item page. Just copy and paste -> add info. That's all. How it should look (for example: Valkyrie Cavalry)

{{Monster|
name=Valkyrie Cavalry|
image=[[File:Valkyrie_Cavalry.gif]]|
hp=270|
exp=216|
summon=750|
convince=--|
abilities=Melee (0-70), Spears (0-50), Haste|
pushable=n|
push_objects=y|
walks_around=Fire, Energy, Poison|
immune_to=None.|
neutral_to=Physical, Energy, Poison, Life Drain|
notes=Valkyries Cavalry run in low health.|
sounds= "Another head for me!"; "Head off!"; "Your head will be mine!"; "Stand still!"; "One more head for me!"; "All males will be our slaves"; "Grrrr"; "ATTACK!"|
strategy=It is better to attack them from distance because their Spears are weaker than their Melee fighting. Usually found around with Amazons and/or Witches.|
location=[[Amazon Camp (Carlin)]]|
loot=0-24 [[Gold Coin]], Spear, 0-2 [[Headhunter Spear]], [[Meat]], [[Apple]], [[Skull]], [[Dagger]], [[Chain Helmet]], [[Chain Armor]], [[Protection Amulet]], [[Small Diamond]] (rare), [[Double Axe]] (rare), [[Plate Armor]] (rare)|
}}

When editing this monster I deleted skinnable=|, strategy-warriors=|,strategy_mages=|, strategy_scouts=|, task=|, etc. from source code because I didn't need it. 

And that's all. Isn't it easy? I hope this guide will serve you well.

 

|}

|}