Template:Policy: Difference between revisions

From XMethod Wiki
Jump to navigation Jump to search
Created infobox template with WikiBoxes Creator
 
No edit summary
Line 1: Line 1:
<noinclude>
<includeonly><table class="infobox" style="width:280px; border:1px solid #a2a9b1; border-collapse:collapse; background:#f8f9fa; font-size:14px; float:right; clear:right; margin:0 0 1em 1em;">
== Infobox Template ==
<tr>
This template was created with [[Special:WikiBoxes|WikiBoxes Creator]].
<th colspan="2" style="background:{{{header_color|#2c3e50}}}; color:#fff; text-align:center; padding:10px; font-size:16px;">{{#switch:{{{type|}}}
| policy = 📋 Policy
| regulation = 📜 Regulation
| court case = ⚖️ Court Case
| statute = 📕 Statute
| executive order = 🏛️ Executive Order
| #default = 📄 {{{type|Legal Document}}}
}}</th>
</tr>
{{#if:{{{image|}}}|<tr>
<td colspan="2" style="text-align:center; padding:10px;">[[File:{{{image}}}|220px]]{{#if:{{{image_caption|}}}|<br><small>{{{image_caption}}}</small>}}</td>
</tr>}}
<tr>
<th colspan="2" style="background:#34495e; color:#fff; text-align:center; padding:6px;">General Information</th>
</tr>
{{#if:{{{full_name|}}}|<tr>
<th style="width:35%; text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Full Name</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{full_name}}}</td>
</tr>}}
{{#if:{{{jurisdiction|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Jurisdiction</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{#switch:{{{jurisdiction|}}}
| federal = 🇺🇸 Federal
| state = 🏛️ State
| local = 🏘️ Local
| international = 🌐 International
| #default = {{{jurisdiction}}}
}}</td>
</tr>}}
{{#if:{{{state|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">State</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{state}}}</td>
</tr>}}
{{#if:{{{agency|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Agency</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{agency}}}</td>
</tr>}}
{{#if:{{{court|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Court</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{court}}}</td>
</tr>}}
<tr>
<th colspan="2" style="background:#34495e; color:#fff; text-align:center; padding:6px;">Dates & Status</th>
</tr>
{{#if:{{{date_enacted|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Date Enacted</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{date_enacted}}}</td>
</tr>}}
{{#if:{{{date_effective|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Effective Date</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{date_effective}}}</td>
</tr>}}
{{#if:{{{date_decided|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Date Decided</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{date_decided}}}</td>
</tr>}}
{{#if:{{{date_repealed|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Date Repealed</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{date_repealed}}}</td>
</tr>}}
{{#if:{{{status|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Status</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{#switch:{{{status|}}}
| active = <span style="color:#27ae60; font-weight:bold;">● Active</span>
| in effect = <span style="color:#27ae60; font-weight:bold;">● In Effect</span>
| repealed = <span style="color:#c0392b; font-weight:bold;">● Repealed</span>
| overturned = <span style="color:#c0392b; font-weight:bold;">● Overturned</span>
| amended = <span style="color:#f39c12; font-weight:bold;">● Amended</span>
| pending = <span style="color:#3498db; font-weight:bold;">● Pending</span>
| superseded = <span style="color:#95a5a6; font-weight:bold;">● Superseded</span>
| expired = <span style="color:#95a5a6; font-weight:bold;">● Expired</span>
| #default = {{{status}}}
}}</td>
</tr>}}
<tr>
<th colspan="2" style="background:#34495e; color:#fff; text-align:center; padding:6px;">Citations & References</th>
</tr>
{{#if:{{{citation|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Citation</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;"><code>{{{citation}}}</code></td>
</tr>}}
{{#if:{{{public_law|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Public Law</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{public_law}}}</td>
</tr>}}
{{#if:{{{cfr|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">CFR</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{cfr}}}</td>
</tr>}}
{{#if:{{{usc|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">U.S. Code</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{usc}}}</td>
</tr>}}
{{#if:{{{case_number|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Case Number</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{case_number}}}</td>
</tr>}}
{{#if:{{{docket|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Docket</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{docket}}}</td>
</tr>}}
{{#if:{{{related_to|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Related To</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{related_to}}}</td>
</tr>}}
{{#if:{{{amends|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Amends</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{amends}}}</td>
</tr>}}
{{#if:{{{amended_by|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Amended By</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">{{{amended_by}}}</td>
</tr>}}
{{#if:{{{website|}}}|<tr>
<th style="text-align:right; padding:6px; border-bottom:1px solid #e5e7eb; font-weight:bold;">Website</th>
<td style="padding:6px; border-bottom:1px solid #e5e7eb;">[{{{website}}} Official Link]</td>
</tr>}}
</table></includeonly><noinclude>
== Policy/Regulation/Court Case Infobox ==
This template creates an infobox for policies, regulations, court cases, statutes, and executive orders.
 
