Jump to content

Template:Infobox NRHP: Difference between revisions

From the Vrienden Universe, a fictional wiki
Add Era field to infobox template
Remove remaining unsupported template dependencies
 
Line 7: 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>}}}}

Latest revision as of 23:49, 26 September 2026