Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
11,987
edits
No edit summary |
No edit summary |
||
| Line 1: | Line 1: | ||
Develop a MediaWiki Cargo template named <code>Template:Prayer</code> for defining, storing, and displaying data about Catholic prayers in a Cargo table named <code>Prayers</code>. 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><code>{{#cargo_declare:_table=Prayers}}</code></nowiki>) and data storage/display (<nowiki><code>{{#cargo_store:_table=Prayers}}</code></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 <code>Text</code> instead of <code>List</code> for fields that accept multiple values, as <code>List</code> is not available in the wiki’s supported classes, and avoid SQL reserved keywords (e.g., use <code>UseContext</code> instead of <code>Usage</code>). Ensure compatibility with a Page Forms form (<code>Form:Prayer</code>) modeled after a provided <code>Form:Saints</code>, with an input box for creating pages in the Prayer namespace. | Develop a MediaWiki Cargo template named <code>Template:Prayer</code> for defining, storing, and displaying data about Catholic prayers in a Cargo table named <code>Prayers</code>. 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><code>{{#cargo_declare:_table=Prayers}}</code></nowiki>) and data storage/display (<nowiki><code>{{#cargo_store:_table=Prayers}}</code></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 <code>Text</code> instead of <code>List</code> for fields that accept multiple values, as <code>List</code> is not available in the wiki’s supported classes, and avoid SQL reserved keywords (e.g., use <code>UseContext</code> instead of <code>Usage</code>). Ensure compatibility with a Page Forms form (<code>Form:Prayer</code>) modeled after a provided <code>Form:Saints</code>, with an input box for creating pages in the Prayer namespace. | ||
== Requirements == | |||
# Define the Cargo table within <nowiki><code>Template:Prayer</nowiki></code> using <nowiki><code>{{#cargo_declare:_table=Prayers}}</nowiki></code> with the following fields: | # Define the Cargo table within <nowiki><code>Template:Prayer</nowiki></code> using <nowiki><code>{{#cargo_declare:_table=Prayers}}</nowiki></code> with the following fields: | ||
#* <nowiki><code>Name</nowiki></code> (String, indexed): The prayer’s title. | #* <nowiki><code>Name</nowiki></code> (String, indexed): The prayer’s title. | ||