=== Usage ===
<pre>
{{Policy
| type = policy / regulation / court case / statute / executive order
| full_name = Full official name
| jurisdiction = federal / state / local / international
| state = State name (if applicable)
| agency = Issuing agency
| court = Court name (for court cases)
| date_enacted = Date enacted
| date_effective = Effective date
| date_decided = Date decided (for court cases)
| date_repealed = Date repealed (if applicable)
| status = active / in effect / repealed / overturned / amended / pending / superseded / expired
| citation = Legal citation
| public_law = Public Law number
| cfr = Code of Federal Regulations citation
| usc = U.S. Code citation
| case_number = Case number
| docket = Docket number
| related_to = Related laws or cases
| amends = What this amends
| amended_by = What amended this
| website = Official website URL
| image = Image filename
| image_caption = Image caption
| header_color = Custom header color (hex)
}}
</pre>
 
=== Example: Federal Regulation ===
<pre>
{{Policy
| type = regulation
| full_name = Health Insurance Portability and Accountability Act
| jurisdiction = federal
| agency = Department of Health and Human Services
| date_enacted = August 21, 1996
| date_effective = April 14, 2003
| status = active
| citation = Pub.L. 104–191
| cfr = 45 CFR Parts 160, 162, 164
| usc = 42 U.S.C. §1320d
| website = https://www.hhs.gov/hipaa
}}
</pre>
 
=== Example: Court Case ===
<pre>
{{Policy
| type = court case
| full_name = Brown v. Board of Education
| jurisdiction = federal
| court = Supreme Court of the United States
| date_decided = May 17, 1954
| status = active
| citation = 347 U.S. 483 (1954)
| docket = No. 1
}}
</pre>
 
=== Example: State Policy ===
<pre>
{{Policy
| type = policy
| full_name = California Consumer Privacy Act
| jurisdiction = state
| state = California
| date_enacted = June 28, 2018
| date_effective = January 1, 2020
| status = active
| citation = Cal. Civ. Code §§ 1798.100–1798.199
}}
</pre>


'''Usage:''' <code>{{Policy}}</code>
[[Category:Infobox templates]]
[[Category:Infobox templates]]
</noinclude><includeonly>
</noinclude>
<infobox title="Policy">
</infobox>
</includeonly>

Revision as of 15:29, 30 January 2026

Policy/Regulation/Court Case Infobox

This template creates an infobox for policies, regulations, court cases, statutes, and executive orders.

Usage

{{Policy
| type = policy / regulation / court case / statute / executive order
| full_name = Full official name
| jurisdiction = federal / state / local / international
| state = State name (if applicable)
| agency = Issuing agency
| court = Court name (for court cases)
| date_enacted = Date enacted
| date_effective = Effective date
| date_decided = Date decided (for court cases)
| date_repealed = Date repealed (if applicable)
| status = active / in effect / repealed / overturned / amended / pending / superseded / expired
| citation = Legal citation
| public_law = Public Law number
| cfr = Code of Federal Regulations citation
| usc = U.S. Code citation
| case_number = Case number
| docket = Docket number
| related_to = Related laws or cases
| amends = What this amends
| amended_by = What amended this
| website = Official website URL
| image = Image filename
| image_caption = Image caption
| header_color = Custom header color (hex)
}}

Example: Federal Regulation

{{Policy
| type = regulation
| full_name = Health Insurance Portability and Accountability Act
| jurisdiction = federal
| agency = Department of Health and Human Services
| date_enacted = August 21, 1996
| date_effective = April 14, 2003
| status = active
| citation = Pub.L. 104–191
| cfr = 45 CFR Parts 160, 162, 164
| usc = 42 U.S.C. §1320d
| website = https://www.hhs.gov/hipaa
}}

Example: Court Case

{{Policy
| type = court case
| full_name = Brown v. Board of Education
| jurisdiction = federal
| court = Supreme Court of the United States
| date_decided = May 17, 1954
| status = active
| citation = 347 U.S. 483 (1954)
| docket = No. 1
}}

Example: State Policy

{{Policy
| type = policy
| full_name = California Consumer Privacy Act
| jurisdiction = state
| state = California
| date_enacted = June 28, 2018
| date_effective = January 1, 2020
| status = active
| citation = Cal. Civ. Code §§ 1798.100–1798.199
}}