Help:Templates
From Encyclopedia Hiigara
| Basic rules |
| How to help? |
| How to make good article? |
| Naming policy |
| Image policy |
| Fanon policy |
| Templates |
| Navigation Templates |
| Utility Templates |
| Category Tree |
| Useful links |
Templates mostly appear as boxes with different background then default one (white) and do not contain directly content of article, but most often they have informations for editors, like if article require formatting or does not agree with fanon policy. In code of page they are marked by {{ and }} signs, where between them is or simple name of template, or various parameters sent to it.
Templates can be Static or Dynamic
- Static templates are those to which you can't add any dynamic content or change what they display. Yet: They are simplest to use. Best example of these are all Ships Templates.
- Dynamic templates are all to which you can add content or change their appearance. They can be very customizable like In-source template or Ship infobox, or can be very simple, where you can just add text with additional informations, like in Format template.
Most commonly used templates are infoboxes and Navigation Templates.
How to use templates?
Most templates have their usage instructions on their pages. You can visit page by going to Template:TemplateName page, and there read detailed instructions how you can use template, sometimes with examples of code.
You can add each template by typing:
{{TemplateName}}
however many of them require additional content to work. For some of them you can simply add text after | mark:
{{TemplateName|YourText}}
Most complicated templates require defining parameters. You can define them by typing code Parameter=Value and then | mark which tells wiki that you end your content there. You can add several values, like that:
{{TemplateName|
Parameter1=First text|
Parameter2=Second text|
}}
Templates also allow to omit some parameters, for example if on template page you see that it requires Parameter1, Parameter2 and Parameter3, but you don't know or don't want to give value for Parameter2 then you can type:
{{TemplateName|
Parameter1=First text|
Parameter2=|
Parameter3=Second text|
}}
Or simply leave that line, and type:
{{TemplateName|
Parameter1=First text|
Parameter3=Second text|
}}
Both options are equal and will work in same way.
Remember that if you are not sure how template works, or want to check if template supports additional data you can always check page of that template.