Template:Prayer

From Saintapedia
Jump to navigation Jump to search

This is the "Prayer" template.

It should be called in the following format:

{{Prayer
|Name=
|Author=
|Purpose=
|Recipient=
|LiturgicalContext=
|PrayerType=
|Origin=
|Length=
|Season=
|Language=
|Approval=
|Tags=
}}

Edit the page to see the template text.

This template defines the table "Prayers". View table.


Usage

This template defines the Cargo table `Prayers` and stores/displays metadata about Catholic prayers in an infobox. 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. Only the infobox is displayed, with no section heading or prayer text.

Parameters

  • Name: The title of the prayer (defaults to page name).
  • Author: The composer (e.g., "St. Francis of Assisi", "Unknown").
  • 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).
  • LiturgicalContext: Context like Mass, Rosary, or Mass,Personal,Communal.
  • PrayerType: Form like Traditional, Litany, or Traditional,Novena.
  • Origin: Historical origin (e.g., Biblical, Medieval, or Biblical,Modern).
  • Length: Short (<100 words), Medium (100–300 words), or Long (>300 words).
  • Season: Liturgical season like Advent, Lent, or Advent,General.
  • Language: Original language (e.g., "Latin", "English").
  • Approval: Ecclesiastical approval (e.g., "Imprimatur", "None").
  • Tags: Keywords for searching (e.g., "healing", "Marian", "faith", comma-separated).
  • DateAdded: Automatically set to the current date.

Example

{{Prayer
|Name=Memorare
|Author=St. Bernard of Clairvaux
|Purpose=Petition,Intercession
|Recipient=Virgin Mary
|LiturgicalContext=Rosary,Personal
|PrayerType=Traditional
|Origin=Medieval
|Length=Short
|Season=General
|Language=Latin
|Approval=None
|Tags=Marian,intercession,devotional,hope
}}

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).
  • Use Form:Prayer for easy data entry.
  • For multi-valued fields (e.g., Purpose, Tags), use comma-separated values. Query with exact matches (e.g., Prayer:Memorare).
  • The template displays only an infobox with metadata, without a section heading or prayer text.
  • The infobox uses the `` template for a standardized appearance.
  • If errors persist, check Cargo version (3.0+ recommended) and permissions in LocalSettings.php.