Tutorial: Templates

From IMT-Wiki
Jump to navigationJump to search

Templates are a quick way to put a preformatted piece of wiki code into any wiki page. There are several templates available in this wiki and you can create your own if you want to. You can find a list of the most-used templates.

Example usage

This page describes how to use some of these templates.

Former employee

This is an infobox that you can put at the beginning of a user's page after they have left the institute.

It is one of the easier templates to use. You just enter

{{Dead Box}}

in the wiki code. Beware that template names are case-sensitive! The preview of this box looks like this:

Exclamation-mark-red-md.png Bitte beachten: Dieser Benutzer ist nicht mehr am IMT angestellt.
This user no longer works at IMT.

Side note: We are somewhat sorry for the name of this template. It was picked a while ago and it is now impractical to change it.

Outdated device

For devices that no longer exist you can do the same as for emplyees:

{{Dead Device}}

This will create a box like this:

Exclamation-mark-red-md.png Bitte beachten: Dieses Gerät ist nicht mehr am IMT verfügbar.
This device is no longer available at IMT.

Keywords

You can add keywords or search terms (german: Suchbegriffe) to any page. This facilitates finding the page with the search function. To add keywords that don't appear in the page's content but might prove useful, add a box at the end of your page like this:

{{suchbegriffe|keyword1, keyword2, ...}}

This will create a box like this:

keywords
keyword1, keyword2, ...

Infobox Arbeitsanweisung

This infobox is only inteded for usage on Arbeitsanweisungen pages. You have to supply AA and revision number as well as a date and editor name:

{{Infobox AA|aa=123|revision=01|stand=02.11.2017|bearbeiter=Mustermensch}}

This creates a box loke this:

Arbeitsanweisung 123
Revision 01
Stand 02.11.2017
Bearbeiter Mustermensch

Note that it is automatically right-aligned and text floats around it. It is intended to be used at the beginning of the page.

Further reading

The Wikipedia help article on templates