Difference between revisions of "Template:Facility info card"
Jump to navigation
Jump to search
>Mornsta-gpuser |
>Caledor92 |
||
| (26 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div class="panel" style="display:inline-block; padding-bottom:1em;"> | <noinclude>{{doc}}[[Category:Templates]]</noinclude><includeonly><div class="panel" style="display:inline-block; padding-bottom:1em;"> | ||
<div class="panel-heading">[[{{{1|{{{Name|}}}}}}]]</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|{{{Name|}}}}}}"|no html|default=Unknown|group by=_pageName|limit=1|more results text=}}.png|150px|link={{{1|{{{Name|}}}}}}]] | + | <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 15: | Line 15: | ||
{{TermDescription|Size|{{#cargo_query:tables=Facilities|fields=Size|where=Name="{{{1|{{{Name|}}}}}}"|no html|default=|limit=1|more results text= | {{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> | ||