Template:Prayer: Difference between revisions

streamline table
No edit summary
(streamline table)
Line 2: Line 2:
{{#template_params:Name
{{#template_params:Name
|Author (default=Unknown)
|Author (default=Unknown)
|Purpose (placeholder=Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration)
|Purpose (placeholder=Adoration,Blessing,Praise,Petition,Thanksgiving,Repentance,Intercession,Consecration,Contrition)
|Recipient (placeholder=God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General)
|Recipient (placeholder=God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General)
|LiturgicalContext (placeholder=Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion)
|LiturgicalContext (placeholder=Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion,Personal,Communal,Devotional)
|PrayerType (placeholder=Traditional,Litany,Novena,Hymn,Spontaneous)
|PrayerType (placeholder=Traditional,Litany,Novena,Hymn,Spontaneous,Vocal,Meditative,Contemplative)
|Theme (placeholder=Faith,Hope,Charity,Penitential,Eschatological)
|FeastDay
|CanonizationStatus (placeholder=Saint,Blessed,Venerable,N/A|default=N/A)
|Origin (placeholder=Biblical,Patristic,Medieval,Modern,Cultural)
|Origin (placeholder=Biblical,Patristic,Medieval,Modern,Cultural)
|UseContext (placeholder=Personal,Communal,Occasional)
|Length (placeholder=Short,Medium,Long)
|Length (placeholder=Short,Medium,Long)
|Season (placeholder=Advent,Lent,Easter,Ordinary Time,General)
|Season (placeholder=Advent,Lent,Easter,Ordinary Time,General)
|Language (default=English)
|Language (default=English)
|Approval (default=None)
|Approval (default=None)
|Tags (placeholder=healing,protection,Marian,penitential,devotional,eschatological)}}
|Tags (placeholder=healing,protection,Marian,penitential,devotional,eschatological,faith,hope,charity)}}


{{#cargo_declare:_table=Prayers
{{#cargo_declare:_table=Prayers
|Name=String (INDEX)
|Name=String (INDEX)
|Author=String (INDEX)
|Author=String (INDEX)
|Purpose=Text
|Purpose=List (delimiter=,) of String
|Recipient=Text
|Recipient=List (delimiter=,) of String
|LiturgicalContext=Text
|LiturgicalContext=List (delimiter=,) of String
|PrayerType=Text
|PrayerType=List (delimiter=,) of String
|Theme=Text
|Origin=List (delimiter=,) of String
|FeastDay=String
|Length=String
|CanonizationStatus=Text
|Season=List (delimiter=,) of String
|Origin=Text
|UseContext=Text
|Length=Text
|Season=Text
|Language=String
|Language=String
|Approval=String
|Approval=String
|Tags=Text
|Tags=List (delimiter=,) of String
|DateAdded=Date
|DateAdded=Date
}}
}}
Line 45: Line 37:
|LiturgicalContext={{{LiturgicalContext|}}}
|LiturgicalContext={{{LiturgicalContext|}}}
|PrayerType={{{PrayerType|}}}
|PrayerType={{{PrayerType|}}}
|Theme={{{Theme|}}}
|FeastDay={{{FeastDay|}}}
|CanonizationStatus={{{CanonizationStatus|}}}
|Origin={{{Origin|}}}
|Origin={{{Origin|}}}
|UseContext={{{UseContext|}}}
|Length={{{Length|}}}
|Length={{{Length|}}}
|Season={{{Season|}}}
|Season={{{Season|}}}
Line 75: Line 63:
|label6 = Prayer Type
|label6 = Prayer Type
|data6 = {{{PrayerType|}}}
|data6 = {{{PrayerType|}}}
|label7 = Theme
|label7 = Origin
|data7 = {{{Theme|}}}
|data7 = {{{Origin|}}}
|label8 = Feast Day
|label8 = Length
|data8 = {{{FeastDay|}}}
|data8 = {{{Length|}}}
|label9 = Canonization Status
|label9 = Season
|data9 = {{{CanonizationStatus|N/A}}}
|data9 = {{{Season|}}}
|label10 = Origin
|label10 = Language
|data10 = {{{Origin|}}}
|data10 = {{{Language|English}}}
|label11 = Use Context
|label11 = Approval
|data11 = {{{UseContext|}}}
|data11 = {{{Approval|None}}}
|label12 = Length
|label12 = Tags
|data12 = {{{Length|}}}
|data12 = {{{Tags|}}}
|label13 = Season
|label13 = Added on
|data13 = {{{Season|}}}
|data13 = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
|label14 = Language
|data14 = {{{Language|English}}}
|label15 = Approval
|data15 = {{{Approval|None}}}
|label16 = Tags
|data16 = {{{Tags|}}}
|label17 = Added on
|data17 = {{CURRENTYEAR}}-{{CURRENTMONTH}}-{{CURRENTDAY}}
}}
}}


