How to use templates

From Medivia Online Wiki
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

How to use templates

 

 


Thanks to @hunz, who wrote templates source code, our wiki looks prettier and adding information 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 these 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. Paste it into the source code of a page you want to edit. To open source code click Source button in Editor.
[[File:]]
Here are the source codes:


 

Item Source Code 

ITEM SOURCE CODE
{{Item|
name=|
image=[[File:filename.png]]|
category=|
atk=|
def=|
arm=|
loot_value=|
weight=|
hands=|
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]], [[ ]], [[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 ( [[|]] ).
Most of the item/monster files are named Ham.png/Skull staff.png/Ghoul.png/Dragon lord.png etc.


 Monster Source Code

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_knights=|
strategy_mages=|
strategy_archers=|
skinnable=|
location=|
loot=|
}}
Example (Mercenary Cavalry)
{{Monster|
name=Mercenary Cavalry|
image=[[File:Mercenary_Cavalry.gif]]|
hp=270|
exp=216|
summon=750|
convince=--|
abilities=Melee (0-70), Spears (0-50), Haste|
pushable=n|
push_objects=y|
walks_around=<span style="color:#c0392b;">Fire,</span> Energy, Poison|
immune_to=None.|
neutral_to=Physical, Energy, Poison, Lifedrain|
notes=Mercenarys 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 Rogues and/or Witches.|
location=[[Rogue 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-knights=|,strategy_mages=|, strategy_archers=|, task=|, etc. from source code because I didn't need it. 


 

 NPC Source Code

NPC SOURCE CODE
{{Npc| 
name=|
image=[[File:npc name.png]]|
location=|
job=| 
note=|
}}
Sells
{| class="wikitable sortable"
|-
! Item
! Price
|-
| ITEM NAME
| ITEM PRICE
|-
| ITEM NAME
| ITEM PRICE
|-
| ...
| ...
|}
Example (Asha)
{{Npc|
name=Asha|
location=[[Yehsha|Yehsha]], north-eastern part 
([http://mediviastats.info/mapper.php?y=2015&x=1363&z=6&zoom=6 here])| 
job=Banker, Jewelry Shopkeeper&#|
note=Asha runs a bank in Yehsha. She exchanges gold coins,
platinum coins and crystal coins. Sells and buys gems and jewelry.}}

Sells
{| class="wikitable sortable"
|-
! '''Item'''
! '''Price (gp)'''
|-
| [[Wedding_Ring]]
| 990
|-
| [[Golden_Amulet]]
| 6600
|-
|...
|}
Buys
{| class="wikitable sortable"
|-
! '''Item'''
! '''Price (gp)'''
|-
| [[White_Pearl]]
| 160
|-
| [[Black_Pearl]]
| 280
|-
|...
|}

[[Yehsha_NPCs|Yehsha NPCs]]

   

 

 

 

 Rune/RuneShop Source Code

RUNE SOURCE CODE
{{Rune|
name=|
image=[[File:Rune name.png]]|
incantation=SPELL WORDS|
cost=SPELL COST IN GP|
ml_spell|
ml_use|
charges=|
mana=MANA REQ|
premium=y/n|
effect=|
note=|
rune=SINGLE RUNE COST|
BP=BP COST|
c_ab=|
c_abukir=|
c_carlin=|
c_garrogat=|
c_kazordoon=|
c_osaris=|
c_thais=|
c_venore=|
c_yehsha=|
ms_ab=|
ms_abukir=|
ms_carlin=|
ms_garrogat=|
ms_kazordoon=|
ms_osaris=|
ms_thais=|
ms_venore=|
ms_yehsha=|
s_ab=|
s_abukir=|
s_carlin=|
s_garrogat=|
s_kazordoon=|
s_osaris=|
s_thais=|
s_venore|
s_yehsha=|
w_ab=|
w_abukir=|
w_carlin=|
w_garrogat=|
w_kazordoon=|
w_osaris=|
w_thais=|
w_venore=|
w_yehsha=|
}}

 

Legend: c- Druid, ms-Mage, s-Archer, w-Warrior

Example (Great Fireball)
{{RuneShop|
name=Great Fireball|
image=[[File:Great fireball rune.png]]|
incantation=adori gran flam|
cost=1200|
ml_spell=9|
ml_use=4|
charges=2|
mana=110|
premium=y|
effect=Shoots a fire attack that damages all creatures (except those immune to fire), and players, within a large circular area centered around the square where the GFB is targeted. The damage area will be a total of 37 squares, as shown in the picture, unless some of the squares are obstructed. The player using the GFB rune is never affected by it.|
note=This rune is really useful to get rid of big groups of monsters when the character gets surrounded or when you need to clear a room. As the Magic Level raises, the rune will become more effective, to the point that sometimes, the FB rune will be enough, which allows to save the GFB to harder situations.|
rune=250|
BP=5000|
c_ab=Elathriel|
c_yehsha=Rahkem|
c_carlin=Padreia|
c_osaris=Bedhin|
c_thais=Marvik|
c_venore=Smiley|
ms_yehsha=Haffnal|
ms_carlin=Lea|
ms_osaris=Bedhin|
ms_kazordoon=Etzel|
ms_thais=Muriel|
ms_venore=Chatterbone
}}

 Spell Source Code

SPELL SOURCE CODE
{{Spell|
name=|
cost=|
premium=y/n|
ml=|
effect=|
note=|
c_ab=|
c_abukir=|
c_carlin=|
c_garrogat=|
c_kazordoon=|
c_osaris=|
c_thais=|
c_venore=|
c_yehsha=| 
ms_ab=|
ms_abukir=|
ms_carlin=|
ms_garrogat=|
ms_kazordoon=|
ms_osaris=|
ms_thais=|
ms_venore=|
ms_yehsha=| 
s_ab=|
s_abukir=|
s_carlin=|
s_garrogat=|
s_kazordoon=|
s_osaris=|
s_thais=|
s_venore|
s_yehsha=| 
w_ab=| 
w_abukir=| 
w_carlin=| 
w_garrogat=| 
w_kazordoon=| 
w_osaris=| 
w_thais=| 
w_venore=| 
w_yehsha=|
}}
Example (Light)
{{Spell|
name=Light|
incantation=utevo lux|
mana=20|
ml=0|
cost=100|
premium=n|
effect=Provides illumination in a 3 tile radius around the caster (area effect). Duration is 6 minutes and 10 seconds.|
note=This spell is recommended to be the first spell you buy.|
c_ab=Faluae|
s_ab=Faluae|
c_carlin=Padreia|
ms_carlin=Lea|
s_carlin=Legola|
w_carlin=Trisha|
ms_kazordoon=Etzel|
w_kazordoon=Duria|
c_thais=Marvik|
ms_thais=Muriel|
s_thais=Elane|
w_thais=Gregor|
c_venore=Smiley|
ms_venore=Chatterbone|
s_venore=Asrak|
w_venore=Asrak|
}}


Legend: c- Druid, ms-Mage, s-Archer, w-Warrior


 


Quest Source Code 

QUEST SOURCE CODE
{{Quest|
name=|
image=[[File:Image.png]]|
known_as=|
reward=|
location=|
level=|
monsters=|
legend=|
}}
QUEST SPOILER SOURCE CODE
{{Spoiler|
name=|
image=[[File:Image.png]]|
known_as=|
reward=|
location=|
level=|
monsters=|
legend=|
items=|
}}
Example (The Executioner Outfit Quest)
{{Quest|
name=The Executioner Outfit Quest|
image=[[File:Executioner Full Female.png]]|
known_as=|
reward=Executioner Outfit and Addons|
location=[[Yehsha]], [[Shakir]]|
level=0|
monsters=[[Jaffr]], [[Drake Lord]], [[Skeleton Archer]]|
legend=[[Pharaoh Anhamtap]] is looking for a new executioner of Yehsha. But first, you need to kill the previous one.|
}}

Keys Source Code 

KEYS SOURCE CODE
{{Keys| 
number=| 
copper=yes| 
value=| 
opens=| 
known_as=| 
origin=| 
note= }}

If the key type is different, change copper=yes| to
golden=yes|
crystal=yes|
wooden=yes|
silver=yes|
bone=yes|

Example (Key 3012)
{{Keys| 
number=3012| 
copper=yes| 
value=5000 gp| 
opens=Used for locking and unlocking the main doors to [[Hellgate]].| 
known_as=Hellgate Key| 
origin=Can be bought from [[Elathriel]] for 5000 gp.| 
note=[[Elathriel]] is nearby the Hellgate doors.}}

 


Hunting Spots Source Code 

HUNTING SPOTS SOURCE CODE
{{HuntingSpot| 
description=| 
strategy=| 
name=| 
image=| 
level=| 
location=| 
exp=| 
loot=| 
notes=| 
monsters=}}
Example (Foreign Lands Chimeras)
{{HuntingSpot| 
description=Best place to do the [[Chimera|Chimera Task]].| 
strategy=The are a few spots where you can lure the chimera, where it cant retarget to shooters. Avoid its wave.| 
name=Foreign Lands Chimeras| 
image=[[File:Chimera.gif]]| 
level=+200 as Knight, +150 as Shooter| 
location=[[Foreign Lands]]| 
exp=Good| 
loot=Very Good| 
notes=Between pic 1 and 2, you should levitate up 3 times. You will meet a lot of fire elementals on the way.| 
monsters=[[Chimera]], [[Fire Elemental]]}}

 Transcripts Source Code

TRANSCRIPTS SOURCE CODE
{{Transcripts| title= | text=
}}

Note: It's optional to use different styles such as font, size, color, etc. As you can see in the example, using a different font and color highlights the player keywords and it looks more pleasing to the eye.

Example (Sheriff Biljan)
{{Transcripts| title=NPC Transcripts | text=
<span style="font-size:smaller;">'''<span style="color:#00FFFF">18:30 Javs Reborn: hi</span>'''
18:30 Sheriff Biljan: Hiho!!
'''<span style="color:#00FFFF">18:30 Javs Reborn: job</span>'''
18:30 Sheriff Biljan: I am the sheriff here, locking up bandits and other outlaws.
'''<span style="color:#00FFFF">18:30 Javs Reborn: sell</span>'''
18:30 Sheriff Biljan: I am in the safety business.
'''<span style="color:#00FFFF">18:30 Javs Reborn: village</span>'''
18:30 Sheriff Biljan: The village is not as bad as some people might claim, but we certainly have our problems here.
'''<span style="color:#00FFFF">18:30 Javs Reborn: problems</span>'''
18:30 Sheriff Biljan: We will handle each problem with care.
'''<span style="color:#00FFFF">18:30 Javs Reborn: naal'amib</span>'''
18:30 Sheriff Biljan: One day he started screaming at the middle of the night and when I was about to lock him up he suddenly left the village...
18:30 Sheriff Biljan: I haven't seen him since then.
'''<span style="color:#00FFFF">18:30 Javs Reborn: bye</span>'''
18:30 Sheriff Biljan: Bye!</span>
}}

And that's all. I hope this guide will serve you well.