Template:MediaForIncident: Difference between revisions
| [unchecked revision] | [unchecked revision] |
Cargo media: auto-embed media tagged to this incident ย |
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=incidents 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=incidents HOLDS '{{FULLPAGENAME}}'|format=list|limit=1|default=}}| | ||
== Media == | |||
{{#cargo_query:tables=Media|fields=platform,url,embed,caption,mdate,state,agents,incidents,status,_pageName|where=incidents 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 incident (Cargo). Renders nothing until media is tagged. Place near the bottom of a incident page: <code><nowiki>{{MediaForIncident}}</nowiki></code>. [[Category:Templates]]</noinclude> | |||
Revision as of 18:12, 10 July 2026
Auto-embeds Media items tagged to this incident (Cargo). Renders nothing until media is tagged. Place near the bottom of a incident page: {{MediaForIncident}}.