Line 110: Line 90:
* '''Purpose''': The intention (e.g., Adoration, Petition, or comma-separated like Adoration,Petition).
* '''Purpose''': The intention (e.g., Adoration, Petition, or comma-separated like Adoration,Petition).
* '''Recipient''': The addressee (e.g., God, Virgin Mary, or God,Virgin Mary).
* '''Recipient''': The addressee (e.g., God, Virgin Mary, or God,Virgin Mary).
* '''LiturgicalContext''': Context like Mass, Rosary, or Mass,Seasonal.
* '''LiturgicalContext''': Context like Mass, Rosary, or Mass,Personal,Communal.
* '''PrayerType''': Form like Traditional, Litany, or Traditional,Novena.
* '''PrayerType''': Form like Traditional, Litany, or Traditional,Novena.
* '''Theme''': Theological theme like Faith, Hope, or Faith,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, or Biblical,Modern).
* '''Origin''': Historical origin (e.g., Biblical, Medieval, or Biblical,Modern).
* '''UseContext''': Context like Personal, Communal, or Personal,Occasional.
* '''Length''': Short (<100 words), Medium (100–300 words), or Long (>300 words).
* '''Length''': Short (<100 words), Medium (100–300 words), or Long (>300 words).
* '''Season''': Liturgical season like Advent, Lent, or Advent,General.
* '''Season''': Liturgical season like Advent, Lent, or Advent,General.
* '''Language''': Original language (e.g., "Latin", "English").
* '''Language''': Original language (e.g., "Latin", "English").
* '''Approval''': Ecclesiastical approval (e.g., "Imprimatur", "None").
* '''Approval''': Ecclesiastical approval (e.g., "Imprimatur", "None").
* '''Tags''': Keywords for searching (e.g., "healing", "Marian", comma-separated).
* '''Tags''': Keywords for searching (e.g., "healing", "Marian", "faith", comma-separated).
* '''DateAdded''': Automatically set to the current date.
* '''DateAdded''': Automatically set to the current date.


Line 129: Line 105:
|Name=Memorare
|Name=Memorare
|Author=St. Bernard of Clairvaux
|Author=St. Bernard of Clairvaux
|Purpose=Petition
|Purpose=Petition,Intercession
|Recipient=Virgin Mary
|Recipient=Virgin Mary
|LiturgicalContext=Rosary
|LiturgicalContext=Rosary,Personal
|PrayerType=Traditional
|PrayerType=Traditional
|Theme=Hope
|FeastDay=August 20
|CanonizationStatus=Saint
|Origin=Medieval
|Origin=Medieval
|UseContext=Personal
|Length=Short
|Length=Short
|Season=General
|Season=General
|Language=Latin
|Language=Latin
|Approval=None
|Approval=None
|Tags=Marian,intercession,devotional
|Tags=Marian,intercession,devotional,hope
}}
}}
</pre>
</pre>


=== Notes ===
=== Notes ===
* - The Cargo table `Prayers` 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., PrayersSetup).
* The Cargo table `Prayers` 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., PrayersSetup).
* - Use [[Form:Prayer]] for easy data entry.
* Use [[Form:Prayer]] for easy data entry.
* - Query the table using {{#cargo_query:tables=Prayers}} with LIKE for Text fields (e.g., where=Purpose LIKE '%Petition%').
* For multi-valued fields (e.g., Purpose, Tags), use comma-separated values. Query with exact matches (e.g., {{#cargo_query:tables=Prayers|where=Purpose HOLDS 'Petition'}}).
* - The template displays only an infobox with metadata, without a section heading or prayer text.
* The template displays only an infobox with metadata, without a section heading or prayer text.
* - The infobox uses the `{{Infobox}}` template for a standardized appearance.
* The infobox uses the `{{Infobox}}` template for a standardized appearance.
* - 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>