Template:Prayer: Difference between revisions

no edit summary
No edit summary
Tag: Reverted
No edit summary
Tag: Manual revert
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:SaintName (label=Saint)
{{#template_params:Name
|SaintStage (label=Stage)
|Text
|FeastDay (label=Feast Day, e.g., "May 25" or "June 07", use leading zero for single-digit days)
|Author (default=Unknown)
|Profession (label=Profession)
|Purpose (values=Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration)
|ReligiousAffiliation (label=Religious Affiliation)
|Recipient (values=God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General)
|Patronage (label=Patronage)
|LiturgicalContext (values=Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion)
|Attributes (label=Attributes)
|PrayerType (values=Traditional,Litany,Novena,Hymn,Spontaneous)
|SaintBirthDate (label=Birthdate)
|Theme (values=Faith,Hope,Charity,Penitential,Eschatological)
|SaintBirthPlace (label=Birthplace)
|FeastDay
|SaintBirthCoordinates (label=Birth Coordinates)
|CanonizationStatus (values=Saint,Blessed,Venerable,N/A|default=N/A)
|SaintDeathDate (label=Deathdate)
|Origin (values=Biblical,Patristic,Medieval,Modern,Cultural)
|DeathPlace (label=Death Place)
|Usage (values=Personal,Communal,Occasional)
|SaintDeathCoordinates (label=Death Coordinates)
|Length (values=Short,Medium,Long)
|SaintCauseOfDeath (label=Cause of Death)
|Season (values=Advent,Lent,Easter,Ordinary Time,General)
|BeatificationDate (label=Beatification Date)
|Language (default=English)
|Beatifier (label=Beatified by)
|Approval (default=None)
|BeatificationLocation (label=Beatification Location)
|Tags (values=healing,protection,Marian,penitential,devotional,eschatological)}}
|Canonized (label=Canonized)
|CanonizationDate (label=Canonization Date)
|Canonizer (label=Canonized by)
|CanonizationLocation (label=Canonization Location)
|PrimaryShrine (label=Primary Shrine)
|AdditionalVeneration (label=Additional Veneration)
|SaintMiracle1 (label=Miracle 1)
|SaintMiracle2 (label=Miracle 2)
|SaintMiracle3 (label=Miracle 3)
|NotableAddress1 (label=Notable Location 1)
|NotableLabel1 (label=Notable Location 1 Label)
|NotableCoordinates1 (label=Notable Location 1 Coordinates)
|NotableAddress2 (label=Notable Location 2)
|NotableLabel2 (label=Notable Location 2 Label)
|NotableCoordinates2 (label=Notable Location 2 Coordinates)
|NotableAddress3 (label=Notable Location 3)
|NotableLabel3 (label=Notable Location 3 Label)
|NotableCoordinates3 (label=Notable Location 3 Coordinates)
|NotableAddress4 (label=Notable Location 4)
|NotableLabel4 (label=Notable Location 4 Label)
|NotableCoordinates4 (label=Notable Location 4 Coordinates)
|NotableAddress5 (label=Notable Location 5)
|NotableLabel5 (label=Notable Location 5 Label)
|NotableCoordinates5 (label=Notable Location 5 Coordinates)
|AssociatedCountries (label=Associated Countries)
|AssociatedDioceses (label=Associated Dioceses)
|ReviewLevel (label=Review Level, 0=AI-Generated, 1=Minimal Human Review, 2=Moderate Human Review, 3=Substantial Human Review, 4=Extensive Human Review, 5=Fully Human-Validated)}}


