Difference between revisions of "Template:Firm"

From DAS Wiki
 
(33 intermediate revisions by the same user not shown)
Line 4: Line 4:
 
<pre>
 
<pre>
 
{{Firm
 
{{Firm
|name=
 
 
|logo=
 
|logo=
 
|image=
 
|image=
 
|firm_type=
 
|firm_type=
 
|founders=
 
|founders=
|architects=
+
|antecedents=
 +
|successors=
 +
|personnel=
 
|location=
 
|location=
 
|founded=
 
|founded=
 +
|founded_approx=
 
|dissolved=
 
|dissolved=
 +
|dissolved_approx=
 
|awards=
 
|awards=
 
|significant_projects=
 
|significant_projects=
Line 19: Line 22:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Firm|name=Page|logo=File|image=File|firm_type=List (,) of String|founders=List (,) of Page|architects=List (,) of Page|location=String|founded=Date|dissolved=Date|awards=List (,) of String|significant_projects=List (,) of Page|website=URL}}
+
{{#cargo_declare:_table=Firms
</noinclude><includeonly>__NOCACHE__{{#cargo_store:_table=Firm|name={{{name|}}}|logo={{{logo|}}}|image={{{image|}}}|firm_type={{{firm_type|}}}|founders={{{founders|}}}|architects={{{architects|}}}|location={{{location|}}}|founded={{{founded|}}}|dissolved={{{dissolved|}}}|awards={{{awards|}}}|significant_projects={{{significant_projects|}}}|website={{{website|}}} }}{| 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;"
+
|logo=File
! style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
+
|image=File
 +
|firm_type=List (;) of String
 +
|founders=List (;) of Page
 +
|antecedents=List (;) of Page
 +
|successors=List (;) of Page
 +
|personnel=List (;) of Page
 +
|location=String
 +
|founded=start date
 +
|founded_approx=Boolean
 +
|dissolved=end date
 +
|dissolved_approx=Boolean
 +
|awards=List (;) of String
 +
|significant_projects=List (;) of Page
 +
|website=URL}}
 +
</noinclude><includeonly>__NOCACHE__{{#default_form:Edit Firm}}{{#cargo_store:_table=Firms
 +
|logo={{{logo|}}}
 +
|image={{{image|}}}
 +
|firm_type={{{firm_type|}}}
 +
|founders={{{founders|}}}
 +
|antecedents={{{antecedents|}}}
 +
|successors={{{successors|}}}
 +
|personnel={{{personnel|}}}
 +
|location={{{location|}}}
 +
|founded={{{founded|}}}
 +
|founded_approx={{{founded_approx|}}}
 +
|dissolved={{{dissolved|}}}
 +
|dissolved_approx={{{dissolved_approx|}}}
 +
|awards={{{awards|}}}
 +
|significant_projects={{{significant_projects|}}}
 +
|website={{{website|}}}
 +
}}
 +
{| class="infobox"
 +
!style="text-align: center; background-color:#ccccff;" colspan="2" |<span style="font-size: larger;">{{PAGENAME}}</span>
 +
|-
 +
!style="text-align: center; margin-left: 0.5em;padding:3px;", colspan="2"|<span>{{#if:{{{image|}}}|[[File:{{{image|}}}|320px|frameless]]}}</span>
 
|-
 
|-
{{#if:{{{logo|}}}{{{image|}}}{{{firm_type|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">General Information</th></tr>}}<!--
+
{{#if:{{{logo|}}}{{{location|}}}{{{founded|}}}{{{dissolved|}}}{{{firm_type|}}}{{{website|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">General Information</th></tr>}}<!--
-->{{#if:{{{logo|}}}|<tr><td colspan="2">[[File:{{{logo|}}}]]</td></tr>}}<!--
+
-->{{#if:{{{logo|}}}|<tr><td colspan="2"><span>[[File:{{{logo|}}}|320px|frameless]]</span></td></tr>}}<!--
-->{{#if:{{{image|}}}|<tr><td colspan="2">[[File:{{{image|}}}]]</td></tr>}}<!--
+
-->{{#if:{{{location|}}}|<tr><th>Location</th><td><div style="line-height:1.2em;";>{{{location|}}}</div></td></tr>}}<!--
-->{{#if:{{{location|}}}|<tr><th>Location</th><td>{{{location|}}}</td></tr>}}<!--
+
-->{{#if:{{{founded|}}}{{{dissolved|}}}|<tr><th>Timespan</th><td>{{yesno|{{{founded_approx|}}}|yes=Abt:&nbsp;}}{{{founded|}}}-{{yesno|{{{dissolved_approx|}}}|yes=Abt:&nbsp;}}{{{dissolved|}}}</td></tr>}}<!--
-->{{#if:{{{founded|}}}|<tr><th>Founded</th><td>{{{founded|}}}</td></tr>}}<!--
+
-->{{#if:{{{firm_type|}}}|<tr><th>Practice Type</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{firm_type|}}}|,|x|x}}</div></td></tr>}}<!--
-->{{#if:{{{dissolved|}}}|<tr><th>Dissolved</th><td>{{{dissolved|}}}</td></tr>}}<!--
+
-->{{#if:{{{website|}}}|<tr><th>Website</th><td><div style="line-height:1.2em;";>{{{website|}}}</div></td></tr>}}<!--
-->{{#if:{{{firm_type|}}}|<tr><th>Practice Area</th><td>{{#arraymap:{{{firm_type|}}}|,|x|[[x]]}}</td></tr>}}<!--
+
-->{{#if:{{{founders|}}}{{{personnel|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Personnel</th></tr>}}<!--
-->{{#if:{{{webiste|}}}|<tr><th>Website</th><td>{{{website|}}}</td></tr>}}<!--
+
-->{{#if:{{{founders|}}}|<tr><th>Founders</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{founders|}}}|;|x|{{#formredlink:target=x|form=New Architect}}}}</div></td></tr>}}<!--
{{#if:{{{founders|}}}{{{architects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Personnel</th></tr>}}<!--
+
-->{{#if:{{{antecedents|}}}|<tr><th>Antecedent Firm(s)</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{antecedents|}}}|;|x|{{#formredlink:target=x|form=Firm}}}}</div></td></tr>}}<!--
-->{{#if:{{{founders|}}}|<tr><th>Founders</th><td>{{#arraymap:{{{founders|}}}|,|x|[[x]]}}</td></tr>}}<!--
+
-->{{#if:{{{successors|}}}|<tr><th>Successor Firm(s)</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{successors|}}}|;|x|{{#formredlink:target=x|form=Firm}}}}</div></td></tr>}}<!--
-->{{#if:{{{architects|}}}|<tr><th>Key people</th><td>{{#arraymap:{{{architects|}}}|,|x|[[x]]}}</td></tr>}}<!--
+
-->{{#if:{{{personnel|}}}|<tr><th>Key people</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{personnel|}}}|;|x|{{#formredlink:target=x|form=New Architect}}}}</div></td></tr>}}<!--
{{#if:{{{awards|}}}{{{significant_projects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Achievements</th></tr>}}<!--
+
-->{{#if:{{{awards|}}}{{{significant_projects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Achievements</th></tr>}}<!--
-->{{#if:{{{awards|}}}|<tr><th>Awards</th><td>{{{awards|}}}</td></tr>}}<!--
+
-->{{#if:{{{awards|}}}|<tr><th>Awards</th><td><div style="line-height:1.2em;";>{{{awards|}}}</div></td></tr>}}<!--
-->{{#if:{{{significant_projects|}}}|<tr><th>Significant Projects</th><td>{{#arraymap:{{{significant_projects|}}}|,|x|[[x]]}}</td></tr>}}
+
-->{{#if:{{{significant_projects|}}}|<tr><th>Significant Projects</th><td><div style="line-height:1.2em;";>{{#arraymap:{{{significant_projects|}}}|;|x|[[x]]}}</div></td></tr>}}
 
|}
 
|}
  
 
[[Category:Firms]]
 
[[Category:Firms]]
 
</includeonly>
 
</includeonly>

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

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

{{Firm
|logo=
|image=
|firm_type=
|founders=
|antecedents=
|successors=
|personnel=
|location=
|founded=
|founded_approx=
|dissolved=
|dissolved_approx=
|awards=
|significant_projects=
|website=
}}

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