Difference between revisions of "How to use templates"
Line 239: | Line 239: | ||
{| | {| | ||
|- | |- | ||
| valign="top" width="30%" | | | valign="top" width="30%" | <pre>{{Rune| | ||
name=| | |||
image=[[File:Rune name.png]]| | |||
incantation=SPELL WORDS| | |||
cost=SPELL COST IN GP| | |||
<pre>{{Rune | ml_spell| | ||
name= | ml_use| | ||
image=[[File:Rune name.png]] | charges=| | ||
incantation=SPELL WORDS | mana=MANA REQ| | ||
cost=SPELL COST IN GP | premium=y/n| | ||
ml_spell | effect=| | ||
ml_use | note=| | ||
charges= | rune=SINGLE RUNE COST| | ||
mana=MANA REQ | BP=BP COST| | ||
premium=y/n | Cleric_Ab'dendriel=[[CLERIC TEACHER AB]]| | ||
effect= | |||
note= | |||
rune=SINGLE RUNE COST | |||
BP=BP COST | |||
Cleric_Ab'dendriel=[[CLERIC TEACHER AB]] | |||
. | . | ||
. | . | ||
. | . | ||
Cleric_Yehsha=[[CLERIC TEACHER YEHSHA]] | Cleric_Yehsha=[[CLERIC TEACHER YEHSHA]]| | ||
Sorcerer_Ab'dendriel=[[SORCERER TEACHER AB]] | Sorcerer_Ab'dendriel=[[SORCERER TEACHER AB]]| | ||
. | . | ||
. | . | ||
. | . | ||
Sorcerer_Yehsha=[[SORCERER TEACHER YEHSHA]] | Sorcerer_Yehsha=[[SORCERER TEACHER YEHSHA]]| | ||
Scout_Ab'dendriel=[[SCOUT TEACHER AB]] | Scout_Ab'dendriel=[[SCOUT TEACHER AB]]| | ||
. | . | ||
. | . | ||
. | . | ||
Scout_Yehsha=[[SCOUT TEACHER YEHSHA]] | Scout_Yehsha=[[SCOUT TEACHER YEHSHA]]| | ||
}} | }} | ||
</pre> | </pre> | ||
{| class="wikitable" | |||
|- | |||
! '''RUNE SOURCE CODE''' | |||
|- | |||
| valign="top" width="70%" | | | valign="top" width="70%" | | ||
{| class="wikitable" | {| class="wikitable" | ||
|- | |- | ||
! '''Example ([[Great Fireball]])''' | ! '''Example ([[Great_Fireball|Great Fireball]])''' | ||
|- | |- | ||
|<pre> | | <pre> | ||
</pre> | |||
|} | |||
|} | |||
---- | ---- | ||
| |||
And that's all. I hope this guide will serve you well. | And that's all. I hope this guide will serve you well. | ||
---- | ---- | ||
|} | |||
|} | |||
|} | |||
[[Category:Pages with broken file links]] | [[Category:Pages with broken file links]] |
Revision as of 12:20, 21 September 2018
How to use templates
Thanks to @hunz, who wrote templates source code, our wiki 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 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 source code of a page you want to edit. To open source code click Source button in Editor.
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 ( [[|]] ).
Most of the item/monster files are named Ham.png/Skull staff.png/Ghoul.png/Dragon lord.png etc.
|
|
When editing this monster I deleted skinnable=|, strategy-warriors=|,strategy_mages=|, strategy_scouts=|, task=|, etc. from source code because I didn't need it.
|
|
{{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| Cleric_Ab'dendriel=[[CLERIC TEACHER AB]]| . . . Cleric_Yehsha=[[CLERIC TEACHER YEHSHA]]| Sorcerer_Ab'dendriel=[[SORCERER TEACHER AB]]| . . . Sorcerer_Yehsha=[[SORCERER TEACHER YEHSHA]]| Scout_Ab'dendriel=[[SCOUT TEACHER AB]]| . . . Scout_Yehsha=[[SCOUT TEACHER YEHSHA]]| }}
And that's all. I hope this guide will serve you well. |
|}
|}