Difference between revisions of "Templates"

From IMSMA Wiki
Jump to: navigation, search
(Cleaned up)
Line 1: Line 1:
 
__NOTOC__
 
__NOTOC__
== Notes ==
+
'''Templates''' are used to give standard messages on Pages. Templates are called using these brackets <nowiki>{{template name}}</nowiki>. 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.
Every page that is linked to a note should use this [[Template:Note|template]]. Users can add it in the corresponding place of the page using the following command:
 
  
 +
==Informative templates==
 +
===Notes===
 +
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>
  
== Warnings==
+
===Warnings===
Every page that is linked to a warning should use this [[Template: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>
  
== {{IMSMANG}}==
+
==Formatting templates==
Every page that uses the word {{IMSMANG}} should use this [[Template:IMSMANG|template]]. Users can add it in the corresponding place of the page using the following command:
+
==={{IMSMANG}}===
 
+
Every page that uses the word {{IMSMANG}} should use the [[Template:IMSMANG|IMSMANG template]]. Editors can add it in the corresponding place of the page using the following command:
 
<nowiki>{{IMSMANG}}</nowiki>
 
<nowiki>{{IMSMANG}}</nowiki>
 
+
===TOC===
== 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 [[Template:TOC right|TOC template]] is used. Editors can add it in the corresponding place of the page using the following command:
Every page that uses a TOC that should be placed in the right should use this [[Template:TOC right|template]]. Users can add it in the corresponding place of the page using the following command:
 
 
 
 
<nowiki>{{TOC right}}</nowiki>
 
<nowiki>{{TOC right}}</nowiki>
  
== Navigational boxes ==
+
==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.
+
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).
 
 
The goal is to have a navbox in every page (bottom).
 
 
 
  
 
{{Policies}}
 
{{Policies}}

Revision as of 12:22, 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}}

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}}

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).