Yo!
This guide will cover how to properly choose/fill out a template in our wiki!
There is a template for EVERY type of page in this wiki, however if one is outdated or one we overlooked and do not have, then please tell us!
Template Basics
Below 'Title of the Page', there is an 'Initial Content' drop-down box that lists all of the templates.
Scroll through the list and choose the desired template.
If you are unsure of which template to choose, go to User Tools and you can see the list of templates there.
You can also copy the template code from the template page itself. Go to the bottom of the page where "Edit" is, and click "+ Options" then select "Page Source" and copy that into the desired page for filling out.
Do NOT edit any templates.
Do NOT edit the code of any template.
Do NOT copy a template source code by editing the page and copying the code that way.
Filling Templates in
A template will originally look something like this:
[[include code:skillicon
|imageurl=
|name=
|type=
|(Type means if the skill is Active or Passive)
|spcost=
|price=
|(Layout for money: 1g 2s 3c)
]]
What does any of this mean?
It may look confusing at first, but it really is not.
[[include code:skillicon
That is a sort of "link" to the coding of the actual template, if you alter this, the template will break entirely so do not change it at all. Also, at the end of every template there is two brackets ( ]] ) do NOT delete these, as the template will break from that as well.
|(Type means if the skill is Active or Passive)
|(Layout for money: 1g 2s 3c)
Those two parts are just notes/labels put there as a guide. They're hidden.
You do not have to remove these as they will not show up in the final result and will have no effect on the template.
|imageurl=
|name=
|type=
|spcost=
|price=
THAT is what you edit, and fill in inside of a template.
Any part that is in this same format: "|term= " you fill in.
Example:
[[include code:skillicon
|imageurl=http://i201.photobucket.com/albums/aa62/tangerine-lolliepop/DNWIKI/Archer/1.png
|name=Twin Shot
|type=Active
|(Type means if the skill is Active or Passive)
|spcost= 10
|price= 10g, 22s, 41c
|(Layout for money: 1g 2s 3c)
]]
(That isn't the actual correct Price/Sp cost for Twin Shot)
When you preview it, the template would look something like this:
You can experiment with the template on your User Page.
Don't have a User Page? Go here: Creating Your User Page.
More Template Examples
That was one of the simplest templates we have, let me show you a longer, more detailed one.
That is the Class Page Template and can be seen in action Here
See how they're all pretty much the same thing? Let me copy and paste Archer's source code, which is essentially this same code, but filled out properly.
See? Easy!
Template Bug:
Sometimes if you try to link to other pages with brackets, it will sadly break the template code.
What I mean by brackets:
[[[Link]]]
It is very easy to fix, you just need to have ANY character or symbol after the last bracket. For example:
[[[Link]]].
This would work because it has a period after it. More text or a colon would do as well. If the bracket link is in the middle of a sentence, this bug will not occur.
End
Well that's all for now, if you need me to elaborate or didn't understand a certain part, please ask in this thread.
And if you have any template suggestions/requests, go here:
http://dnest.wikidot.com/forum/t-310654/template-requests-suggestions
Good luck!
★