Template:Infobox NRHP: Difference between revisions

From WikiCigar
Jump to navigation Jump to search
m (1 revision imported)
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 5: Line 5:
|subheader = {{infobox|child=yes
|subheader = {{infobox|child=yes
|data1    = <includeonly><div style="width:100%; font-size:110%; font-weight:bold; background:{{Designation/color|NRHP}}; line-height:1.5">{{{name|{{PAGENAMEBASE}}}}}</div></includeonly>
|data1    = <includeonly><div style="width:100%; font-size:110%; font-weight:bold; background:{{Designation/color|NRHP}}; line-height:1.5">{{{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; background:{{#if:{{{delisted|}}}|&#35;ddd|{{Designation/color|NRHP}}}};">{{#if:{{{delisted|}}}|Formerly listed on the&nbsp;}}[[National Register of Historic Places|U.S. National Register of Historic Places]]</div>}}
|data2    =  
|data3    = {{#if:{{lc:{{{nrhp_type|}}}}}|{{#ifeq:{{lc:{{{nrhp_type}}}}}|nrhp||<div style="width:100%; text-align:center; line-height:1.4; background:{{Infobox NRHP/conv|color|{{lc:{{{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; background:{{Infobox NRHP/conv|color|{{lc:{{{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>}}}}
|data4    = {{#if:{{lc:{{{nrhp_type2|}}}}}|{{#ifeq:{{lc:{{{nrhp_type2}}}}}|nrhp||<div style="width:100%; text-align:center; line-height:1.5; background:{{Infobox NRHP/conv|color|{{lc:{{{nrhp_type2}}}}}}}">{{Infobox NRHP/conv|text|{{lc:{{{nrhp_type2}}}}}|{{#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>}}}}
|data4    = {{#if:{{lc:{{{nrhp_type2|}}}}}|{{#ifeq:{{lc:{{{nrhp_type2}}}}}|nrhp||<div style="width:100%; text-align:center; line-height:1.5; background:{{Infobox NRHP/conv|color|{{lc:{{{nrhp_type2}}}}}}}">{{Infobox NRHP/conv|text|{{lc:{{{nrhp_type2}}}}}|{{#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 19: Line 19:
|image2    = {{#if:{{{district_map|}}}
|image2    = {{#if:{{{district_map|}}}
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{district_map|}}}|size={{{map_width|}}}|sizedefault=frameless|upright=1.136|alt={{{map_alt|}}}}}
   |{{#invoke:InfoboxImage|InfoboxImage|image={{{district_map|}}}|size={{{map_width|}}}|sizedefault=frameless|upright=1.136|alt={{{map_alt|}}}}}
  |{{#if:{{both|{{{locmapin|}}}|{{{coordinates|}}}{{#switch:{{#property:P625}}|unknown value|=|#default=1}}}}|{{Location map|{{{locmapin|USA}}}|border=infobox|float=center|alt={{{map_alt|}}}|relief={{{locmap_relief|}}}|coordinates={{{coordinates|}}}|label={{{map_label|{{{locmap_label|}}}}}}|label_width={{{label_width|}}}|label_size={{{label_size|}}}|position={{{label_position|{{{locmap_label_position|}}}}}}|background={{{label_background|}}}|marksize=7|width={{{map_width|250}}}|caption={{{map_caption|}}}}}
  }}
    }}
  }}
|caption2  = {{#if:{{{district_map|}}}|{{{map_caption|}}}}}
|caption2  = {{#if:{{{district_map|}}}|{{{map_caption|}}}}}
|image3    = {{#invoke:Infobox mapframe|auto|mapframe-frame-width=250}}
|image3    = {{#invoke:Infobox mapframe|auto|mapframe-frame-width=250}}
Line 36: Line 34:


<!--- Coordinates --->
<!--- Coordinates --->
|label3  = {{#ifeq:{{{coord_display}}}|title||Coordinates}}
|label3  =  
|data3  = {{#if:{{{coordinates|}}}|{{#invoke:Coordinates|coordinsert|{{{coordinates|}}}|type:landmark|region:{{Country abbreviation|United States|{{Infobox NRHP/locmapin2region|{{{locmapin|}}}}}}}}}|}}
|data3  =  


|label4  = Area
|label4  = Area

Latest revision as of 09:05, 18 December 2022