Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,987
edits
No edit summary Tag: Reverted |
No edit summary Tag: Manual revert |
||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude> | ||
{{#template_params: | {{#template_params:Name | ||
| | |Text | ||
| | |Author (default=Unknown) | ||
| | |Purpose (values=Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration) | ||
| | |Recipient (values=God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General) | ||
|LiturgicalContext (values=Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion) | |||
|PrayerType (values=Traditional,Litany,Novena,Hymn,Spontaneous) | |||
|Theme (values=Faith,Hope,Charity,Penitential,Eschatological) | |||
|FeastDay | |||
|CanonizationStatus (values=Saint,Blessed,Venerable,N/A|default=N/A) | |||
|Origin (values=Biblical,Patristic,Medieval,Modern,Cultural) | |||
|Usage (values=Personal,Communal,Occasional) | |||
|Length (values=Short,Medium,Long) | |||
|Season (values=Advent,Lent,Easter,Ordinary Time,General) | |||
| | |Language (default=English) | ||
| | |Approval (default=None) | ||
| | |Tags (values=healing,protection,Marian,penitential,devotional,eschatological)}} | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
{{#cargo_declare:_table= | {{#cargo_declare:_table=Prayers | ||
|Name=String (INDEX) | |||
| | |Text=Text | ||
|Author=String (INDEX) | |||
|Purpose=List (Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration|delimiter=,) | |||
| | |Recipient=List (God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General|delimiter=,) | ||
| | |LiturgicalContext=List (Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion|delimiter=,) | ||
|PrayerType=List (Traditional,Litany,Novena,Hymn,Spontaneous|delimiter=,) | |||
| | |Theme=List (Faith,Hope,Charity,Penitential,Eschatological|delimiter=,) | ||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
| | |||
|FeastDay=String | |FeastDay=String | ||
| | |CanonizationStatus=List (Saint,Blessed,Venerable,N/A|delimiter=,) | ||
| | |Origin=List (Biblical,Patristic,Medieval,Modern,Cultural|delimiter=,) | ||
| | |Usage=List (Personal,Communal,Occasional|delimiter=,) | ||
| | |Length=List (Short,Medium,Long|delimiter=,) | ||
| | |Season=List (Advent,Lent,Easter,Ordinary Time,General|delimiter=,) | ||
| | |Language=String | ||
</noinclude><includeonly>{{#cargo_store:_table= | |Approval=String | ||
|Tags=List (healing,protection,Marian,penitential,devotional,eschatological|delimiter=,) | |||
|DateAdded=Date | |||
}} | |||
</noinclude> | |||
<includeonly> | |||
{{#cargo_store:_table=Prayers | |||
|Name={{{Name|{{PAGENAME}}}}} | |||
|Text={{{Text|}}} | |||
|Author={{{Author|}}} | |||
|Purpose={{{Purpose|}}} | |||
|Recipient={{{Recipient|}}} | |||
|LiturgicalContext={{{LiturgicalContext|}}} | |||
|PrayerType={{{PrayerType|}}} | |||
|Theme={{{Theme|}}} | |||
|FeastDay={{{FeastDay|}}} | |||
|CanonizationStatus={{{CanonizationStatus|}}} | |||
|Origin={{{Origin|}}} | |||
|Usage={{{Usage|}}} | |||
|Length={{{Length|}}} | |||
|Season={{{Season|}}} | |||
|Language={{{Language|}}} | |||
|Approval={{{Approval|}}} | |||
|Tags={{{Tags|}}} | |||
|DateAdded={{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}} | |||
}} | |||
{| style="float:right; width:350px; background-color:#FFF8DC; border:1px solid #6B7280" | {| style="float:right; width:350px; background-color:#FFF8DC; border:1px solid #6B7280" | ||
|- | |- | ||
| '''Stored in Cargo:''' {{#cargo_query: | | '''Stored in Cargo:''' {{#cargo_query:tables=Prayers|fields=Name|where=Name="{{{Name|{{PAGENAME}}}}}"|format=list}} | ||
|- | |- | ||
|} | |} | ||
{{#if: {{{FeastDay|}}} | == {{{Name|{{PAGENAME}}}}} == | ||
{{#if: {{{Text|}}} | '''Text:''' <blockquote>{{{Text}}}</blockquote> }} | |||
{{#if: {{{Author|}}} | '''Author:''' {{{Author}}} }} | |||
{{#if: {{{Purpose|}}} | '''Purpose:''' {{{Purpose}}} }} | |||
{{#if: {{{Recipient|}}} | '''Recipient:''' {{{Recipient}}} }} | |||
{{#if: {{{LiturgicalContext|}}} | '''Liturgical Context:''' {{{LiturgicalContext}}} }} | |||
{{#if: {{{PrayerType|}}} | '''Prayer Type:''' {{{PrayerType}}} }} | |||
{{#if: {{{Theme|}}} | '''Theme:''' {{{Theme}}} }} | |||
{{#if: {{{FeastDay|}}} | '''Feast Day:''' {{{FeastDay}}} }} | |||
{{#if: {{{CanonizationStatus|}}} | '''Canonization Status:''' {{{CanonizationStatus}}} }} | |||
{{#if: {{{Origin|}}} | '''Origin:''' {{{Origin}}} }} | |||
{{#if: {{{Usage|}}} | '''Usage:''' {{{Usage}}} }} | |||
{{#if: {{{Length|}}} | '''Length:''' {{{Length}}} }} | |||
{{#if: {{{Season|}}} | '''Season:''' {{{Season}}} }} | |||
{{#if: {{{Language|}}} | '''Language:''' {{{Language}}} }} | |||
{{#if: {{{Approval|}}} | '''Approval:''' {{{Approval}}} }} | |||
{{#if: {{{Tags|}}} | '''Tags:''' {{{Tags}}} }} | |||
{{#if: {{{DateAdded|}}} | '''Added on:''' {{{DateAdded}}} }} | |||
[[Category:Catholic Prayers]] | |||
</includeonly> | |||
<noinclude> | |||
== Usage == | |||
This template defines the Cargo table `Prayers` and stores/displays information about Catholic prayers. It is typically used via the [[Form:Prayer]] form or directly on prayer pages. The table is defined when the template is first saved, and subsequent uses store data. | |||
=== Parameters === | |||
* '''Name''': The title of the prayer (defaults to page name). | |||
* '''Text''': The full text of the prayer. | |||
* '''Author''': The composer (e.g., "St. Francis of Assisi", "Unknown"). | |||
* '''Purpose''': The intention (e.g., Adoration, Petition, Thanksgiving). | |||
* '''Recipient''': The addressee (e.g., God, Virgin Mary, Saints). | |||
* '''LiturgicalContext''': Context like Mass, Rosary, or Seasonal. | |||
* '''PrayerType''': Form like Traditional, Litany, or Novena. | |||
* '''Theme''': Theological theme like Faith, Hope, or Penitential. | |||
* '''FeastDay''': Associated feast day (e.g., "October 4"). | |||
* '''CanonizationStatus''': Author’s status (e.g., Saint, Blessed, N/A). | |||
* '''Origin''': Historical origin (e.g., Biblical, Medieval, Modern). | |||
* '''Usage''': Context like Personal, Communal, or Occasional. | |||
* '''Length''': Short (<100 words), Medium (100–300 words), or Long (>300 words). | |||
* '''Season''': Liturgical season like Advent, Lent, or General. | |||
* '''Language''': Original language (e.g., "Latin", "English"). | |||
* '''Approval''': Ecclesiastical approval (e.g., "Imprimatur", "None"). | |||
* '''Tags''': Keywords for searching (e.g., "healing", "Marian"). | |||
* '''DateAdded''': Automatically set to the current date. | |||
=== Example === | |||
<pre> | |||
{{Prayer | |||
|Name=Memorare | |||
|Text=Remember, O most gracious Virgin Mary, that never was it known... | |||
|Author=St. Bernard of Clairvaux | |||
|Purpose=Petition | |||
|Recipient=Virgin Mary | |||
|LiturgicalContext=Rosary | |||
|PrayerType=Traditional | |||
|Theme=Hope | |||
|FeastDay=August 20 | |||
|CanonizationStatus=Saint | |||
|Origin=Medieval | |||
|Usage=Personal | |||
|Length=Short | |||
|Season=General | |||
|Language=Latin | |||
|Approval=None | |||
|Tags=Marian,intercession,devotional | |||
}} | }} | ||
{{# | </pre> | ||
=== Notes === | |||
- The Cargo table `Prayers` is defined when this template is saved. If the table doesn’t appear in Special:CargoTables, try recreating it via Special:CreateCargoTable or transcluding on a setup page. | |||
- Use [[Form:Prayer]] for easy data entry. | |||
- Query the table using {{#cargo_query:tables=Prayers}} for lists or filters. | |||
[[Category: | [[Category:Templates]] | ||
</noinclude> | |||
</ | |||