Jump to content

Template:Infobox NRHP: Difference between revisions

From the Vrienden Universe, a fictional wiki
Add dark mode infobox styles
Remove remaining unsupported template dependencies
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<templatestyles src="Template:Infobox NRHP/styles.css" />
<templatestyles src="Template:Infobox NRHP/styles.css" />
<includeonly>{{#ifeq:{{{embed|}}}|yes||{{main other|{{short description|United States historic place|noreplace}}}}}}</includeonly>{{Infobox
<includeonly>{{#ifeq:{{{embed|}}}|yes||{{main other|{{short description|United States historic place|noreplace}}}}}}</includeonly>{{Infobox
|child={{#ifeq:{{{embed|}}}|yes|yes}}
|child={{#ifeq:{{{embed|}}}|yes|yes}}
Line 8: Line 7:
|data1    = <includeonly><div class="skin-nightmode-reset-color" style="width:100%; font-size:110%; font-weight:bold;color: var(--color-base); background:{{#invoke:Designation|color|nrhp}}; line-height:1.5">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div></includeonly>
|data1    = <includeonly><div class="skin-nightmode-reset-color" style="width:100%; font-size:110%; font-weight:bold;color: var(--color-base); background:{{#invoke:Designation|color|nrhp}}; line-height:1.5">{{if empty|{{{name|}}}|{{PAGENAMEBASE}}}}</div></includeonly>


|data2    = {{#ifeq:{{#invoke:String|find|source={{{refnum|}}}|target=^%s*(%d%d%d%d%d%d%d%d)|plain=false}}|0|{{#if:{{#switch:{{lc:{{{nrhp_type|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type2|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type3|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type4|}}}}}|cp|nhldcp=a}}||{{cat handler|main=[[Category:NRHP infobox needing cleanup]]}}}}|<div style="width:100%; text-align:center; line-height:1.5;color: var(--color-base); background:{{#if:{{{delisted|}}}|&#35;ddd|{{#invoke:Designation|color|nrhp}}}};">{{#if:{{{delisted|}}}|Formerly listed on the&nbsp;}}[[National Register of Historic Places|U.S. National Register of Historic Places]]</div>}}
|data2    = {{#ifeq:{{#invoke:String|find|source={{{refnum|}}}|target=^%s*(%d%d%d%d%d%d%d%d)|plain=false}}|0|{{#if:{{#switch:{{lc:{{{nrhp_type|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type2|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type3|}}}}}|cp|nhldcp=a}}{{#switch:{{lc:{{{nrhp_type4|}}}}}|cp|nhldcp=a}}||{{main other|[[Category:NRHP infobox needing cleanup]]}}}}|<div style="width:100%; text-align:center; line-height:1.5;color: var(--color-base); background:{{#if:{{{delisted|}}}|&#35;ddd|{{#invoke:Designation|color|nrhp}}}};">{{#if:{{{delisted|}}}|Formerly listed on the&nbsp;}}[[National Register of Historic Places|U.S. National Register of Historic Places]]</div>}}


|data3    = {{#if:{{lc:{{{nrhp_type|}}}}}|{{#ifeq:{{lc:{{{nrhp_type}}}}}|nrhp||<div style="width:100%; text-align:center; line-height:1.4; color: var(--color-base); background:{{#invoke:Designation|color|{{{nrhp_type}}}}}">{{Infobox NRHP/conv|text|{{lc:{{{nrhp_type}}}}}|{{#if:{{{nocat|}}}|nocat|{{#if:{{{locmapin|}}}|{{#switch:{{{locmapin}}}|New York|New York#USA=New York (state)|USA Georgia=Georgia (U.S. state)|USA Washington|Washington=Washington (state)|District of Columbia|USA District of Columbia|Washington DC|Washington, DC|United States Washington, D.C.=Washington, D.C.|US Virgin Islands=the United States Virgin Islands|USA=the United States|{{{locmapin}}}}}|the United States}}}}}}</div>}}}}
|data3    = {{#if:{{lc:{{{nrhp_type|}}}}}|{{#ifeq:{{lc:{{{nrhp_type}}}}}|nrhp||<div style="width:100%; text-align:center; line-height:1.4; color: var(--color-base); background:{{#invoke:Designation|color|{{{nrhp_type}}}}}">{{Infobox NRHP/conv|text|{{lc:{{{nrhp_type}}}}}|{{#if:{{{nocat|}}}|nocat|{{#if:{{{locmapin|}}}|{{#switch:{{{locmapin}}}|New York|New York#USA=New York (state)|USA Georgia=Georgia (U.S. state)|USA Washington|Washington=Washington (state)|District of Columbia|USA District of Columbia|Washington DC|Washington, DC|United States Washington, D.C.=Washington, D.C.|US Virgin Islands=the United States Virgin Islands|USA=the United States|{{{locmapin}}}}}|the United States}}}}}}</div>}}}}
Line 151: Line 150:
|header52 = _BLANK_
|header52 = _BLANK_
|data53  = {{if empty|{{{embedded|}}}|{{{module|}}}}}
|data53  = {{if empty|{{{embedded|}}}|{{{module|}}}}}
}}<!--End of infobox-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox NRHP with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox NRHP]] with unknown parameter "_VALUE_"|ignoreblank=y|mapframe_args=y| added | alt | architect | architecture | area | borderless | builder | built | caption | coord_display | coordinates | customarchitect | customarchitect_title | decrease | decrease_refnum | decrease1 | decrease1_refnum | decrease2 | decrease2_refnum | decrease3 | decrease3_refnum | decrease4 | decrease4_refnum | delisted | delisted_nrhp_type | delisted_nrhp_type2 | delisted_nrhp_type3 | delisted_nrhp_type4 | delisted_other1_date | delisted_other2_date | delisted_other3_date | demolished | designated_nrhp_type | designated_nrhp_type2 | designated_nrhp_type3 | designated_nrhp_type4 | designated_other1 | designated_other1_abbr | designated_other1_color | designated_other1_date | designated_other1_link | designated_other1_name | designated_other1_num_position | designated_other1_number | designated_other1_textcolor | designated_other2 | designated_other2_abbr | designated_other2_color | designated_other2_date | designated_other2_link | designated_other2_name | designated_other2_num_position | designated_other2_number | designated_other2_textcolor | designated_other3 | designated_other3_abbr | designated_other3_color | designated_other3_date | designated_other3_link | designated_other3_name | designated_other3_num_position | designated_other3_number | designated_other3_textcolor | district_map | embed | embedded | engineer | image | image_size | increase | increase_refnum | increase1 | increase1_refnum | increase2 | increase2_refnum | increase3 | increase3_refnum | increase4 | increase4_refnum | label_background | label_position | label_size | label_width | location | locmap_label | locmap_label_position | locmap_relief | locmapin | map_alt | map_caption | map_label | map_width | module | mpsub | name | nearest_city | nocat | nrhp_type | nrhp_type2 | nrhp_type3 | nrhp_type4 | partof | partof_refnum | partof2 | partof2_refnum | partof3 | partof2_refnum | refnum | restored | restored_by | sigdate | sigdate_label | sigdate1 | sigdate1_label | sigdate2 | sigdate2_label | sigdate3 | sigdate3_label | visitation_num | visitation_ref | visitation_year | website }}<!--
 
| label54 = Era
| data54  = {{{era|}}}
}}<!--End of infobox-->{{#invoke:Check for unknown parameters|check|unknown={{main other|[[Category:Pages using infobox NRHP with unknown parameters|_VALUE_{{PAGENAME}}]]}}|preview=Page using [[Template:Infobox NRHP]] with unknown parameter "_VALUE_"|ignoreblank=y|mapframe_args=y| added | alt | architect | architecture | area | borderless | builder | built | caption | coord_display | coordinates | customarchitect | customarchitect_title | decrease | decrease_refnum | decrease1 | decrease1_refnum | decrease2 | decrease2_refnum | decrease3 | decrease3_refnum | decrease4 | decrease4_refnum | delisted | delisted_nrhp_type | delisted_nrhp_type2 | delisted_nrhp_type3 | delisted_nrhp_type4 | delisted_other1_date | delisted_other2_date | delisted_other3_date | demolished | designated_nrhp_type | designated_nrhp_type2 | designated_nrhp_type3 | designated_nrhp_type4 | designated_other1 | designated_other1_abbr | designated_other1_color | designated_other1_date | designated_other1_link | designated_other1_name | designated_other1_num_position | designated_other1_number | designated_other1_textcolor | designated_other2 | designated_other2_abbr | designated_other2_color | designated_other2_date | designated_other2_link | designated_other2_name | designated_other2_num_position | designated_other2_number | designated_other2_textcolor | designated_other3 | designated_other3_abbr | designated_other3_color | designated_other3_date | designated_other3_link | designated_other3_name | designated_other3_num_position | designated_other3_number | designated_other3_textcolor | district_map | embed | embedded | engineer | image | image_size | increase | increase_refnum | increase1 | increase1_refnum | increase2 | increase2_refnum | increase3 | increase3_refnum | increase4 | increase4_refnum | label_background | label_position | label_size | label_width | location | locmap_label | locmap_label_position | locmap_relief | locmapin | map_alt | map_caption | map_label | map_width | module | mpsub | name | nearest_city | nocat | nrhp_type | nrhp_type2 | nrhp_type3 | nrhp_type4 | partof | partof_refnum | partof2 | partof2_refnum | partof3 | partof2_refnum | refnum | restored | restored_by | sigdate | sigdate_label | sigdate1 | sigdate1_label | sigdate2 | sigdate2_label | sigdate3 | sigdate3_label | visitation_num | visitation_ref | visitation_year | website  
| era
}}<!--
-->{{Main other|{{#if:{{{nocat|}}}|[[Category:NRHP infobox with nocat]]}}}}{{#invoke:Check for conflicting parameters|check
-->{{Main other|{{#if:{{{nocat|}}}|[[Category:NRHP infobox with nocat]]}}}}{{#invoke:Check for conflicting parameters|check
| template = [[Template:Infobox NRHP]]
| template = [[Template:Infobox NRHP]]

Latest revision as of 23:49, 26 September 2026