Difference between revisions of "Template:Firm"

From DAS Wiki
Line 9: Line 9:
 
|firm_type=
 
|firm_type=
 
|founders=
 
|founders=
 +
|antecedents=
 +
|successors=
 
|architects=
 
|architects=
 
|location=
 
|location=
Line 19: Line 21:
 
</pre>
 
</pre>
 
Edit the page to see the template text.
 
Edit the page to see the template text.
{{#cargo_declare:_table=Firms|name=Page|logo=File|image=File|firm_type=List (;) of String|founders=List (;) of Page|architects=List (;) of Page|location=String|founded=start date|dissolved=end date|awards=List (;) of String|significant_projects=List (;) of Page|website=URL}}
+
{{#cargo_declare:_table=Firms
</noinclude><includeonly>__NOCACHE__{{#cargo_store:_table=Firms|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: 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;"
+
|name=Page
 +
|logo=File
 +
|image=File
 +
|firm_type=List (;) of String
 +
|founders=List (;) of Page
 +
|antecedents=List (;) of Page
 +
|successors=List (;) of Page
 +
|architects=List (;) of Page
 +
|location=String
 +
|founded=start date
 +
|dissolved=end date
 +
|awards=List (;) of String
 +
|significant_projects=List (;) of Page
 +
|website=URL}}
 +
</noinclude><includeonly>__NOCACHE__{{#cargo_store:_table=Firms|name={{{name|}}}|logo={{{logo|}}}|image={{{image|}}}|firm_type={{{firm_type|}}}|founders={{{founders|}}}|antecedents={{{antecedents|}}}|successors={{{successors|}}}|architects={{{architects|}}}|location={{{location|}}}|founded={{{founded|}}}|dissolved={{{dissolved|}}}|awards={{{awards|}}}|significant_projects={{{significant_projects|}}}|website={{{website|}}} }}{| 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 32: Line 48:
 
-->{{#if:{{{founders|}}}{{{architects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Personnel</th></tr>}}<!--
 
-->{{#if:{{{founders|}}}{{{architects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Personnel</th></tr>}}<!--
 
-->{{#if:{{{founders|}}}|<tr><th>Founders</th><td>{{#arraymap:{{{founders|}}}|,|x|[[x]]}}</td></tr>}}<!--
 
-->{{#if:{{{founders|}}}|<tr><th>Founders</th><td>{{#arraymap:{{{founders|}}}|,|x|[[x]]}}</td></tr>}}<!--
 +
-->{{#if:{{{antecedents|}}}|<tr><th>Antecedent Firms</th><td>{{#arraymap:{{{antecedents|}}}|,|x|[[x]]}}</td></tr>}}<!--
 +
-->{{#if:{{{successors|}}}|<tr><th>Successor Firms</th><td>{{#arraymap:{{{successorss|}}}|,|x|[[x]]}}</td></tr>}}<!--
 
-->{{#if:{{{architects|}}}|<tr><th>Key people</th><td>{{#arraymap:{{{architects|}}}|,|x|[[x]]}}</td></tr>}}<!--
 
-->{{#if:{{{architects|}}}|<tr><th>Key people</th><td>{{#arraymap:{{{architects|}}}|,|x|[[x]]}}</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>}}<!--

Revision as of 12:36, May 24, 2021

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

{{Firm
|name=
|logo=
|image=
|firm_type=
|founders=
|antecedents=
|successors=
|architects=
|location=
|founded=
|dissolved=
|awards=
|significant_projects=
|website=
}}

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