Template:SaintMedia: Difference between revisions

author as link
No edit summary
(author as link)
Line 40: Line 40:
|data2 = {{{Type|Video}}}
|data2 = {{{Type|Video}}}
|label3 = Author/Creator
|label3 = Author/Creator
|data3 = {{{AuthorCreator|Unknown}}}
|data3 = [[{{{AuthorCreator|Unknown}}}]]
|label4 = Saint
|label4 = Saint
|data4 = {{{Saint|}}}
|data4 = {{{Saint|}}}
Line 60: Line 60:
* '''Name''': The title of the media (e.g., "The Life of St. Teresa of Avila"). Defaults to page name.
* '''Name''': The title of the media (e.g., "The Life of St. Teresa of Avila"). Defaults to page name.
* '''Type''': The format of the media (e.g., Audio, Video, Podcast). Defaults to "Video".
* '''Type''': The format of the media (e.g., Audio, Video, Podcast). Defaults to "Video".
* '''AuthorCreator''': The individual, organization, or channel producing the content (e.g., "Bishop Robert Barron", "Augustine Institute"). Defaults to "Unknown".
* '''AuthorCreator''': The wiki page for the individual, organization, or channel producing the content (e.g., "Bishop Robert Barron", "Augustine Institute"). Defaults to "Unknown".
* '''Saint''': The primary saint(s) featured (e.g., "St. Augustine", "St. Joan of Arc").
* '''Saint''': The primary saint(s) featured (e.g., "St. Augustine", "St. Joan of Arc").
* '''SubscriptionRequired''': Whether the content is free or requires a subscription (e.g., Free, Subscription). Defaults to "Free".
* '''SubscriptionRequired''': Whether the content is free or requires a subscription (e.g., Free, Subscription). Defaults to "Free".
Line 80: Line 80:
=== Notes ===
=== Notes ===
* The Cargo table `SaintMedia` is defined when this template is saved. If the table doesn’t appear in Special:CargoTables, use Special:CreateCargoTable with the #cargo_declare code or transclude on a setup page (e.g., SaintMediaSetup).
* The Cargo table `SaintMedia` is defined when this template is saved. If the table doesn’t appear in Special:CargoTables, use Special:CreateCargoTable with the #cargo_declare code or transclude on a setup page (e.g., SaintMediaSetup).
* Use [[Form:SaintMedia]] for easy data entry.
* Use [[Form:SaintMedia]] for easy data entry with page autocompletion for AuthorCreator.
* Query the table using {{#cargo_query:tables=SaintMedia|fields=Name,Type,AuthorCreator,Saint|where=Saint LIKE '%Teresa%'}} to retrieve data.
* Query the table using {{#cargo_query:tables=SaintMedia|fields=Name,Type,AuthorCreator,Saint|where=Saint LIKE '%Teresa%'}} to retrieve data.
* The template displays only an infobox with metadata, without a section heading or media content.
* The template displays only an infobox with metadata, without a section heading or media content.
* The infobox uses the `{{Infobox}}` template for a standardized appearance.
* The infobox uses the `{{Infobox}}` template for a standardized appearance, with AuthorCreator linked to its wiki page.
* If errors persist, check Cargo version (3.0+ recommended) and permissions in LocalSettings.php.
* If errors persist, check Cargo version (3.0+ recommended) and permissions in LocalSettings.php.


[[Category:Templates]]
[[Category:Templates]]
</noinclude>
</noinclude>