No edit summary
Modernise infobox: optional rows, optional image, dark-mode support, new fields
 
Line 1: Line 1:
{| class="infobox" style="width: 250px; border: 1px solid #aaa; font-size: 90%;"
<includeonly><templatestyles src="IEF article/styles.css" /><table class="infobox ief-infobox"><!--
|-
--><tr><th colspan="2" class="ief-infobox-title">{{{policy_name|{{PAGENAME}}}}}{{#if:{{{short_name|}}}|<span class="ief-infobox-subtitle">{{{short_name}}}</span>}}</th></tr><!--
! colspan="2" style="text-align: center; font-weight: bold;" | {{{policy_name|Policy/Regulation Name}}}
-->{{#if:{{{image|}}}|<tr><td colspan="2" class="ief-infobox-image">[[File:{{{image}}}|{{{image_size|260px}}}|alt={{{alt|}}}]]{{#if:{{{caption|}}}|<div class="ief-infobox-caption">{{{caption}}}</div>}}</td></tr>}}<!--
|-
-->{{#if:{{{type|}}}|<tr><th scope="row" class="ief-infobox-label">Type</th><td class="ief-infobox-data">{{{type}}}</td></tr>}}<!--
| colspan="2" style="text-align: center;" | [[File:{{{image|Placeholder.png}}}|200px|alt={{{alt|Policy Document}}}]]
-->{{#if:{{{jurisdiction|}}}|<tr><th scope="row" class="ief-infobox-label">Jurisdiction</th><td class="ief-infobox-data">{{{jurisdiction}}}</td></tr>}}<!--
|-
-->{{#if:{{{governing_body|}}}|<tr><th scope="row" class="ief-infobox-label">Governing body</th><td class="ief-infobox-data">{{{governing_body}}}</td></tr>}}<!--
| '''Jurisdiction'''
-->{{#if:{{{legal_reference|}}}|<tr><th scope="row" class="ief-infobox-label">Legal reference</th><td class="ief-infobox-data">{{{legal_reference}}}</td></tr>}}<!--
| {{{jurisdiction|Unknown}}}
-->{{#if:{{{enacted|}}}|<tr><th scope="row" class="ief-infobox-label">Adopted</th><td class="ief-infobox-data">{{{enacted}}}</td></tr>}}<!--
|-
-->{{#if:{{{entry_into_force|}}}|<tr><th scope="row" class="ief-infobox-label">In force</th><td class="ief-infobox-data">{{{entry_into_force}}}</td></tr>}}<!--
| '''Enacted'''
-->{{#if:{{{applies_from|}}}|<tr><th scope="row" class="ief-infobox-label">Applies from</th><td class="ief-infobox-data">{{{applies_from}}}</td></tr>}}<!--
| {{{enacted|Unknown}}}
-->{{#if:{{{status|}}}|<tr><th scope="row" class="ief-infobox-label">Status</th><td class="ief-infobox-data">{{{status}}}</td></tr>}}<!--
|-
-->{{#if:{{{scope|}}}|<tr><th scope="row" class="ief-infobox-label">Scope</th><td class="ief-infobox-data">{{{scope}}}</td></tr>}}<!--
| '''Governing Body'''
-->{{#if:{{{key_provisions|}}}|<tr><th scope="row" class="ief-infobox-label">Key provisions</th><td class="ief-infobox-data">{{{key_provisions}}}</td></tr>}}<!--
| {{{governing_body|Unknown}}}
-->{{#if:{{{mrv|}}}|<tr><th scope="row" class="ief-infobox-label">MRV requirements</th><td class="ief-infobox-data">{{{mrv}}}</td></tr>}}<!--
|-
-->{{#if:{{{related_policies|}}}|<tr><th scope="row" class="ief-infobox-label">Related policies</th><td class="ief-infobox-data">{{{related_policies}}}</td></tr>}}<!--
| '''Key Provisions'''
-->{{#if:{{{official_text|}}}|<tr><th scope="row" class="ief-infobox-label">Official text</th><td class="ief-infobox-data">{{{official_text}}}</td></tr>}}<!--
| {{{key_provisions|No provisions specified}}}
-->{{#if:{{{website|}}}|<tr><th scope="row" class="ief-infobox-label">Website</th><td class="ief-infobox-data">{{{website}}}</td></tr>}}<!--
|-
-->{{#if:{{{updated|}}}|<tr><td colspan="2" class="ief-infobox-below">Last reviewed: {{{updated}}}</td></tr>}}</table></includeonly><noinclude>
| '''Related Policies'''
Infobox for laws, regulations, policies and international mechanisms.
| {{{related_policies|None specified}}}
 
|}
All parameters are optional. Rows with an empty parameter are hidden. Keep values short; separate several items with <code>&lt;br /&gt;</code> rather than bullet lists. Use <code>image=</code> with a file name only (local or from Wikimedia Commons), plus <code>caption=</code> and <code>alt=</code>.
 
<pre>
{{Infobox(Regulations)
| policy_name =
| short_name =
| image =
| caption =
| alt =
| type =
| jurisdiction =
| governing_body =
| legal_reference =
| enacted =
| entry_into_force =
| applies_from =
| status =
| scope =
| key_provisions =
| mrv =
| related_policies =
| official_text =
| website =
| updated =
}}
</pre>
Styles: [[Template:IEF article/styles.css]].
</noinclude>