{{#cargo_declare:_table=Saints
{{#cargo_declare:_table=Prayers
|SaintName=Page
|Name=String (INDEX)
|SaintStage=Page
|Text=Text
|SaintBirthDate=Date
|Author=String (INDEX)
|SaintBirthPlace=String
|Purpose=List (Adoration,Petition,Thanksgiving,Repentance,Intercession,Consecration|delimiter=,)
|SaintBirthCoordinates=Coordinates
|Recipient=List (God,Jesus Christ,Holy Spirit,Virgin Mary,Saints,Angels,General|delimiter=,)
|SaintDeathDate=Date
|LiturgicalContext=List (Mass,Liturgy of the Hours,Rosary,Sacramental,Seasonal,General Devotion|delimiter=,)
|DeathPlace=String
|PrayerType=List (Traditional,Litany,Novena,Hymn,Spontaneous|delimiter=,)
|SaintDeathCoordinates=Coordinates
|Theme=List (Faith,Hope,Charity,Penitential,Eschatological|delimiter=,)
|SaintCauseOfDeath=String
|NotableAddress1=String
|NotableLabel1=String
|NotableCoordinates1=Coordinates
|NotableAddress2=String
|NotableLabel2=String
|NotableCoordinates2=Coordinates
|NotableAddress3=String
|NotableLabel3=String
|NotableCoordinates3=Coordinates
|NotableAddress4=String
|NotableLabel4=String
|NotableCoordinates4=Coordinates
|NotableAddress5=String
|NotableLabel5=String
|NotableCoordinates5=Coordinates
|AssociatedCountries=String
|AssociatedDioceses=String
|ReviewLevel=Integer
|BeatificationDate=Date
|Beatifier=Page
|BeatificationLocation=String
|Canonized=Boolean
|CanonizationDate=Date
|Canonizer=Page
|CanonizationLocation=String
|SaintMiracle1=String
|SaintMiracle2=String
|SaintMiracle3=String
|FeastDay=String
|FeastDay=String
|Profession=Page
|CanonizationStatus=List (Saint,Blessed,Venerable,N/A|delimiter=,)
|ReligiousAffiliation=Page
|Origin=List (Biblical,Patristic,Medieval,Modern,Cultural|delimiter=,)
|Patronage=String
|Usage=List (Personal,Communal,Occasional|delimiter=,)
|Attributes=String
|Length=List (Short,Medium,Long|delimiter=,)
|PrimaryShrine=Page
|Season=List (Advent,Lent,Easter,Ordinary Time,General|delimiter=,)
|AdditionalVeneration=String}}
|Language=String
</noinclude><includeonly>{{#cargo_store:_table=Saints}}
|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:|tables=Saints|fields=SaintName|where=SaintName="{{{SaintName|{{PAGENAME}}}}}"|format=list}}
| '''Stored in Cargo:''' {{#cargo_query:tables=Prayers|fields=Name|where=Name="{{{Name|{{PAGENAME}}}}}"|format=list}}
|-
|-
|}
|}
{{#if: {{{FeastDay|}}}
== {{{Name|{{PAGENAME}}}}} ==
  | {{#iferror: {{#time: F d | {{{FeastDay}}} }}
{{#if: {{{Text|}}} | '''Text:''' <blockquote>{{{Text}}}</blockquote> }}
      | {{{FeastDay}}}
{{#if: {{{Author|}}} | '''Author:''' {{{Author}}} }}
      | {{#time: F d | {{{FeastDay}}} }}
{{#if: {{{Purpose|}}} | '''Purpose:''' {{{Purpose}}} }}
    }}
{{#if: {{{Recipient|}}} | '''Recipient:''' {{{Recipient}}} }}
  | <!-- No FeastDay provided -->
{{#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
}}
}}
{{#template_display:_format=infobox}}
</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:Saints]]
[[Category:Templates]]
{{#switch: {{{ReviewLevel|0}}}
</noinclude>
| 0 = [[Category:AI-Generated]]
| 1 = [[Category:Human-Reviewed-Level1]]
| 2 = [[Category:Human-Reviewed-Level2]]
| 3 = [[Category:Human-Reviewed-Level3]]
| 4 = [[Category:Human-Reviewed-Level4]]
| 5 = [[Category:Human-Validated]]
| #default = [[Category:AI-Generated]]}}
</includeonly>