Template:MediaForAgent: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Cargo media: auto-embed media tagged to this agent ย |
Self-hiding: only show Media section when items are tagged |
||
| Line 1: | Line 1: | ||
<includeonly>{{#cargo_query:tables=Media|fields=platform,url,embed,caption,mdate,state,agents,incidents,status,_pageName|where=agents HOLDS '{{FULLPAGENAME}}'|format=template|template=Media/card|order by=mdate desc|limit=100|intro=<div class="ic-video-gallery">|outro=</div>|default= | <includeonly>{{#if:{{#cargo_query:tables=Media|fields=_pageName|where=agents HOLDS '{{FULLPAGENAME}}'|format=list|limit=1|default=}}| | ||
== Media == | |||
{{#cargo_query:tables=Media|fields=platform,url,embed,caption,mdate,state,agents,incidents,status,_pageName|where=agents HOLDS '{{FULLPAGENAME}}'|format=template|template=Media/card|order by=mdate desc|limit=100|intro=<div class="ic-video-gallery">|outro=</div>|default=}} | |||
|}}</includeonly><noinclude>Auto-embeds Media items tagged to this agent (Cargo). Renders nothing until media is tagged. Place near the bottom of a agent page: <code><nowiki>{{MediaForAgent}}</nowiki></code>. [[Category:Templates]]</noinclude> | |||
Revision as of 18:12, 10 July 2026
Auto-embeds Media items tagged to this agent (Cargo). Renders nothing until media is tagged. Place near the bottom of a agent page: {{MediaForAgent}}.