Template:Order info: Difference between revisions
m Render status span w/ class (for row tint) + keep category emission |
m Render status span only (drop category to avoid index pollution) |
||
| Line 1: | Line 1: | ||
<includeonly><span class="ostat ostat-{{lc:{{{status|active}}}}}">{{{status|Active}}}{{#if:{{{by|}}}| ([[{{{by}}}]])}}</span> | <includeonly><span class="ostat ostat-{{lc:{{{status|active}}}}}">{{{status|Active}}}{{#if:{{{by|}}}| ([[{{{by}}}]])}}</span></includeonly><noinclude> | ||
Structured metadata for the DPL-built order/directive index tables. Renders the status ( | Structured metadata for the DPL-built order/directive index tables. Renders the status (shown in the index Status column; superseded/rescinded/amended rows are tinted) and stores the effective date. Place near the top of an order page. | ||
<pre>{{Order info | <pre>{{Order info | ||
| date = 8 December 2022 | | date = 8 December 2022 | ||
| Line 6: | Line 6: | ||
| by = | | by = | ||
}}</pre> | }}</pre> | ||
* '''status''' — Active ''(default)'' / Superseded / Rescinded / Amended • '''by''' — superseding order (link) | |||
[[Category: Templates]][[Category: Formatting]]</noinclude> | [[Category: Templates]][[Category: Formatting]]</noinclude> | ||