Difference between revisions of "Template:Facility info card"
Jump to navigation
Jump to search
imported>Elaeagnifolia (Created page with "<noinclude>{{doc}}Category:Templates</noinclude><includeonly><div class="panel" style="display:inline-block"> <div class="panel-heading">[[{{{1|}}}]]</div> <div class="pan...") |
>Caledor92 |
||
| (224 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
| − | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div class="panel" style="display:inline-block"> | + | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div class="panel" style="display:inline-block; padding-bottom:1em;"> |
| − | <div class="panel-heading">[[{{{1|}}}]]</div> | + | <div class="panel-heading">[[{{{1|{{{Name|}}}}}}]]</div> |
| − | <div class="panel-body" style="display:flex;flex-wrap:wrap;"> | + | <div class="panel-body" style="display:flex;flex-wrap:wrap;justify-content:center;"> |
| − | <div>[[File:{{#cargo_query:tables=Facilities|fields=CONCAT('TW02_', Id, '_IMG_01_01')|where=Name="{{{1|}}}"|no html|default=Unknown}}.png| | + | <div>{{#ifexist:File:{{#cargo_query:tables=Facilities|fields=CONCAT('TW02_', Id, '_IMG_01_01')|where=Name="{{{1|{{{Name|}}}}}}"|no html|default=Unknown|group by=_pageName|limit=1|more results text=}}.png|[[File:{{#cargo_query:tables=Facilities|fields=CONCAT('TW02_', Id, '_IMG_01_01')|where=Name="{{{1|{{{Name|}}}}}}"|no html|default=Unknown|group by=_pageName|limit=1|more results text=}}.png|150px|link={{{1|{{{Name|}}}}}}]]|[[File:Unknown.png|150px|link={{{1|{{{Name|}}}}}}]]}} |
</div> | </div> | ||
| Line 9: | Line 9: | ||
<p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p> | <p style="width:300px;margin:15px auto;border-bottom:1px solid;margin-bottom:15px;font-size:1.2em;font-variant-caps: small-caps;font-weight:bold">Description</p> | ||
<div style="flex-grow:1;text-align:center"> | <div style="flex-grow:1;text-align:center"> | ||
| − | <div style="width:300px;margin:5px | + | <div style="width:300px;margin:5px 1em 10px;font-style:italic;font-size:.9em;">{{#cargo_query:tables=Facilities|fields=Description|where=Name="{{{1|{{{Name|}}}}}}"|default=|limit=1|more results text= |
| + | }}</div> | ||
</div> | </div> | ||
| − | <div> | + | <div style="margin-top:1em;"> |
| − | {{TermDescription|Size|{{#cargo_query:tables=Facilities|fields=Size|where=Name="{{{1|}}}"|no html|default= | + | {{TermDescription|Size|{{#cargo_query:tables=Facilities|fields=Size|where=Name="{{{1|{{{Name|}}}}}}"|no html|default=|limit=1|more results text= |
| + | }}}} | ||
| + | {{TermDescription|Obtained From|{{#cargo_query:tables=Facilities|where=Name="{{{1|{{{Name|}}}}}}"|fields=Obtain|default=|group by=_pageName}}}} | ||
</div> | </div> | ||
</div> | </div> | ||
| − | |||
</div> | </div> | ||
</div></includeonly> | </div></includeonly> | ||