Difference between revisions of "Template:Arch"

From DAS Wiki
(Created page with "<noinclude> This is the "Arch" template. It should be called in the following format: <pre> {{Arch |portrait= |birth_date= |death_date= |spouse= }} </pre> Edit the page to see...")
 
 
(94 intermediate revisions by 2 users not shown)
Line 6: Line 6:
 
|portrait=
 
|portrait=
 
|birth_date=
 
|birth_date=
 +
|birth_approx=
 +
|birth_place=
 
|death_date=
 
|death_date=
 +
|death_approx=
 +
|death_place=
 +
|nationality=
 +
|alma_mater=
 +
|associated_firms=
 +
|burial_place=
 
|spouse=
 
|spouse=
 +
|signature=
 +
|awards=
 +
|significant_design=
 
}}
 
}}
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Arch|portrait=File|birth_date=Date|death_date=Date|spouse=Page}}
+
{{#cargo_declare:_table=Arch
</noinclude><includeonly>{{#cargo_store:_table=Arch|portrait={{{portrait|}}}|birth_date={{{birth_date|}}}|death_date={{{death_date|}}}|spouse={{{spouse|}}} }}{| style="width: 30em; 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;"
+
|portrait=File
 +
|birth_date=Date
 +
|birth_approx=Boolean
 +
|birth_place=string
 +
|death_date=Date
 +
|death_approx=Boolean
 +
|death_place=string
 +
|nationality=string
 +
|alma_mater=string
 +
|associated_firms=List (;) of Page
 +
|burial_place=string
 +
|spouse=string
 +
|signature=File
 +
|awards=string
 +
|significant_design=string
 +
}}
 +
</noinclude><includeonly>__NOCACHE__{{#default_form:Edit Architect}}{{#cargo_store:_table=Arch
 +
|portrait={{{portrait|}}}
 +
|birth_date={{{birth_date|}}}
 +
|birth_approx={{birth_approx|}}}
 +
|birth_place={{{birth_place|}}}
 +
|death_date={{{death_date|}}}
 +
|death_approx={{{death_approx|}}}
 +
|death_place={{{death_place|}}}
 +
|nationality={{{nationality|}}}
 +
|alma_mater={{{alma_mater|}}}
 +
|associated_firms={{{associated_firms|}}}
 +
|burial_place={{{burial_place|}}}
 +
|spouse={{{spouse|}}}
 +
|signature={{{signature|}}}
 +
|awards={{{awards|}}}
 +
|significant_design={{{significant_design|}}}
 +
}}
 +
{| class="infobox"
 
! 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>
 
|-
 
|-
! portrait
+
! style="text-align: center; margin-left: 1em;padding:3px;", colspan="2"|<span>{{#if:{{{portrait|}}}|[[File:{{{portrait|}}}|320px|frameless]]}}</span>
| {{#if:{{{portrait|}}}|[[File:{{{portrait|}}}]]}}
 
|-
 
! Birth Date
 
| {{{birth_date|}}}
 
|-
 
! Death Date
 
| {{{death_date|}}}
 
 
|-
 
|-
! Spouse
+
{{#if:{{{birth_date|}}}{{{death_date|}}}{{{associated_firms|}}}{{{nationality|}}}{{{spouse|}}}{{{signature|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">General Information</th></tr>}}<!--
| {{#if:{{{spouse|}}}|[[{{{spouse|}}}]]}}
+
-->{{#if:{{{birth_date|}}}|{{#if:{{{birth_place|}}}|<tr><th>Birth</th><td><div style="line-height:1.2em;";>{{yesno|{{{birth_approx|}}}|yes=Abt:&nbsp;}}{{{birth_date|}}}<br />{{{birth_place|}}}</div></td></tr>|<tr><th>Birth</th><td>{{yesno|{{{birth_approx|}}}|yes=Abt:&nbsp;}}{{{birth_date|}}}</td></tr>}}  }}<!--
 +
-->{{#if:{{{birth_date|}}}||{{#if:{{{birth_place|}}}|<tr><th>Birth</th><td>{{{birth_place|}}}</td></tr>}} }}<!--
 +
-->{{#if:{{{death_date|}}}|{{#if:{{{death_place|}}}|<tr><th>Death</th><td><div style="line-height:1.2em;";>{{yesno|{{{death_approx|}}}|yes=Abt:&nbsp;}}{{{death_date|}}}<br />{{{death_place|}}}</div></td></tr>|<tr><th>Death</th><td>{{yesno|{{{death_approx|}}}|yes=Abt:&nbsp;}}{{{death_date|}}}</td></tr>}}  }}<!--
 +
-->{{#if:{{{death_date|}}}||{{#if:{{{death_place|}}}|<tr><th>Death</th><td>{{{death_place|}}}</div></td></tr>}} }}<!--
 +
-->{{#if:{{{burial_place|}}}|<tr><th>Buried</th><td><div style="line-height:1.2em;";>{{{burial_place|}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{nationality|}}}|<tr><th>Nationality</th><td><div style="line-height:1.2em;";>{{{nationality|}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{alma_mater|}}}|<tr><th>Alma Mater</th><td><div style="line-height:1.2em;";>{{{alma_mater|}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{associated_firms|}}}|<tr><th>Firm(s)</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{associated_firms|}}}|;|x|{{#formredlink:target=x|form=Firm}}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{spouse|}}}|<tr><th>Spouse</th><td><div style="line-height:1.2em;";>{{{spouse|}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{signature|}}}|<tr><td style="text-align: center;", colspan="2">[[File:{{{signature|}}}|150px|frameless]]</td></tr>}}<!--
 +
-->{{#if:{{{awards|}}}{{{significant_design|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Professional Accomplishments</th></tr>}}<!--
 +
-->{{#if:{{{awards|}}}|<tr><th>Awards</th><td><div style="line-height:1.2em;";>{{{awards|}}}</div></td></tr>}}<!--
 +
-->{{#if:{{{significant_design|}}}|<tr><th>Significant Design</th><td><div style="line-height:1.2em;";>{{{significant_design|}}}</div></td></tr>}}
 
|}
 
|}
 +
 +
[[Category: Architects]]
 
</includeonly>
 
</includeonly>

Latest revision as of 09:34, July 18, 2021

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

{{Arch
|portrait=
|birth_date=
|birth_approx=
|birth_place=
|death_date=
|death_approx=
|death_place=
|nationality=
|alma_mater=
|associated_firms=
|burial_place=
|spouse=
|signature=
|awards=
|significant_design=
}}

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