You are browsing a read-only backup copy of Wikitech. The primary site can be found at wikitech.wikimedia.org

Difference between revisions of "Wikitech documentation templates"

From Wikitech-static
Jump to navigation Jump to search
imported>SRodlund
imported>Quiddity
(nocat and rm dupe)
 
Line 42: Line 42:
<code><nowiki>{{Fixme|foo}}</nowiki></code>
<code><nowiki>{{Fixme|foo}}</nowiki></code>


{{Fixme|foo}}
{{Fixme|foo|nocat=yes}}


==Fixme inline==
==Fixme inline==
Line 51: Line 51:
  <code><nowiki>{{Fixme inline|when}}</nowiki></code>
  <code><nowiki>{{Fixme inline|when}}</nowiki></code>


{{Fixme inline|foo}}<br>
{{Fixme inline|foo|nocat=yes}}<br>
{{Fixme inline|where}}<br>
{{Fixme inline|where|nocat=yes}}<br>
{{Fixme inline|when}}<br>
{{Fixme inline|when|nocat=yes}}<br>
 
==Remark==
==Remark==
{{tl|Remark}}
{{tl|Remark}}
Line 168: Line 169:
{{Justanote|foo}}
{{Justanote|foo}}


==Fixme Historical Outdated Update==
== Historical ==
{{tl|archive}} aka. {{tl|Historical}}


{{tl|Fixme}}
<code><nowiki>{{Historical}}</nowiki></code>
 
<code><nowiki>{{Fixme}}</nowiki></code>


{{Fixme}}
<code><nowiki>{{Historical|year=2005}}</nowiki></code>


{{tl|Historical}}
{{Historical|nocat=yes}}


<code><nowiki>{{Historical}}</nowiki></code>
{{Historical|year=2005|nocat=yes}}
 
{{Historical}}


==  Outdated ==
{{tl|Outdated}}
{{tl|Outdated}}


<code><nowiki>{{Outdated}}</nowiki></code>
{{Outdated|nocat=yes}}
 
{{Outdated}}


{{tl|Outdated-inline}}
{{tl|Outdated-inline}}


<code><nowiki>{{Outdated-inline}}</nowiki></code>
{{Outdated-inline|nocat=yes}}
 
{{Outdated-inline}}


== Update==
{{tl|Update}}
{{tl|Update}}



Latest revision as of 06:59, 12 September 2021

Roundup of existing wikitech documentation-esque templates. (Compare with mw:Documentation/Style guide/templates.)

Template
Link
Example
Example output

Hatnote

{{hatnote}}

Does not exist here.

Caution and Warning

{{Caution}}

{{Caution}} Here is my note.

Warning Caution: Here is my note.


{{Caution|Here is my note.}}

Warning Caution: Here is my note.


{{warning}}

Different version than on mediawikiwiki. Just uses ambox here.

{{warning|Here is my note.}}

Todo

{{Todo}}

Does not exist here.

Fixme

{{Fixme}}

{{Fixme|foo}}

Fixme inline

{{Fixme inline}}

{{Fixme inline|foo}}
{{Fixme inline|where}}
{{Fixme inline|when}}

[Fix Me]
[Where?]
[When?]

Remark

{{Remark}}

{{Remark|Foo}}
{{Remark|Foo|reminder}}
{{Remark|Foo|error}}
{{Remark|Foo|gotcha}}
Foo
Foo
Foo
Foo

Tip

{{Tip}}

Does not exist here.

Notice

{{Notice}}

{{Notice|foo bar bang}}

Main

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

{{Main}}

Does not exist here.

See also

{{See also}}

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

Talkquote

{{Talkquote}}

Does not exist here.

Smaller

{{Smaller}}

Does not exist here.

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.

Merge

{{Merge}}

{{Merge|foo}}

It has been suggested that this page should be merged with foo


Doing Not Done Done Resolved

{{Doing}}

{{Doing}}

Doing...

{{Not done}}

{{Not done}}

☒N Not done

{{Done}}

{{Done}}

Yes Done

{{Resolved}}

Does not exist here.

{{Justanote}}

{{Justanote|foo}}

Note.svg foo

Historical

{{archive}} aka. {{Historical}}

{{Historical}}

{{Historical|year=2005}}

Outdated

{{Outdated}}

{{Outdated-inline}}

Update

{{Update}}

Does not exist here.

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 }}

metadata
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

Staging

{{Staging}}

{{Staging}}

Draft

{{Draft}}

{{Draft}}