Difference between revisions of "Template:Facility info card"

From Dragalia Lost Wiki
Jump to navigation Jump to search
imported>Elaeagnifolia
>Mornsta-gpuser
m
Line 3: Line 3:
 
<div class="panel-body" style="display:flex;flex-wrap:wrap;">
 
<div class="panel-body" style="display:flex;flex-wrap:wrap;">
  
<div>[[File:{{#cargo_query:tables=Facilities|fields=CONCAT('TW02_', Id, '_IMG_01_01')|where=Name="{{{1|}}}"|no html|default=Unknown|group by=_pageName}}.png|150px|link={{{1|}}}]]
+
<div>[[File:{{#cargo_query:tables=Facilities|fields=CONCAT('TW02_', Id, '_IMG_01_01')|where=Name="{{{1|}}}"|no html|default=Unknown|group by=_pageName|limit=1|more results text=}}.png|150px|link={{{1|}}}]]
 
</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 1em 10px;font-style:italic;font-size:.9em;">{{#cargo_query:tables=Facilities|fields=Description|where=Name="{{{1|}}}"|default=?}}</div>
+
<div style="width:300px;margin:5px 1em 10px;font-style:italic;font-size:.9em;">{{#cargo_query:tables=Facilities|fields=Description|where=Name="{{{1|}}}"|default=?|limit=1|more results text=
 +
}}</div>
 
</div>
 
</div>
 
<div style="margin-top:1em;">
 
<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|}}}"|no html|default=?|limit=1|more results text=
 +
}}}}
 
</div>
 
</div>
 
</div>
 
</div>

Revision as of 12:22, 16 November 2018

50px Documentation
[[File:
Error: Table Facilities not found.
.png|150px|link=Sweet Retreat]]

Description

Error: Table Facilities not found.
Size
Error: Table Facilities not found.