Prompt (Prayer box): Difference between revisions

Jump to navigation Jump to search
no edit summary
No edit summary
No edit summary
 
Line 1: Line 1:
Develop a MediaWiki Cargo template named Template:Prayer for defining, storing, and displaying data about Catholic prayers in a Cargo table named Prayers. The template should assume all prayers are Catholic and focus on attributes relevant to Catholic prayers, including authorship by saints or other figures. It must combine the Cargo table definition (<nowiki>{{#cargo_declare:_table=Prayers}}</nowiki>) and data storage/display (<nowiki>{{#cargo_store:_table=Prayers}}</nowiki>) in a single template, similar to a provided saints' template. The template must support grouping, filtering, and sorting based on the following characteristics: purpose (e.g., Adoration, Petition), recipient (e.g., God, Virgin Mary), liturgical context (e.g., Mass, Rosary), prayer type (e.g., Traditional, Litany), theme (e.g., Faith, Penitential), historical/cultural origin (e.g., Biblical, Medieval), use context (e.g., Personal, Communal), length (e.g., Short, Long), and liturgical season (e.g., Advent, Lent). The template should include fields for the prayer’s name, text, author, feast day, canonization status, language, ecclesiastical approval, tags for flexible searching, and date added. Use Text instead of List for fields that accept multiple values, as List is not available in the wiki’s supported classes, and avoid SQL reserved keywords (e.g., use UseContext instead of Usage). Ensure compatibility with a Page Forms form (Form:Prayer) modeled after a provided Form:Saints, with an input box for creating pages in the Prayer namespace.
You are tasked with creating a complete and accurate entry for a prayer using the MediaWiki Prayer template. Below is the template structure with parameters and their descriptions. Use the provided information about a specific prayer to fill in each field correctly. If certain details are unknown or unavailable, use logical defaults or "Unknown" where appropriate, ensuring consistency with the example provided (e.g., Memorare). The output should be a properly formatted MediaWiki template, ready for use on a wiki page.


== Requirements ==
Template Structure:
# Define the Cargo table within <nowiki>Template:Prayer</nowiki> using <nowiki>{{#cargo_declare:_table=Prayers}}</nowiki> with the following fields:
<nowiki>{{Prayer
#* <nowiki>Name</nowiki> (String, indexed): The prayer’s title.
|Name=
#* <nowiki>Text</nowiki> (Text): The full prayer text.
|Author=
#* <nowiki>Author</nowiki> (String, indexed): The composer (e.g., "St. Francis of Assisi", "Unknown").
|Purpose=
#* <nowiki>Purpose</nowiki> (Text): The intention (e.g., "Adoration", "Petition", or "Adoration,Petition").
|Recipient=
#* <nowiki>Recipient</nowiki> (Text): The addressee (e.g., "God", "Virgin Mary", or "God,Virgin Mary").
|LiturgicalContext=
#* <nowiki>LiturgicalContext</nowiki> (Text): The context (e.g., "Mass", "Rosary", or "Mass,Seasonal").
|PrayerType=
#* <nowiki>PrayerType</nowiki> (Text): The form (e.g., "Traditional", "Litany", or "Traditional,Novena").
|Theme=
#* <nowiki>Theme</nowiki> (Text): The theological theme (e.g., "Faith", "Penitential", or "Faith,Hope").
|FeastDay=
#* <nowiki>FeastDay</nowiki> (String): Associated feast day (e.g., "October 4").
|CanonizationStatus=
#* <nowiki>CanonizationStatus</nowiki> (Text): Author’s status (e.g., "Saint", "Blessed", or "Saint,N/A").
|Origin=
#* <nowiki>Origin</nowiki> (Text): Historical origin (e.g., "Biblical", "Medieval", or "Biblical,Modern").
|UseContext=
#* <nowiki>UseContext</nowiki> (Text): Context (e.g., "Personal", "Communal", or "Personal,Occasional").
|Length=
#* <nowiki>Length</nowiki> (Text): Length (e.g., "Short", "Medium", or "Short,Medium").
|Season=
#* <nowiki>Season</nowiki> (Text): Liturgical season (e.g., "Advent", "Lent", or "Advent,General").
|Language=
#* <nowiki>Language</nowiki> (String): Original language (e.g., "Latin").
|Approval=
#* <nowiki>Approval</nowiki> (String): Ecclesiastical approval (e.g., "Imprimatur", "None").
|Tags=
#* <nowiki>Tags</nowiki> (Text): Keywords for searching (e.g., "healing", "Marian", or "healing,Marian").
}}</nowiki>
#* <nowiki>DateAdded</nowiki> (Date): Auto-filled with the current date.
 
# Use <nowiki>{{#cargo_store:_table=Prayers}}</nowiki> to store data, with <nowiki>Name</nowiki> defaulting to <nowiki>{{PAGENAME}}</nowiki>.
* Parameter Descriptions:Name: The title of the prayer (defaults to the page name if not specified).
# Display all fields in a clean format, with <nowiki>Text</nowiki> in a blockquote and a floating box showing the stored <nowiki>Name</nowiki>, similar to the saints’ template.
* Author: The composer of the prayer (e.g., "St. Francis of Assisi", "Unknown").
# Automatically categorize pages in <nowiki><nowiki>[[Category:Catholic Prayers]]</nowiki></nowiki>.
* Purpose: The intention of the prayer (e.g., "Adoration", "Petition", or comma-separated like "Adoration,Petition").
# Include <nowiki>{{#template_params}}</nowiki> to define parameters, their labels, defaults, and placeholders, mirroring the saints’ template.
* Recipient: The addressee of the prayer (e.g., "God", "Virgin Mary", or comma-separated like "God,Virgin Mary").
# Include documentation with usage instructions, an example (e.g., the Memorare prayer), and notes on table creation.
* LiturgicalContext: The liturgical setting or use (e.g., "Mass", "Rosary", or comma-separated like "Mass,Seasonal").
# Ensure compatibility with a Page Forms form (<nowiki>Form:Prayer</nowiki>) modeled after <nowiki>Form:Saints</nowiki>, using simple text inputs for <nowiki>Text</nowiki> fields and an input box for creating pages in the Prayer namespace with <nowiki>{{#forminput:form=Prayer|autocomplete on category=Catholic Prayers|namespace=Prayer}}</nowiki>.
* PrayerType: The form of the prayer (e.g., "Traditional", "Litany", or comma-separated like "Traditional,Novena").
# Support queries for grouping (e.g., by Purpose or Recipient), filtering (e.g., Marian prayers for Lent using <nowiki>LIKE</nowiki>), and sorting (e.g., by Name or Length).
* Theme: The theological theme (e.g., "Faith", "Hope", or comma-separated like "Faith,Penitential").
# Example usage:
* FeastDay: The associated feast day, if any (e.g., "October 4" for a specific date or "None" if not applicable).
#* Prayer: Memorare
* CanonizationStatus: The author’s canonization status (e.g., "Saint", "Blessed", "Venerable", or "N/A"). Default is "N/A".
#* Author: St. Bernard of Clairvaux
* Origin: The historical origin of the prayer (e.g., "Biblical", "Medieval", or comma-separated like "Biblical,Modern").
#* Purpose: Petition
* UseContext: The context of use (e.g., "Personal", "Communal", or comma-separated like "Personal,Occasional").
#* Recipient: Virgin Mary
* Length: The length of the prayer: "Short" (<100 words), "Medium" (100–300 words), or "Long" (>300 words).
#* LiturgicalContext: Rosary
* Season: The liturgical season, if applicable (e.g., "Advent", "Lent", or "General").
#* PrayerType: Traditional
* Language: The original language of the prayer (e.g., "Latin", "English").
#* Theme: Hope
* Approval: Ecclesiastical approval, if any (e.g., "Imprimatur", "None").
#* FeastDay: August 20
* Tags: Keywords for searching, comma-separated (e.g., "healing,Marian,devotional").
#* CanonizationStatus: Saint
 
#* Origin: Medieval
Example (Memorare Prayer):
#* UseContext: Personal
 
#* Length: Short
<nowiki>{{Prayer
#* Season: General
|Name=Memorare
#* Language: Latin
|Author=St. Bernard of Clairvaux
#* Approval: None
|Purpose=Petition
#* Tags: Marian,intercession,devotional
|Recipient=Virgin Mary
# Address table creation by ensuring correct field types, avoiding SQL keywords, and providing instructions to create the table via <nowiki>Special:CargoTables</nowiki>, <nowiki>Special:CreateCargoTable</nowiki>, or a setup page. Troubleshoot form rendering issues by ensuring
|LiturgicalContext=Rosary
|PrayerType=Traditional
|Theme=Hope
|FeastDay=August 20
|CanonizationStatus=Saint
|Origin=Medieval
|UseContext=Personal
|Length=Short
|Season=General
|Language=Latin
|Approval=None
|Tags=Marian,intercession,devotional
}}</nowiki>
 
 
Task Instructions:
* You are provided with details about a specific prayer (e.g., name, text, historical context, or other relevant information). If certain details are missing, make reasonable assumptions based on the prayer’s characteristics or use "Unknown" or "None" where appropriate.
* Fill in each parameter of the Prayer template accurately, following the format and conventions shown in the Memorare example.
* Ensure the values for each parameter align with the descriptions (e.g., use comma-separated values where multiple apply, such as "Adoration,Petition" for Purpose).
* For the Length parameter, if the prayer text is provided, estimate the word count to determine whether it is "Short" (<100 words), "Medium" (100–300 words), or "Long" (>300 words). If no text is provided, use "Unknown" or a reasonable assumption based on similar prayers.
* For FeastDay, use a specific date (e.g., "October 4") if the prayer is tied to a feast, or "None" if no feast day applies.
* For CanonizationStatus, verify the author’s status (e.g., "Saint" for canonized figures, "N/A" for unknown or non-canonized authors).
* For Tags, include relevant keywords that reflect the prayer’s purpose, recipient, or theme (e.g., "Marian" for Virgin Mary, "penitential" for repentance-focused prayers).
* The DateAdded parameter is automatically set to the current date and should not be included in the template output unless explicitly requested.
* Output the completed template in proper MediaWiki format, with each parameter on a new line, as shown in the example.
 
Example Input (Hypothetical Prayer):
 
* Prayer Name: Peace Prayer
* Author: Attributed to St. Francis of Assisi
* Purpose: Petition for peace and guidance
* Recipient: God
* Liturgical Context: Used in communal worship
* Prayer Type: Traditional
* Theme: Peace, Charity
* Feast Day: October 4 (St. Francis of Assisi)
* Origin: Medieval, though disputed
* Use Context: Communal, Personal
* Season: General
* Language: English
* Approval: None
* Tags: peace, Franciscan, devotional
 
<nowiki>{{Prayer
|Name=Peace Prayer
|Author=St. Francis of Assisi
|Purpose=Petition
|Recipient=God
|LiturgicalContext=Communal
|PrayerType=Traditional
|Theme=Peace,Charity
|FeastDay=October 4
|CanonizationStatus=Saint
|Origin=Medieval
|UseContext=Communal,Personal
|Length=Short
|Season=General
|Language=English
|Approval=None
|Tags=peace,Franciscan,devotional
}}</nowiki>
 
Your Task:Using the above instructions and the example as a guide, complete the Prayer template for a new prayer based on the details provided below. If any information is missing, make reasonable assumptions or use defaults as described. Ensure the output is a properly formatted MediaWiki template.
* Prayer Details (Provided):Prayer Name: Anima Christi
* Author: Unknown, sometimes attributed to St. Ignatius of Loyola
* Purpose: Adoration, Petition
* Recipient: Jesus Christ
* Liturgical Context: Eucharist, Personal devotion
* Prayer Type: Traditional
* Theme: Eucharistic, Sanctification
* Feast Day: None
* Origin: Medieval
* Use Context: Personal, Eucharistic adoration
* Season: General
* Language: Latin
* Approval: None
* Tags: Eucharistic, devotional, sanctification
 
Output the completed MediaWiki Prayer template:
 
<nowiki>{{Prayer
|Name=Anima Christi
|Author=Unknown
|Purpose=Adoration,Petition
|Recipient=Jesus Christ
|LiturgicalContext=Eucharist,Personal devotion
|PrayerType=Traditional
|Theme=Eucharistic,Sanctification
|FeastDay=None
|CanonizationStatus=N/A
|Origin=Medieval
|UseContext=Personal,Eucharistic adoration
|Length=Short
|Season=General
|Language=Latin
|Approval=None
|Tags=Eucharistic,devotional,sanctification
}}</nowiki>

Navigation menu