Template:Order info: Difference between revisions
Create Order info metadata template (for DPL order indexes) |
m Render status span w/ class (for row tint) + keep category emission |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{lc:{{{status|active}}}}}|superseded=[[Category:Superseded]]|rescinded=[[Category:Rescinded]]|amended=[[Category:Amended]]|#default=}}</includeonly><noinclude> | <includeonly><span class="ostat ostat-{{lc:{{{status|active}}}}}">{{{status|Active}}}{{#if:{{{by|}}}| ([[{{{by}}}]])}}</span>{{#switch:{{lc:{{{status|active}}}}}|superseded=[[Category:Superseded]]|rescinded=[[Category:Rescinded]]|amended=[[Category:Amended]]|#default=}}</includeonly><noinclude> | ||
Structured metadata for the DPL-built order/directive index tables. Renders the status (used in the index Status column; superseded/rescinded/amended rows get tinted) and stores the effective date. | |||
<pre>{{Order info | <pre>{{Order info | ||
| date = 8 December 2022 | | date = 8 December 2022 | ||
| Line 6: | Line 6: | ||
| by = | | by = | ||
}}</pre> | }}</pre> | ||
[[Category: Templates]][[Category: Formatting]]</noinclude> | [[Category: Templates]][[Category: Formatting]]</noinclude> | ||