Wiki Templates: Difference between revisions
(New page: List of wiki templates that are used in formatting areas/items that recur frequently across different pages. Some templates are simple and do not require any parameters while others do. A ...) |
No edit summary |
||
Line 1: | Line 1: | ||
{{RightToC}} | |||
List of wiki templates that are used in formatting areas/items that recur frequently across different pages. Some templates are simple and do not require any parameters while others do. A more [[Wiki Templates#Parameters|complete description]] is given below. | List of wiki templates that are used in formatting areas/items that recur frequently across different pages. Some templates are simple and do not require any parameters while others do. A more [[Wiki Templates#Parameters|complete description]] is given below. | ||
== List of Templates == | |||
=== Table of Contents === | |||
* [[Template:LeftToC|<nowiki>{{LeftToC}}</nowiki>]] - Table of contents appears on left side with text wrapping along the right. | |||
* [[Template:RightToC|<nowiki>{{RightToC}}</nowiki>]] - Table of contents appears on right side with text wrapping along the left. | |||
=== Navigation === | |||
== Parameters == | == Parameters == |
Revision as of 16:54, 2 January 2009
List of wiki templates that are used in formatting areas/items that recur frequently across different pages. Some templates are simple and do not require any parameters while others do. A more complete description is given below.
List of Templates
Table of Contents
- {{LeftToC}} - Table of contents appears on left side with text wrapping along the right.
- {{RightToC}} - Table of contents appears on right side with text wrapping along the left.
Parameters
A parameter, or argument, is information that the template needs to complete its job. If a parameter is required, you must include it, if it is option you can omit it if it doesn't apply. For example if someone gives you a to do list, the purpose of the list is clear, you are supposed to do the items on the list. But for any given list, the items will differ. A template that requires parameters is the same idea. Separate the parameters with single pipes. Since a to do list can be very long, the template might include 30 option parameters, meaning you could have a list from zero to thirty items long. Here's an example of formatting a to do list with three items using the ToDoList template:
{{ToDoList|Buy milk.|Return videos.|Wash car.}}
How the list is formatted will depend on exactly how the actual template was setup, but here is one way it could be set up:
To Do List
- Buy milk.
- Return videos.
- Wash car.