Jump to content

Template:MediaForAgent: Difference between revisions

From ICE List Wiki
[unchecked revision][unchecked revision]
Cargo media: auto-embed media tagged to this agent
 
PF-free self-hiding (Cargo intro/default, no #if)
 
(One intermediate revision by the same user not shown)
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=''No media tagged to this agent yet. Add some via [[ICE List:Media browser]].''}}</includeonly><noinclude>Auto-embeds every Media item tagged to this agent (Cargo). Place on a agent page: <code><nowiki>{{MediaForAgent}}</nowiki></code>. [[Category:Templates]]</noinclude>
<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-media-block"><div class="mw-heading mw-heading2"><h2>Media</h2></div><div class="ic-video-gallery">|outro=</div></div>|default=}}</includeonly><noinclude>Auto-embeds Media tagged to this agent (Cargo intro/default self-hides when none). Place on a agent page: <code><nowiki>{{MediaForAgent}}</nowiki></code>. [[Category:Templates]]</noinclude>

Latest revision as of 18:39, 10 July 2026

Auto-embeds Media tagged to this agent (Cargo intro/default self-hides when none). Place on a agent page: {{MediaForAgent}}.