Template:Infobox(Regulations): Difference between revisions
Appearance
No edit summary |
Modernise infobox: optional rows, optional image, dark-mode support, new fields |
||
| Line 1: | Line 1: | ||
<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><!-- | |||
-->{{#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" | -->{{#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>}}<!-- | ||
| | -->{{#if:{{{legal_reference|}}}|<tr><th scope="row" class="ief-infobox-label">Legal reference</th><td class="ief-infobox-data">{{{legal_reference}}}</td></tr>}}<!-- | ||
| {{{ | -->{{#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>}}<!-- | ||
| | -->{{#if:{{{applies_from|}}}|<tr><th scope="row" class="ief-infobox-label">Applies from</th><td class="ief-infobox-data">{{{applies_from}}}</td></tr>}}<!-- | ||
| {{{enacted| | -->{{#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>}}<!-- | ||
| | -->{{#if:{{{key_provisions|}}}|<tr><th scope="row" class="ief-infobox-label">Key provisions</th><td class="ief-infobox-data">{{{key_provisions}}}</td></tr>}}<!-- | ||
-->{{#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>}}<!-- | ||
| | -->{{#if:{{{official_text|}}}|<tr><th scope="row" class="ief-infobox-label">Official text</th><td class="ief-infobox-data">{{{official_text}}}</td></tr>}}<!-- | ||
-->{{#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> | ||
| | Infobox for laws, regulations, policies and international mechanisms. | ||
| {{{ | |||
|} | All parameters are optional. Rows with an empty parameter are hidden. Keep values short; separate several items with <code><br /></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> | |||
Latest revision as of 09:40, 15 November 2026
Infobox for laws, regulations, policies and international mechanisms.
All parameters are optional. Rows with an empty parameter are hidden. Keep values short; separate several items with <br /> rather than bullet lists. Use image= with a file name only (local or from Wikimedia Commons), plus caption= and alt=.
{{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 =
}}
Styles: Template:IEF article/styles.css.