Difference between revisions of "Template:Grounds"

From DAS Wiki
Line 24: Line 24:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Grounds|name=Page|alt_name=String|image=File|address=String|Geo=String|founder=List (;) of String|owner=String|builder=List (;) of String|acreage=Float|elevation=Float|founded=Date|opened=Date|type=List (;) of String|NRHP_ID=String|HRHP_url=URL}}
+
{{#cargo_declare:_table=Grounds|name=Page|alt_name=String|image=File|address=String|Geo=String|founder=List (;) of String|owner=String|builder=List (;) of String|landscape_architect=Page|other_designers=List (;) of Page|acreage=Float|elevation=Float|founded=Date|opened=Date|type=List (;) of String|NRHP_ID=String|HRHP_url=URL}}
 
</noinclude><includeonly>__NOCACHE__{{#default_form:Grounds}}{{#cargo_store:_table=Grounds|name={{{name|}}}|alt_name={{{alt_name|}}}|image={{{image|}}}|Geo={{{Geo|}}}|founder={{{founder|}}}|owner={{{owner|}}}|builder={{{builder|}}}|acreage={{{acreage|}}}|elevation={{{elevation|}}}|founded={{{founded|}}}|opened={{{opened|}}}|type={{{type|}}}|NRHP_ID={{{NRHP_ID|}}}|NRHP_url={{{NRHP_url|}}} }}{|style="width: 24em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
</noinclude><includeonly>__NOCACHE__{{#default_form:Grounds}}{{#cargo_store:_table=Grounds|name={{{name|}}}|alt_name={{{alt_name|}}}|image={{{image|}}}|Geo={{{Geo|}}}|founder={{{founder|}}}|owner={{{owner|}}}|builder={{{builder|}}}|acreage={{{acreage|}}}|elevation={{{elevation|}}}|founded={{{founded|}}}|opened={{{opened|}}}|type={{{type|}}}|NRHP_ID={{{NRHP_ID|}}}|NRHP_url={{{NRHP_url|}}} }}{|style="width: 24em; font-size: 90%; border: 1px solid #aaaaaa; background-color: #f9f9f9; color: black; margin-bottom: 0.5em; margin-left: 1em; padding: 0.2em; float: right; clear: right; text-align:left;"
 
!style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 
!style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
Line 42: Line 42:
 
-->{{#if:{{{owner|}}}|<tr><th>Owner</th><td>{{{owner|}}}</td></tr>}}<!--
 
-->{{#if:{{{owner|}}}|<tr><th>Owner</th><td>{{{owner|}}}</td></tr>}}<!--
 
-->{{#if:{{{landscape_architect|}}}|<tr><th>Landscape Architect</th><td>[[{{{landscape_architect|}}}]]</td></tr>}}<!--
 
-->{{#if:{{{landscape_architect|}}}|<tr><th>Landscape Architect</th><td>[[{{{landscape_architect|}}}]]</td></tr>}}<!--
-->{{#if:{{{other_designers|}}}|<tr><th>Other designers</th><td>[[{{{other_designers|}}}]]</td></tr>}}<!--
+
-->{{#if:{{{other_designers|}}}|<tr><th>Other designers</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{other_designers|}}}|;|x|[[x]]}}</div></td></tr>}}<!--
 
-->{{#if:{{{builder|}}}|<tr><th>Builder</th><td>{{{builder|}}}</td></tr>}}<!--
 
-->{{#if:{{{builder|}}}|<tr><th>Builder</th><td>{{{builder|}}}</td></tr>}}<!--
 
-->{{#if:{{{founded|}}}{{{opened|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Dates</th></tr>}}<!--
 
-->{{#if:{{{founded|}}}{{{opened|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Dates</th></tr>}}<!--

Revision as of 13:37, June 15, 2021

This is the "Grounds" template. It should be called in the following format:

{{Grounds
|name=
|alt_name=
|image=
|address=
|Geo=
|founder=
|owner=
|landscape_architect=
|other_designers=
|builder=
|acreage=
|elevation=
|founded=
|opened=
|type=
|NRHP_ID=
|NRHP_url=
}}

Edit the page to see the template text. This template defines the table "Grounds". View table.