Template:Infobox NRHP: Difference between revisions
Template page
More actions
Fix conditional rows using HTML table tags (wikitext |- inside {{#if:}} does not work in MW) |
Wrap table in float div to fix text-wrap issue (Citizen skin overrides wikitable display:block) |
||
| Line 10: | Line 10: | ||
</pre> | </pre> | ||
[[Category:Infoboxes]] | [[Category:Infoboxes]] | ||
</noinclude><includeonly>< | </noinclude><includeonly><div style="float:right; clear:right; margin:0 0 1em 1em; width:280px;"> | ||
<table class="wikitable" style="width:100%; font-size:90%; margin:0;"> | |||
<tr><th colspan="2" style="background:#8B0000; color:white; text-align:center; font-size:110%;">{{{name|}}}</th></tr> | <tr><th colspan="2" style="background:#8B0000; color:white; text-align:center; font-size:110%;">{{{name|}}}</th></tr> | ||
{{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{image|}}}|270px|center]]</td></tr>}}{{#if:{{{caption|}}}|<tr><td colspan="2" style="text-align:center; font-size:85%; font-style:italic;">{{{caption|}}}</td></tr>}} | {{#if:{{{image|}}}|<tr><td colspan="2" style="text-align:center;">[[File:{{{image|}}}|270px|center]]</td></tr>}}{{#if:{{{caption|}}}|<tr><td colspan="2" style="text-align:center; font-size:85%; font-style:italic;">{{{caption|}}}</td></tr>}} | ||
| Line 25: | Line 26: | ||
<tr><td><b>Listed</b></td><td>{{{nrhp_date|}}}</td></tr> | <tr><td><b>Listed</b></td><td>{{{nrhp_date|}}}</td></tr> | ||
{{#if:{{{significance|}}}|<tr><td><b>Criteria</b></td><td>{{{significance|}}}</td></tr>}}{{#if:{{{period|}}}|<tr><td><b>Period</b></td><td>{{{period|}}}</td></tr>}} | {{#if:{{{significance|}}}|<tr><td><b>Criteria</b></td><td>{{{significance|}}}</td></tr>}}{{#if:{{{period|}}}|<tr><td><b>Period</b></td><td>{{{period|}}}</td></tr>}} | ||
</table></includeonly> | </table></div></includeonly> | ||
Revision as of 03:29, 4 April 2026
This template creates an infobox for properties listed on the National Register of Historic Places.
Usage
{{Infobox NRHP
|name=|image=|caption=|address=|city=|state=|zip=
|built=|architect=|builder=|style=|material=
|nrhp_ref=|nrhp_date=|significance=|period=|owner=|current_use=
}}