Jump to content

Template:Infobox U.S. presidential document and Template:Infobox U.S. presidential document/sandbox: Difference between pages

(Difference between pages)
Page 1
Page 2
Content deleted Content added
Update category link
 
 
Line 1: Line 1:
<includeonly>{{Infobox
<includeonly>{{Infobox
| bodystyle = width:25em
| bodystyle = width:25em
| titlestyle = font-size:150%;padding-bottom:0.25em
| title = {{If empty |{{{name|}}} |{{{shorttitle|}}} |{{PAGENAMEBASE}} }}
| title = {{If empty |{{{name|}}} |{{{shorttitle|}}} |{{PAGENAMEBASE}} }}
| subheader = '''{{#if:{{{longtitle|}}}|{{{longtitle}}}|{{#if:{{#property:P1476}}|{{#property:P1476}}}}}}'''
| subheaderstyle = font-size:105%;font-weight:bold
| subheader = {{#if:{{{longtitle|}}}|{{{longtitle}}}|{{#if:{{#property:P1476}}|{{#property:P1476}}}}}}


| image = [[File:Seal_of_the_President_of_the_United_States.svg|110px|alt=Seal of the President of the United States]]
| image = [[File:Seal_of_the_President_of_the_United_States.svg|110px|alt=Seal of the President of the United States]]


| image2 = {{#if:{{{depiction|}}}|[[File:{{{depiction}}}|frameless|upright=1.25|alt={{{depictionalt}}}]]}}
| image2 = {{#if:{{{depiction|}}}|[[File:{{{depiction}}}|frameless|upright=1.35|alt={{{depictionalt}}}]]}}
| caption2 = {{{depictioncaption}}}
| caption2 = {{{depictioncaption}}}
| alt2 = {{{depictionalt}}}
| alt2 = {{{depictionalt}}}
Line 20: Line 20:


| label1 = Other short titles
| label1 = Other short titles
| data1 = {{#if:{{{othershorttitles|}}}|{{{othershorttitles|}}}}}
| data1 = {{{othershorttitles}}}


| label2 = Type
| label2 = Type
| data2 = {{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
| data2 = {{#if:{{{type|}}}|{{#switch:{{lc:{{{type}}}}}
|executive order = [[Executive order (United States)|Executive order]]
|executive order = [[Executive Order]]
|memorandum = [[Presidential memorandum]]
|memorandum = [[Presidential memorandum]]
|proclamation = [[Presidential proclamation]]
|proclamation = [[Presidential proclamation]]
|directive = [[Presidential directive]]
|directive = [[Presidential directive]]
|determination = [[Presidential determination]]
|determination = [[Presidential Determination]]
|signing = [[Signing statement]]
|signing = [[Signing statement]]
|#default = <!-- This should be left blank, as the switch is contained in an 'if' function -->
|#default = <!-- This should be left blank, as the switch is contained in an 'if' function -->
Line 48: Line 48:
}}
}}


| header10 = {{#if:{{{documentnumber|}}}|''[[Federal Register]]'' details
| header10 = [[Federal Register]]
| label11 = Federal&nbsp;Register document&nbsp;number
|{{#if:{{{publicationdate|}}}|''[[Federal Register]]'' details
|{{#if:{{{documentcitation|}}}|''[[Federal Register]]'' details
|{{#if:{{#property:P1544}}|''[[Federal Register]]'' details
|{{#if:{{#property:P577}}|''[[Federal Register]]'' details
|{{#if:{{#property:P1031}}|''[[Federal Register]]'' details|}}
}}
}}
}}
}}
}}

| label11 = ''Federal&nbsp;Register'' document&nbsp;number
| data11 = {{#if:{{{documentnumber|}}}
| data11 = {{#if:{{{documentnumber|}}}
|{{URL|https://www.federalregister.gov/d/{{{documentnumber}}}|{{{documentnumber}}}}}
|{{URL|https://www.federalregister.gov/d/{{{documentnumber}}}|{{{documentnumber}}}}}
Line 83: Line 72:
| data21 = {{{summary|}}}
| data21 = {{{summary|}}}


}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox U.S. presidential document with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox U.S. presidential document]] with unknown parameter "_VALUE_"|ignoreblank=y| depiction | depictioncaption | depictionalt | documentcitation | documentcaption | documentimage | documentnumber | executiveorder | federalregister | longtitle | name | othershorttitles | publicationdate | shorttitle | signeddate | signedpresident | summary | type | }}<noinclude>{{Documentation}}
}}</includeonly>{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox U.S. Presidential Document with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox U.S. Presidential Document]] with unknown parameter "_VALUE_"|ignoreblank=y| depiction | depictioncaption | depictionalt | documentimage | documentcaption | documentnumber | executiveorder | federalregister | fullname | longtitle | name | othershorttitles | publicationdate | shorttitle | signeddate | signedpresident | summary | type | }}<noinclude>{{Documentation}}</noinclude>
</noinclude>