Wikitech documentation templates
This is a list of templates that exist on Wikitech and which may be useful for technical documentation. (Compare with mw:Documentation/Style guide/templates.)
Codesample
{{codesample}}
{{Codesample|name=metadata|lang=yaml|scheme=light|line=1|start=5|highlight=1,4|code=
name: foo-redirect
namespace: tool-foo
labels:
name: foo-redirect
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/permanent-redirect: https://bar.toolforge.org/$1$is_args$args
}}
name: foo-redirect
namespace: tool-foo
labels:
name: foo-redirect
annotations:
kubernetes.io/ingress.class: nginx
nginx.ingress.kubernetes.io/permanent-redirect: https://bar.toolforge.org/$1$is_args$args
Collapse top and Collapse bottom
{{Collapse top}} and {{Collapse bottom}}
{{Collapse top|Title}}
===Collapsed content===
The collapsed content can include multiple paragraphs.
{{Notice|And even include other templates}}
{{Collapse bottom}}
Title | ||
---|---|---|
Collapsed contentThe collapsed content can include multiple paragraphs.
|
Caution
{{Caution}}
{{Caution|Here is my note.}}
Doing, Not Done, Done
{{Doing}}
{{Doing}}
Doing...
{{Not done}}
{{Not done}}
Not done
{{Done}}
{{Done}}
Done
Draft
{{Draft}}
{{Draft}}
Material may not yet be complete, information may presently be omitted, and certain parts of the content may be subject to radical, rapid alteration. More information pertaining to this may be available on the talk page.
Fixme
{{Fixme}}
{{Fixme|foo}}
Fixme inline
{{Fixme inline}}
{{Fixme inline|foo}}
{{Fixme inline|where}}
{{Fixme inline|when}}
[Fix Me]
[Where?]
[When?]
Hidden
{{Hidden}}
Expand and collapse section contents with a stylized header.
{{Hidden|Title|Hidden content that will be shown after clicking Expand}}
Title
|
---|
Hidden content that will be shown after clicking Expand |
Historical
{{archive}} aka. {{Historical}}
{{Historical}}
{{Historical|year=2005}}
Just a note
{{Justanote}}
{{Justanote|foo}}
Merge
{{Merge}}
{{Merge|foo}}
- It has been suggested that this page should be merged with foo
Navigation sidebar
{{Navigation_sidebar}} makes it easier for you to create navigation templates for a set of pages. For examples that use the template, see:
Note
{{Note}}
{{Note|text=Foo}}
{{Note|type=info|text=Foo}}
{{Note|type=reminder|text=Foo}}
{{Note|type=reminder|text=Multiple<br>lines<br>of<br>text}}
{{Note|type=warn|text=Foo}}
{{Note|type=error|text=Foo}}
{{Note}} Loose text
* Inline note {{Note|inline=1|text=Foo}}
lines
of
text
Note: Loose text
- Inline note Foo
Notice
{{Notice}}
{{Notice|foo bar bang}}
foo bar bang |
Outdated
{{Outdated}}
{{Outdated-inline}}
Remark
{{Remark}}
This is a wrapper around {{Note}}. Using that template instead is recommended.
See also
{{See also}}
{{See also|test|sandbox|w:foo}}
Staging
{{Staging}}
{{Staging}}
This page contains notes and working drafts that are subject to change and may be inaccurate.
Status
{{Status}}
{{status}} |
→ | Status: Unresolved |
{{status|done}} |
→ | Status: Done |
{{status|on hold}} |
→ | Status: Unresolved |
{{status|not done}} |
→ | Status: Unresolved |
- See template page for more color options, and wording change options.
Warn
{{Warn}}
{{Warn|Here is my note.}}
Warning
{{Warning}}
Alias for {{Warn}}
- Different version than on mediawikiwiki. Just uses ambox here.
Linking to Gerrit, Phabricator, etc
Link to Phabricator
{{tracked}}
{{tracked|T327319}}
will display a "Tracked in Phabricator" box like the one on the right.
You can also use [[phab:T327319]]
without using a template, it will display like this: phab:T327319
Link to a repository
{{git repo}}
{{git repo|wikimedia/developer-portal}}
Link to a change
{{gerrit}}
{{Gerrit|4203}}
Link to a file
{{gitweb}}
{{Gitweb|project=mediawiki/extensions/examples|file=extension.json}}