Documentation/Style guide/templates

From MediaWiki.org
Jump to navigation Jump to search

Roundup of existing mediawikiwiki documentation-esque templates. (Compare with wikitech:User:Quiddity/doctemplates.)

Template
Link
Example
Example output

Hatnote[edit]

{{hatnote}}

{{hatnote|Here is my note.}}


Caution and Warning[edit]

{{Caution}}

{{Caution}} Here is my note.

Caution! Caution: Here is my note.


{{Caution|Here is my note.}}

Caution! Caution: Here is my note.


{{Warning}}

{{warning}} Here is my note.

Warning Warning: Here is my note.


{{warning|Here is my note.}}

Warning Warning: Here is my note.

Todo[edit]

{{Todo}}

{{Todo|foo bar bang}}

TODO: foo bar bang

Fixtext[edit]

{{Fixtext}}

{{TNT|Fixtext|foo bar bang}}

FIX: foo bar bang

Note[edit]

{{Note}}

{{note|Foo}}
{{note|Foo|reminder}}
{{note|Foo|error}}
{{note}} Loose test
Foo
Foo
Foo

Note Note: Loose test

Tip[edit]

{{Tip}}

{{TNT|Tip|foo bar bang}}

foo bar bang

Notice[edit]

{{Notice}}

{{Notice|foo bar bang}}

Main[edit]

Cannot do interwiki links. Requires TNT (translatable template) wrapping template.

{{Main}}

{{TNT|Main|test|sandbox|w:foo}}

See also[edit]

{{See also}}

{{See also|test|sandbox|w:foo}}

Talkquote[edit]

{{Talkquote}}

{{talkquote|foo bar bang|example}}

foo bar bang
— User:example

Smaller[edit]

{{Smaller}}

Body text {{Smaller|(note with smaller text)}}

Body text (note with smaller text)

Status[edit]

{{Status}}

{{status}}
Status:    In progress
{{status|done}}
Status:    Done
{{status|on hold}}
Status:    On hold
{{status|not done}}
Status:    Not done
See template page for more color options, and wording change options.

Doing Not Done Done Resolved[edit]

{{Doing}}

{{Doing}}

In progress In progress

{{Not done}}

{{Not done}}

N Not done

{{Done}}

{{Done}}

Yes Done

{{Resolved}}

{{Resolved}}

Yes Resolved

Fixme Historical Outdated Update[edit]

{{Fixme}}

{{Fixme}}

{{Historical}}

{{Historical}}

{{Outdated}}

{{Outdated}}

{{Update}}

{{TNT|Update}}