Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,987
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | |||
{{#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=Prayers | |||
|Name=String (INDEX) | |||
|Text=Text | |||
|Author=String (INDEX) | |||
|Purpose=List (Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration) | |||
|Recipient=List (God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General) | |||
|LiturgicalContext=List (Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion) | |||
|PrayerType=List (Traditional,Litany,Novena,Hymn,Spontaneous) | |||
|Theme=List (Faith,Hope,Charity,Penitential,Eschatological) | |||
|FeastDay=String | |||
|CanonizationStatus=List (Saint,Blessed,Venerable,N/A) | |||
|Origin=List (Biblical,Patristic,Medieval,Modern,Cultural) | |||
|Usage=List (Personal,Communal,Occasional) | |||
|Length=List (Short,Medium,Long) | |||
|Season=List (Advent,Lent,Easter,Ordinary Time,General) | |||
|Language=String | |||
|Approval=String | |||
|Tags=List (healing,protection,Marian,penitential,devotional,eschatological) | |||
|DateAdded=Date | |||
}} | |||
</noinclude> | |||
<includeonly> | <includeonly> | ||
{{#cargo_store: | {{#cargo_store:_table=Prayers | ||
_table=Prayers | |Name={{{Name|{{PAGENAME}}}}} | ||
|Name={{{Name|}}} | |||
|Text={{{Text|}}} | |Text={{{Text|}}} | ||
|Author={{{Author|}}} | |Author={{{Author|}}} | ||
| Line 22: | Line 61: | ||
}} | }} | ||
== {{{Name|}}} == | {| style="float:right; width:350px; background-color:#FFF8DC; border:1px solid #6B7280" | ||
|- | |||
| '''Stored in Cargo:''' {{#cargo_query:tables=Prayers|fields=Name|where=Name="{{{Name|{{PAGENAME}}}}}"|format=list}} | |||
|- | |||
|} | |||
== {{{Name|{{PAGENAME}}}}} == | |||
{{#if: {{{Text|}}} | '''Text:''' <blockquote>{{{Text}}}</blockquote> }} | {{#if: {{{Text|}}} | '''Text:''' <blockquote>{{{Text}}}</blockquote> }} | ||
{{#if: {{{Author|}}} | '''Author:''' {{{Author}}} }} | {{#if: {{{Author|}}} | '''Author:''' {{{Author}}} }} | ||
| Line 45: | Line 89: | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
This template stores | 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 === | === Parameters === | ||
* '''Name''': The title of the prayer. | * '''Name''': The title of the prayer (defaults to page name). | ||
* '''Text''': The full text of the prayer. | * '''Text''': The full text of the prayer. | ||
* '''Author''': The composer (e.g., "St. Francis of Assisi", "Unknown"). | * '''Author''': The composer (e.g., "St. Francis of Assisi", "Unknown"). | ||
| Line 89: | Line 133: | ||
}} | }} | ||
</pre> | </pre> | ||
=== Notes === | |||
- The Cargo table `Prayers` is defined the first time this template is saved. Ensure the Cargo extension is installed. | |||
- Use [[Form:Prayer]] for easy data entry. | |||
- Query the table using {{#cargo_query:tables=Prayers}} for lists or filters. | |||
[[Category:Templates]] | [[Category:Templates]] | ||
</noinclude> | </noinclude> | ||