Template:Order info: Difference between revisions

Create Order info metadata template (for DPL order indexes)
 
m Preserve the space before the (superseding order) link so it renders "Superseded (…)"
 
(2 intermediate revisions by the same user not shown)
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|}}}|&#32;([[{{{by}}}]])}}</span></includeonly><noinclude>
Stores structured metadata for the auto-generated order/directive index tables (the [[:Category:Orders|order]] listings are built by [[Extension:DynamicPageList4|DPL4]] which reads these fields). Place near the top of an order page.
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>
* '''date''' — effective date (e.g. ''8 December 2022'')
* '''status''' — Active ''(default)'' / Superseded / Rescinded / Amended &nbsp; • &nbsp; '''by''' — superseding order (link)
* '''status''' — Active ''(default)'' / Superseded / Rescinded / Amended
* '''by''' — the superseding/rescinding order (link), if any
Renders nothing on the page except a maintenance category when the status is not Active.
[[Category: Templates]][[Category: Formatting]]</noinclude>
[[Category: Templates]][[Category: Formatting]]</noinclude>