Template:Order info: Difference between revisions

From TenthFleet
Jump to navigation Jump to search
m Render status span w/ class (for row tint) + keep category emission
m Preserve the space before the (superseding order) link so it renders "Superseded (…)"
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<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>
<includeonly><span class="ostat ostat-{{lc:{{{status|active}}}}}">{{{status|Active}}}{{#if:{{{by|}}}|&#32;([[{{{by}}}]])}}</span></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.
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 &nbsp; • &nbsp; '''by''' — superseding order (link)
[[Category: Templates]][[Category: Formatting]]</noinclude>
[[Category: Templates]][[Category: Formatting]]</noinclude>

Latest revision as of 02:07, 14 July 2026

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.

{{Order info
| date   = 8 December 2022
| status = Active
| by     =
}}
  • status — Active (default) / Superseded / Rescinded / Amended   •   by — superseding order (link)