Help:Templates

From HEWIKI
Jump to: navigation, search

Wiki Help On: Editing | Style | Headers | Linking | Processing Instructions | Tables | Administration | Uploading | Templates | Preferences | Searching | Contents



Templates are created in the "Template:" Namespace.

Contents

Creation

For example, to make a template called xyzzy, you would modify the file Template:xyzzy, and then in any page where you added {{xyzzy}} the text at Template:xyzzy would be automatically inserted instead.

Includeonly and Noinclude tags

To specify text on the template that should not be included (like maybe a category), enclose it within: <noinclude></noinclude> tags.

To specify text that should be included but not displayed, enclose it within <includeonly></includeonly> tags.

Other ways to include text

To enclose text from a page that is not in the template space, prefix the name with a colon.

Displaying templates with {{tl}}

To display a template name without expanding it, use the {{tl}} "Template link". Example: {{tl|todo}} displays as {{todo}}.


Additional information

See: http://meta.wikimedia.org/wiki/Help:Template

Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox