Template:Gallery table: Difference between revisions
Content added Content deleted
No edit summary Tag: Manual revert |
No edit summary |
||
Line 1: | Line 1: | ||
{{# |
{{#switch:{{{type|}}} |
||
| cg = {{Gallery table/CG}} |
|||
<h2>CG Art</h2> |
|||
| official = {{Gallery table/Official Art}} |
|||
| default = |
|||
{{#cargo_query: |
{{#cargo_query: |
||
table = GalleryFiles |
table = GalleryFiles |
||
| fields = _pageName, Caption |
| fields = _pageName, Caption |
||
| where = |
| where = GalleryFiles.Features HOLDS '{{ROOTPAGENAME}}' |
||
| format = gallery |
| format = gallery |
||
| show bytes = 0 |
| show bytes = 0 |
||
Line 11: | Line 13: | ||
| caption field = Caption |
| caption field = Caption |
||
}} |
}} |
||
⚫ | |||
| |
|||
{{#ifeq:{{{type|}}}|official|<h2>Official Art</h2> |
|||
{{#switch:{{{1|}}} |
|||
| cg = {{Gallery table/CG}} |
|||
| official = {{Gallery table/Official Art}} |
|||
| default = |
|||
{{#cargo_query: |
{{#cargo_query: |
||
table = GalleryFiles |
|||
| fields = _pageName, Caption, Type |
|||
| where = Type="official" AND Features HOLDS '{{ROOTPAGENAME}}' |
|||
| format = gallery |
|||
| show bytes = 0 |
|||
| show dimensions = 0 |
|||
| show filename = 0 |
|||
| caption field = Caption |
|||
⚫ | |||
|{{#cargo_query: |
|||
table = GalleryFiles |
table = GalleryFiles |
||
| fields = _pageName, Caption |
| fields = _pageName, Caption |
||
Line 32: | Line 28: | ||
| show filename = 0 |
| show filename = 0 |
||
| caption field = Caption |
| caption field = Caption |
||
}} |
|||
}} |
Revision as of 19:18, 30 November 2023