Difference between revisions of "How to use templates"
Line 12: | Line 12: | ||
*[[Template:Item]] | *[[Template:Item]] | ||
*[[Template:Monster]] | *[[Template:Monster]] | ||
*[[Template: | *[[Template:Npc]] | ||
To use them you simply copy and paste the code and edit it to match the info about specific item/monster.<br/> Here are the source codes: | To use them you simply copy and paste the code and edit it to match the info about specific item/monster.<br/> Here are the source codes: | ||
Line 21: | Line 21: | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! ''' | ! '''ITEM SOURCE CODE''' | ||
|- | |- | ||
| <pre>{{Item| | | <pre>{{Item| | ||
Line 74: | Line 74: | ||
{| | {| | ||
| width="50% | |- | ||
| valign="top" width="50%" | | |||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
|<pre>{{Monster| | ! '''MONSTER SOURCE CODE''' | ||
|- | |||
| <pre>{{Monster| | |||
name=| | name=| | ||
image=[[File:monsterfile.png]]| | image=[[File:monsterfile.png]]| | ||
Line 104: | Line 105: | ||
loot=| | loot=| | ||
}}</pre> | }}</pre> | ||
|} | |} | ||
| width="50% | | valign="top" width="50%" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
|<pre>{{Monster| | ! '''Example ([[Valkyrie_Cavalry|Valkyrie Cavalry]])''' | ||
|- | |||
| <pre>{{Monster| | |||
name=Valkyrie Cavalry| | name=Valkyrie Cavalry| | ||
image=[[File:Valkyrie_Cavalry.gif]]| | image=[[File:Valkyrie_Cavalry.gif]]| | ||
Line 131: | Line 133: | ||
}} | }} | ||
</pre> | </pre> | ||
|} | |} | ||
|} | |} | ||
When editing this monster I deleted '''skinnable=|, strategy-warriors=|,strategy_mages=|, strategy_scouts=|, task=|''', etc. from source code because I didn't need it. | When editing this monster I deleted '''skinnable=|, strategy-warriors=|,strategy_mages=|, strategy_scouts=|, task=|''', etc. from source code because I didn't need it. | ||
---- | |||
{| | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
! NPC SOURCE CODE | |||
|- | |||
| {{NPC| | |||
name=| | |||
image=[[File:npcfile.png]]| | |||
location=| | |||
job=| | |||
note=| | |||
sells=| | |||
buys=| | |||
|} | |||
| width="50%" valign="top" | | |||
{| class="wikitable" | |||
! Example | |||
|- | |||
| NOT FINISHED YET. | |||
|} | |} | ||
|} | |} | ||
|
Revision as of 23:25, 6 June 2018
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:
|
|
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 ( [[|]] ).
|
|
When editing this monster I deleted skinnable=|, strategy-warriors=|,strategy_mages=|, strategy_scouts=|, task=|, etc. from source code because I didn't need it.
|
|