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> | ||
|- | |- | ||
− | + | {{#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|}}}|<tr><td colspan="2">[[File:{{{logo|}}}</td></tr>}}<!-- | |
− | |- | + | -->{{#if:{{{image|}}}|<tr><td colspan="2">[[File:{{{image|}}}</td></tr>}}<!-- |
− | ! | + | -->{{#if:{{{location|}}}|<tr><th>Location</th><td>{{{location|}}}</td></tr>}}<!-- |
− | + | -->{{#if:{{{founded|}}}|<tr><th>Founded</th><td>{{{founded|}}}</td></tr>}}<!-- | |
− | + | -->{{#if:{{{dissolved|}}}|<tr><th>Dissolved</th><td>{{{dissolved|}}}</td></tr>}}<!-- | |
− | + | -->{{#if:{{{firm_type|}}}|<tr><th>Practice Area</th><td>{{#arraymap:{{{firm_type|}}}|,|x|[[x]]}}</td></tr>}}<!-- | |
− | + | -->{{#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>}}<!-- |
− | ! | + | -->{{#if:{{{founders|}}}|<tr><th>Founders</th><td>{{#arraymap:{{{founders|}}}|,|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|}}}|<tr><th>Awards</th><td>{{{awards|}}}</td></tr>}}<!-- | |
− | | {{#arraymap:{{{ | + | -->{{#if:{{{significant_projects|}}}|<tr><th>Significant Projects</th><td>{{#arraymap:{{{significant_projects|}}}|,|x|[[x]]}}</td></tr>}}<!-- |
− | |||
− | |- | ||
− | ! | ||
− | | {{#arraymap:{{{ | ||
− | |||
− | | | ||
− | |||
− | | {{{ | ||
− | |- | ||
− | |||
− | | {{{ | ||
− | |- | ||
− | ! | ||
− | |||
− | |||
− | |||
− | | {{{awards|}}} | ||
− | |||
− | |||
− | | {{#arraymap:{{{significant_projects|}}}|,|x|[[x]]}} | ||
− | |||
− | |||
− | |||
− | |||
|} | |} | ||
[[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.