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

Difference between revisions of "Template:Irdoc"

From Wikitech-static
Jump to navigation Jump to search
imported>Krinkle
 
imported>Krinkle
Line 1: Line 1:
<templatestyles src="Irdoc/style.css"/><noinclude>
'''document status''': {{#switch:{{{status|<includeonly>draft</includeonly>}}}
|draft=<mark>draft</mark> [[Category:Incident documentation]][[Category:Incident documentation drafts]]
|review=in-review [[Category:Incident documentation]][[Category:Incident documentation drafts]]
|final=final [[Category:Incident documentation]]
|=<mark>draft</mark> <!-- template preview -->
|#default = {{{status|}}} <span class=error>Invalid status</span> [[Category:Incident documentation]]
}}<templatestyles src="Irdoc/style.css"/><noinclude>{{Documentation|content=
 
This template is included at the top of [[Incident documentation]] pages and takes care of:
* Display the current status of this report.
* Styling for draft markers (see below).
* Categorisation.
== Usage ==
== Usage ==
<pre>
<pre>
{{irdoc}}
{{irdoc}}
{{irdoc|status=draft}}
{{irdoc|status=review}}
{{irdoc|status=final}}
</pre>
</pre>
<templatedata>
{
"params": {
"status": {
"label": "Status",
"description": "One of draft, review, or final.",
"type": "string",
"autovalue": "draft",
"required": true
}
},
"description": "Display the current status of the incident report and take care of categorisation.",
"format": "inline"
}
</templatedata>


== Example ==
== Example ==
* <mark>Marked placeholder.</mark>
* <mark>Marked placeholder.</mark>


== See also ==
* [[:Category:Incident documentation]]
* [[:Category:Incident documentation drafts]]
* [[:Category:Incident documentation in-reviews]]
}}
[[Category:Templates]]
</noinclude>
</noinclude>

Revision as of 19:52, 28 April 2020

document status: draftLua error in Module:TNT at line 158: Missing JsonConfig extension; Cannot load https://commons.wikimedia.org/wiki/Data:I18n/Documentation.tab.