Documentation/Style guide/templates

Aus wissen.becker-heiko.de

Overview

Templates are wiki pages whose content can be embedded in other pages. They allow for easy translations and help maintain consistency among related documents. This page describes some templates for formatting text.

Also see Help:Templates. There is also a similar list for wikitech.wikimedia.org.

Templates

Template Example syntax Example output
Hatnote
{{hatnote|Here is my note.}}
Here is my note.
Caution
{{Caution}} Here is my caution 1.
{{Caution|Here is my caution 2.}}
Datei:OOjs UI icon alert-destructive.svg <translate> Caution:</translate> Here is my caution 1.

Datei:OOjs UI icon alert-destructive.svg <translate> Caution:</translate> Here is my caution 2.
Warning
{{warning}} Here is my warning 1.
{{warning|Here is my warning 2.}}
Datei:OOjs UI icon notice-destructive.svg <translate> Warning:</translate> Here is my warning 1.

Datei:OOjs UI icon notice-destructive.svg <translate> Warning:</translate> Here is my warning 2.
Todo
{{Todo|Here is my todo.}}
<translate> TODO:</translate> Here is my todo.
Fixtext
{{Fixtext|Here is my fixtext.}}
<translate> FIX:</translate> Here is my fixtext.
Note
{{note|Note 1}}
{{note|Note 2|reminder}}
{{note|Note 3|error}}
{{note}} Loose test 
Note 1

Note 2

Note 3

Datei:OOjs UI icon lightbulb-20 fc3.svg <translate> Note:</translate> Loose test
Tip
{{Tip|Here is my tip.}}
Here is my tip.
Notice
{{Notice|Here is my notice.}}
Main
{{Main|test|sandbox|w:foo}}
<translate> Main pages:</translate> test, sandbox und w:foo
See also
{{See also|test|sandbox|w:foo}}
<translate> See also</translate>: test, sandbox und w:foo
Talkquote
{{talkquote|foo bar bang|example}}

foo bar bang
— User:example

Smaller
Body text {{Smaller|(note with smaller text)}}
Body text (note with smaller text)
Status
{{status}}
{{status|done}}
{{status|on hold}}
{{status|not done}}
Status:    In progress


Status:    Done


Status:    On hold


Status:    Not done
Doing
{{Doing}}
Datei:OOjs UI icon reload-progressive.svg <translate> In progress</translate>
Not done
{{Not done}}
Datei:OOjs UI icon close-ltr-destructive.svgN <translate> Not done</translate>
Done
{{Done}}
Datei:OOjs UI icon check-constructive.svg <translate> Done</translate>
Resolved
{{Resolved}}
Datei:OOjs UI icon check-constructive.svg <translate> Resolved</translate>
Fixme
{{Fixme}}
[[Category:Incorrect documentation{{#translation:}}]]
Historical
{{Historical}}
[[Category:Pages kept for historical interest{{#translation:}}]]
Outdated (Alias: Update)
{{Outdated}}
Alias: {{Update}}
Archived extension
{{Archived extension}}
Soft redirect
{{Soft redirect}}
#REDIRECT[[:{{{1}}}|{{{1}}}]]
This page is a soft redirect.
Draft
{{Draft}}
DoNotTranslate
{{DoNotTranslate}}