Difference between revisions of "Template:Status"

From DFM Wiki
m (Changed background from pale green to light cyan for table rows listing published reports; this is easier on the eyes.)
 
(25 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>== [[{{{pagename}}}|{{#lsth:{{{pagename}}}|title}}]] ==
+
<includeonly><tr style="background-color:{{#ifeq: {{trim| {{#lsth:{{{1}}}|Status}} }} | PUBLISHED | lightcyan | lightyellow }}">
{{#lsth:{{{pagename}}}|Status}}
+
<td>[[{{{1}}}]]</td>
</includonly><noinclude>
+
<td>{{#ifexist: {{{1}}}| {{#lsth:{{{1}}}|Workflow}} | <!-- no report page --> }}</td>
 +
</tr></includeonly><noinclude>
 
<templatedata>
 
<templatedata>
 
{
 
{
 
"params": {
 
"params": {
"pagename": {
+
"1": {
 
"description": "Wiki page containing a description of the report. The page should include a section with the title \"Status\".",
 
"description": "Wiki page containing a description of the report. The page should include a section with the title \"Status\".",
 
"type": "wiki-page-name",
 
"type": "wiki-page-name",
"required": true
+
"required": true,
 +
"label": "Report page",
 +
"aliases": [
 +
"pagename"
 +
]
 
}
 
}
 
},
 
},
"description": "Summary of a report status"
+
"description": "Summary of a report status",
 +
"format": "inline"
 
}
 
}
 
</templatedata>
 
</templatedata>
 
</noinclude>
 
</noinclude>

Latest revision as of 09:10, 6 August 2021

Summary of a report status

Template parameters

This template prefers inline formatting of parameters.

ParameterDescriptionTypeStatus
Report page1 pagename

Wiki page containing a description of the report. The page should include a section with the title "Status".

Pagerequired