Editing Help:Templates
Jump to navigation
Jump to search
Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{WikiHelp}} | + | {{WikiHelp}} |
− | |||
− | |||
==What are Templates?== | ==What are Templates?== | ||
− | *Templates | + | *Templates are used on wikis to add content and codes to pages, by simpling adding a '''<code>{{[[:Category:Templates|Template]]}}</code>''', which will display the template's content as part of the wiki-page when viewed, while only actually being a short template-tag when you are editing the page. |
− | + | *This frees the page of repetitive information or complex codes cluttering when you are editing a page. | |
− | + | *This also makes it easier to update information that is repeated on multiple pages, by simply updating the template containing the information. | |
− | * | ||
− | * | ||
− | |||
− | + | ==How do I edit the Templates?== | |
− | + | {{Tag|Template Control|Since ''templates'' play a vital role in the formatting of our ''wiki'', the '''[[WikiWriter]]''' is the only one that should '''create templates and maintain them''' | |
− | + | :'''Contributors:''' you are allowed to edit templates for the purpose of '''correcting''', such as spelling errors, wrong links, and other details | |
− | : | + | }} |
− | : | ||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
+ | To easily find and edit the active templates within a page: | ||
+ | #Press the "''edit''" button at the top of the page | ||
+ | #Scroll down to the bottom, below the text-editing area, there you will see a list of templates currently in use on the page, and a easy "edit" button next to each link. | ||
+ | #*When you press the "''edit''" link next to the template name, you will be taken to the content of that template. | ||
+ | #*You will often see <code><nowiki><onlyinclude></nowiki></code>, <code><nowiki><includeonly></nowiki></code> and <code><nowiki><noinclude></nowiki></code> tags at the top of those template pages, '''DO NOT MESS WITH THOSE TAGS''' | ||
+ | #'''Remember:''' always use ''"Show preview"'' before you save ANY page, to see if it looks correct. | ||
+ | #*You can always press the "History" and ''undo'' recent changes in case of accidents. | ||
− | == | + | ===<code><nowiki><onlyinclude></nowiki></code> <code><nowiki><includeonly></nowiki></code> <code><nowiki><noinclude></nowiki></code>=== |
− | + | ;What are those tags anyway? | |
− | + | :They control if content which is placed between them is displayed when the templates are used on pages. | |
− | :* | + | |
− | : | + | ==Using Templates== |
− | + | {| style="width:70%" | |
− | + | | | |
− | {{ | + | {{TemplateExplanation| |
+ | On each template's page are explanations for how to use that specific template, in a box like this. | ||
+ | :*Many templates let you add content to it by filling it in the right order within the tag: | ||
+ | ::'''example:''' the <code><nowiki>{{yes}}</nowiki></code> is specifically made to be used within table cells (else it looks like plain code). | ||
+ | }} | ||
+ | {| class=wikitable | ||
+ | !colspan=3|Using templates (with <code><nowiki>{{yes}}</nowiki></code> template as example) | ||
+ | |- | ||
+ | !Description !!Code !! Results | ||
+ | |- | ||
+ | |Plain use of template, fills the cell with color and "yes" ||<code><nowiki>{{yes}}</nowiki></code> ||{{yes}} | ||
+ | |- | ||
+ | |Adding text to template, in this case it will replace the default text. ||<code><nowiki>{{yes|usually}}</nowiki></code>|| {{yes|usually}} | ||
+ | |} | ||
+ | :If you would use this template outside of its designated usage (which is within table cells), it turns out looking like this: | ||
+ | :*{{yes}} | ||
+ | |||
+ | |||
+ | |} |