Template:SaintMedia

From Saintapedia
Jump to navigation Jump to search

This template defines the table "SaintMedia". View table. This is the "SaintMedia" template.

It should be called in the following format:

{{SaintMedia
|Name=
|Type=
|AuthorCreator=
|Saint=
|SecondSaint=
|SubscriptionRequired=
|Length=
|Language=
|TargetAudience=
|Tags=
|Media=
}}

Edit the page to see the template text.

This template stores media metadata in the SaintMedia Cargo table, shows an infobox on the media article, and embeds the player from |Media=.

Usage — put the embed in |Media= (do not paste a live YTV example on this doc page):

{{SaintMedia
|Name=Our Lady Of Guadalupe HD
|Type=Video
|AuthorCreator=Catholic Online
|Saint=Our Lady of Guadalupe
|SubscriptionRequired=Free
|Length=Under 5 minutes
|Language=English
|TargetAudience=Everyone
|Media={{YTV|URL=https://www.youtube.com/watch?v=egN4HUxhE6M|Caption=Our Lady Of Guadalupe}}
}}

Portal / transclusion behavior If the media page is transcluded into a Portal: page (e.g. Portal:Media), only the |Media= player is shown. The infobox, category, and Cargo store run only when viewing the media article itself (main namespace). That keeps featured players clean without wrapping every page in noinclude.

Older page pattern (video outside the template, metadata in noinclude):

{{YTV|URL=...|Caption=...}}
<noinclude>
{{SaintMedia|Name=...|Type=Video|AuthorCreator=...|Saint=...}}
</noinclude>