Template:Character Page/Gallery: Difference between revisions
From A3! Wiki
m cargo_query: Add field alias and update string literal quotes, in preparation for Cargo extension upgrade |
|||
(4 intermediate revisions by one other user not shown) | |||
Line 3: | Line 3: | ||
==Blog Images== | ==Blog Images== | ||
<div class="flex-container" style="column-gap: 20px; justify-content: center;"> | |||
{{#cargo_query:tables=Blog_List | {{#cargo_query:tables=Blog_List | ||
|fields=CONCAT('<div style="max-width:300px; text-align: center;">[[File:',image,'.png]]<br />[[',IF(Blog_List.number < 56, 'MANKAI Company Blog Archives', 'Troupe Member Blog'),'#Blog-',Blog_List.number,'|',Blog_List.startdate,' (',Blog_List.chara,')]]</div>') | |fields=CONCAT('<div style="max-width:300px; text-align: center;">[[File:',image,'.png]]<br />[[',IF(Blog_List.number < 56, 'MANKAI Company Blog Archives', 'Troupe Member Blog'),'#Blog-',Blog_List.number,'|',Blog_List.startdate,' (',Blog_List.chara,')]]</div>')=ImageMarkup | ||
|where=image_charas HOLDS '{{Character to Troupe|characterfirst2={{BASEPAGENAME}}}}' | |where=image_charas HOLDS '{{Character to Troupe|characterfirst2={{BASEPAGENAME}}}}' | ||
|delimiter= | |delimiter= | ||
}} | }} | ||
</div> | |||
==Cards== | ==Cards== | ||
{{Gallery Tabs}} | {{Gallery Tabs}} | ||
Line 17: | Line 18: | ||
{{#cargo_query:tables=_pageData | {{#cargo_query:tables=_pageData | ||
|fields=_pageName | |fields=_pageName | ||
|where=_pagename LIKE CONCAT('File:','{{Character to Troupe|characterfirst2={{PAGENAME}}}}','%') AND _pagename LIKE | |where=_pagename LIKE CONCAT('File:','{{Character to Troupe|characterfirst2={{PAGENAME}}}}','%') AND _pagename LIKE '%Chibi%' | ||
|format=gallery | |format=gallery | ||
|mode=nolines | |mode=nolines |