Difference between revisions of "Template:Firm"

From DAS Wiki
 
Line 20: Line 20:
 
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=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}}
</noinclude><includeonly>{{#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;"
+
</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;"
 
! 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>
 
|-
 
|-
! name
+
{{#if:{{{logo|}}}{{{image|}}}{{{firm_type|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">General Information</th></tr>}}<!--
| {{#if:{{{name|}}}|[[{{{name|}}}]]}}
+
-->{{#if:{{{logo|}}}|<tr><td colspan="2">[[File:{{{logo|}}}</td></tr>}}<!--
|-
+
-->{{#if:{{{image|}}}|<tr><td colspan="2">[[File:{{{image|}}}</td></tr>}}<!--
! logo
+
-->{{#if:{{{location|}}}|<tr><th>Location</th><td>{{{location|}}}</td></tr>}}<!--
| {{#if:{{{logo|}}}|[[File:{{{logo|}}}]]}}
+
-->{{#if:{{{founded|}}}|<tr><th>Founded</th><td>{{{founded|}}}</td></tr>}}<!--
|-
+
-->{{#if:{{{dissolved|}}}|<tr><th>Dissolved</th><td>{{{dissolved|}}}</td></tr>}}<!--
! image
+
-->{{#if:{{{firm_type|}}}|<tr><th>Practice Area</th><td>{{#arraymap:{{{firm_type|}}}|,|x|[[x]]}}</td></tr>}}<!--
| {{#if:{{{image|}}}|[[File:{{{image|}}}]]}}
+
-->{{#if:{{{webiste|}}}|<tr><th>Website</th><td>{{{website|}}}</td></tr>}}<!--
|-
+
{{#if:{{{founders|}}}{{{architects|}}}|<tr><th style="text-align: center; background-color:#ededed; font-weight: bold;", colspan="2">Personnel</th></tr>}}<!--
! firm_type
+
-->{{#if:{{{founders|}}}|<tr><th>Founders</th><td>{{#arraymap:{{{founders|}}}|,|x|[[x]]}}</td></tr>}}<!--
| {{{firm_type|}}}
+
-->{{#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>}}<!--
! founders
+
-->{{#if:{{{awards|}}}|<tr><th>Awards</th><td>{{{awards|}}}</td></tr>}}<!--
| {{#arraymap:{{{founders|}}}|,|x|[[x]]}}
+
-->{{#if:{{{significant_projects|}}}|<tr><th>Significant Projects</th><td>{{#arraymap:{{{significant_projects|}}}|,|x|[[x]]}}</td></tr>}}<!--
 
 
|-
 
! architects
 
| {{#arraymap:{{{architects|}}}|,|x|[[x]]}}
 
 
 
|-
 
! location
 
| {{{location|}}}
 
|-
 
! founded
 
| {{{founded|}}}
 
|-
 
! dissolved
 
| {{{dissolved|}}}
 
|-
 
! awards
 
| {{{awards|}}}
 
|-
 
! significant_projects
 
| {{#arraymap:{{{significant_projects|}}}|,|x|[[x]]}}
 
 
 
|-
 
! website
 
| {{{website|}}}
 
 
|}
 
|}
  
 
[[Category:Firms]]
 
[[Category:Firms]]
 
</includeonly>
 
</includeonly>

Revision as of 14:08, May 22, 2021

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

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

Edit the page to see the template text. This template defines the table "Firm". This table has not been created yet.