Difference between revisions of "How to use templates"
m (Text replacement - "Dipthrah" to " ") |
m (Text replacement - "Life Drain" to "Lifedrain") |
||
(15 intermediate revisions by 4 users not shown) | |||
Line 21: | Line 21: | ||
*[[Template:Spell|Template:Spell]] | *[[Template:Spell|Template:Spell]] | ||
*[[Template:Quest|Template:Quest]] and [[Template:Spoiler|Template:Spoiler]] | *[[Template:Quest|Template:Quest]] and [[Template:Spoiler|Template:Spoiler]] | ||
*[[Template:Keys|Template:Keys]] | *[[Template:Keys|Template:Keys]] | ||
*[[Template:Transcripts]] | |||
---- | ---- | ||
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.<br/> [[File: | 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.<br/> [[File:]]<br/> Here are the source codes: | ||
---- | ---- | ||
Line 35: | Line 36: | ||
{| | {| | ||
|- | |- | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 61: | Line 62: | ||
|} | |} | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 98: | Line 99: | ||
{| | {| | ||
|- | |- | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 121: | Line 122: | ||
note=| | note=| | ||
strategy=| | strategy=| | ||
strategy_knights=| | |||
strategy_mages=| | strategy_mages=| | ||
strategy_archers=| | |||
skinnable=| | skinnable=| | ||
location=| | location=| | ||
Line 131: | Line 132: | ||
|} | |} | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! '''Example ([[ | ! '''Example ([[Mercenary_Cavalry|Mercenary Cavalry]])''' | ||
|- | |- | ||
| <pre>{{Monster| | | <pre>{{Monster| | ||
name= | name=Mercenary Cavalry| | ||
image=[[File: | image=[[File:Mercenary_Cavalry.gif]]| | ||
hp=270| | hp=270| | ||
exp=216| | exp=216| | ||
Line 148: | Line 149: | ||
walks_around=<span style="color:#c0392b;">Fire,</span> Energy, Poison| | walks_around=<span style="color:#c0392b;">Fire,</span> Energy, Poison| | ||
immune_to=None.| | immune_to=None.| | ||
neutral_to=Physical, Energy, Poison, | neutral_to=Physical, Energy, Poison, Lifedrain| | ||
notes= | 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!"| | 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 | 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=[[ | 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)| | 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)| | ||
}} | }} | ||
Line 163: | Line 164: | ||
---- | ---- | ||
When editing this monster I deleted '''skinnable=|, strategy- | When editing this monster I deleted '''skinnable=|, strategy-knights=|,strategy_mages=|, strategy_archers=|, task=|''', etc. from source code because I didn't need it. | ||
---- | ---- | ||
Line 173: | Line 174: | ||
{| | {| | ||
|- | |- | ||
| style="width: 370px" | | style="width: 370px" width="30%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 204: | Line 205: | ||
|} | |} | ||
| style="width: 923px" | | style="width: 923px" width="70%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 264: | Line 265: | ||
{| | {| | ||
|- | |- | ||
| | | width="30%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 326: | Line 327: | ||
| | ||
Legend: c- | Legend: c- Druid, ms-Mage, s-Archer, w-Warrior | ||
| | | width="70%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 370: | Line 371: | ||
{| | {| | ||
|- | |- | ||
| | | width="30%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 423: | Line 424: | ||
|} | |} | ||
| | | width="70%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 463: | Line 464: | ||
---- | ---- | ||
Legend: c- | Legend: c- Druid, ms-Mage, s-Archer, w-Warrior | ||
---- | ---- | ||
Line 469: | Line 470: | ||
| | ||
---- | |||
= Quest Source Code = | = Quest Source Code = | ||
Line 475: | Line 476: | ||
{| | {| | ||
|- | |- | ||
| | | width="12%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 494: | Line 495: | ||
|} | |} | ||
| | | width="18%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 514: | Line 515: | ||
|} | |} | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! '''Example ([[ | ! '''Example ([[The Executioner Outfit Quest|The Executioner Outfit Quest]])''' | ||
|- | |- | ||
| <pre>{{Quest| | | <pre>{{Quest| | ||
name=Executioner Outfit Quest| | name=The Executioner Outfit Quest| | ||
image=[[File:Executioner Full Female.png]]| | image=[[File:Executioner Full Female.png]]| | ||
known_as=| | known_as=| | ||
Line 534: | Line 535: | ||
|} | |} | ||
---- | |||
= Keys Source Code = | = Keys Source Code = | ||
Line 539: | Line 542: | ||
{| | {| | ||
|- | |- | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 557: | Line 560: | ||
If the key type is different, change copper=yes| to<br/> golden=yes|<br/> crystal=yes|<br/> wooden=yes|<br/> silver=yes|<br/> bone=yes| | If the key type is different, change copper=yes| to<br/> golden=yes|<br/> crystal=yes|<br/> wooden=yes|<br/> silver=yes|<br/> bone=yes| | ||
| | | width="50%" valign="top" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
Line 570: | Line 573: | ||
origin=Can be bought from [[Elathriel]] for 5000 gp.| | origin=Can be bought from [[Elathriel]] for 5000 gp.| | ||
note=[[Elathriel]] is nearby the Hellgate doors.}} | note=[[Elathriel]] is nearby the Hellgate doors.}} | ||
</pre> | |||
|} | |||
|} | |||
| |||
---- | |||
= Hunting Spots Source Code = | |||
{| | |||
|- | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
|- | |||
! '''HUNTING SPOTS SOURCE CODE''' | |||
|- | |||
| <pre>{{HuntingSpot| | |||
description=| | |||
strategy=| | |||
name=| | |||
image=| | |||
level=| | |||
location=| | |||
exp=| | |||
loot=| | |||
notes=| | |||
monsters=}} | |||
</pre> | |||
|} | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
|- | |||
! '''Example ([[Foreign_Lands_Chimeras|Foreign Lands Chimeras]])''' | |||
|- | |||
| <pre>{{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]]}} | |||
</pre> | |||
|} | |||
|} | |||
= Transcripts Source Code = | |||
{| | |||
|- | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
|- | |||
! '''TRANSCRIPTS SOURCE CODE''' | |||
|- | |||
| <pre> | |||
{{Transcripts| title= | text= | |||
}} | |||
</pre> | |||
|} | |||
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. | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
|- | |||
! '''Example ([[Sheriff Biljan]])''' | |||
|- | |||
| <pre>{{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> | |||
}} | |||
</pre> | </pre> | ||
Latest revision as of 22:51, 28 February 2022
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:
- Template:Item
- Template:Monster
- Template:Npc
- Template:Rune
- Template:RuneShop (if rune can be bought in Magic Shop, add rune=SingleRunePrice| BP=BPPrice|)
- Template:Spell
- Template:Quest and Template:Spoiler
- Template:Keys
- Template:Transcripts
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
|
|
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
|
|
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
|
|
Rune/RuneShop Source Code
Legend: c- Druid, ms-Mage, s-Archer, w-Warrior |
|
Spell Source Code
|
|
Legend: c- Druid, ms-Mage, s-Archer, w-Warrior
Quest Source Code
|
|
|
Keys Source Code
If the key type is different, change copper=yes| to |
|
Hunting Spots Source Code
|
|
Transcripts Source Code
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. |
|
And that's all. I hope this guide will serve you well.