Difference between revisions of "Templates"

From IMSMA Wiki
Jump to: navigation, search
(Cleaned up)
(Added actual temlaptes)
Line 6: Line 6:
 
Every page that is linked to a note should use the [[Template:Note|Note template]]. Editors can add it in the corresponding place of the page using the following command:
 
Every page that is linked to a note should use the [[Template:Note|Note template]]. Editors can add it in the corresponding place of the page using the following command:
 
<nowiki>{{Note | Text should be placed here}}</nowiki>
 
<nowiki>{{Note | Text should be placed here}}</nowiki>
 +
{{Note | Text should be placed here}}
  
 
===Warnings===
 
===Warnings===
 
Every page that is linked to a warning should use the [[Template:Warning|Warning template]]. Users can add it in the corresponding place of the page using the following command:
 
Every page that is linked to a warning should use the [[Template:Warning|Warning template]]. Users can add it in the corresponding place of the page using the following command:
 
<nowiki>{{Warning| Text should be placed here}}</nowiki>
 
<nowiki>{{Warning| Text should be placed here}}</nowiki>
 +
{{Warning| Text should be placed here}}
  
 
==Formatting templates==
 
==Formatting templates==

Revision as of 11:24, 9 September 2013

Templates are used to give standard messages on Pages. Templates are called using these brackets {{template name}}. There are many purposes for using templates. They can be to convey or format messages to the reader of the Page, they can be used to facilitate navigation, or they can be used to convey messages or to flag pages to the editors.

Informative templates

Notes

Every page that is linked to a note should use the Note template. Editors can add it in the corresponding place of the page using the following command: {{Note | Text should be placed here}}

Note.jpg Text should be placed here

Warnings

Every page that is linked to a warning should use the Warning template. Users can add it in the corresponding place of the page using the following command: {{Warning| Text should be placed here}}

Warning.jpg Text should be placed here

Formatting templates

IMSMANG

Every page that uses the word IMSMANG should use the IMSMANG template. Editors can add it in the corresponding place of the page using the following command: {{IMSMANG}}

TOC

Per default the Table of Contents (TOC) on a page are placed to the left of the Page. If the editor prefers the TOC to the right, the TOC template is used. Editors can add it in the corresponding place of the page using the following command: {{TOC right}}

Navigation templates

On IMSMA Wiki, a navbox is a template that lists at least several pages that are related. The relationship between all the pages in a single navbox is such that the reader of the current page will be readily referred to other related material with a single link. The goal is to have a navbox in every page (bottom).