Bureaucrats, Moderators (CommentStreams), Interface administrators, Push subscription managers, Suppressors, Administrators
12,626
edits
No edit summary |
(update some fields as list of items) Tag: Reverted |
||
| Line 7: | Line 7: | ||
|Patronage (label=Patronage) | |Patronage (label=Patronage) | ||
|Attributes (label=Attributes) | |Attributes (label=Attributes) | ||
|AdditionalVeneration (label=Additional Veneration) | |||
|SaintBirthDate (label=Birthdate) | |SaintBirthDate (label=Birthdate) | ||
|SaintBirthPlace (label=Birthplace) | |SaintBirthPlace (label=Birthplace) | ||
| Line 22: | Line 23: | ||
|CanonizationLocation (label=Canonization Location) | |CanonizationLocation (label=Canonization Location) | ||
|PrimaryShrine (label=Primary Shrine) | |PrimaryShrine (label=Primary Shrine) | ||
|SaintMiracle1 (label=Miracle 1) | |SaintMiracle1 (label=Miracle 1) | ||
|SaintMiracle2 (label=Miracle 2) | |SaintMiracle2 (label=Miracle 2) | ||
| Line 86: | Line 86: | ||
|SaintMiracle3=String | |SaintMiracle3=String | ||
|FeastDay=String | |FeastDay=String | ||
|Profession=Page | |Profession=List (,) of Page | ||
|ReligiousAffiliation=Page | |ReligiousAffiliation=List (,) of Page | ||
|Patronage=String | |Patronage=List (,) of String | ||
|Attributes=String | |Attributes=List (,) of String | ||
|PrimaryShrine=Page | |PrimaryShrine=Page | ||
|AdditionalVeneration=String}} | |AdditionalVeneration=List (,) of String | ||
</noinclude><includeonly>{{#cargo_store:_table=Saints}} | }} | ||
</noinclude><includeonly> | |||
{{#cargo_store:_table=Saints | |||
|SaintName={{{SaintName|{{PAGENAME}}}}} | |||
|SaintStage={{{SaintStage|}}} | |||
|FeastDay={{{FeastDay|}}} | |||
|Profession={{{Profession|}}} | |||
|ReligiousAffiliation={{{ReligiousAffiliation|}}} | |||
|Patronage={{{Patronage|}}} | |||
|Attributes={{{Attributes|}}} | |||
|AdditionalVeneration={{{AdditionalVeneration|}}} | |||
|SaintBirthDate={{{SaintBirthDate|}}} | |||
|SaintBirthPlace={{{SaintBirthPlace|}}} | |||
|SaintBirthCoordinates={{{SaintBirthCoordinates|}}} | |||
|SaintDeathDate={{{SaintDeathDate|}}} | |||
|DeathPlace={{{DeathPlace|}}} | |||
|SaintDeathCoordinates={{{SaintDeathCoordinates|}}} | |||
|SaintCauseOfDeath={{{SaintCauseOfDeath|}}} | |||
|BeatificationDate={{{BeatificationDate|}}} | |||
|Beatifier={{{Beatifier|}}} | |||
|BeatificationLocation={{{BeatificationLocation|}}} | |||
|Canonized={{{Canonized|}}} | |||
|CanonizationDate={{{CanonizationDate|}}} | |||
|Canonizer={{{Canonizer|}}} | |||
|CanonizationLocation={{{CanonizationLocation|}}} | |||
|PrimaryShrine={{{PrimaryShrine|}}} | |||
|SaintMiracle1={{{SaintMiracle1|}}} | |||
|SaintMiracle2={{{SaintMiracle2|}}} | |||
|SaintMiracle3={{{SaintMiracle3|}}} | |||
|NotableAddress1={{{NotableAddress1|}}} | |||
|NotableLabel1={{{NotableLabel1|}}} | |||
|NotableCoordinates1={{{NotableCoordinates1|}}} | |||
|NotableAddress2={{{NotableAddress2|}}} | |||
|NotableLabel2={{{NotableLabel2|}}} | |||
|NotableCoordinates2={{{NotableCoordinates2|}}} | |||
|NotableAddress3={{{NotableAddress3|}}} | |||
|NotableLabel3={{{NotableLabel3|}}} | |||
|NotableCoordinates3={{{NotableCoordinates3|}}} | |||
|NotableAddress4={{{NotableAddress4|}}} | |||
|NotableLabel4={{{NotableLabel4|}}} | |||
|NotableCoordinates4={{{NotableCoordinates4|}}} | |||
|NotableAddress5={{{NotableAddress5|}}} | |||
|NotableLabel5={{{NotableLabel5|}}} | |||
|NotableCoordinates5={{{NotableCoordinates5|}}} | |||
|AssociatedCountries={{{AssociatedCountries|}}} | |||
|AssocSubdivisions={{{AssocSubdivisions|}}} | |||
|AssociatedDioceses={{{AssociatedDioceses|}}} | |||
|ReviewLevel={{{ReviewLevel|0}}} | |||
}} | |||
{| style="float:right; width:350px; background-color:#FFF8DC; border:1px solid #6B7280" | {| style="float:right; width:350px; background-color:#FFF8DC; border:1px solid #6B7280" | ||
|- | |- | ||
| Line 106: | Line 154: | ||
| <!-- No FeastDay provided --> | | <!-- No FeastDay provided --> | ||
}} | }} | ||
|- | |||
! Profession | |||
| {{#if: {{{Profession|}}} | {{#arraymap:{{{Profession|}}}|,|x|[[x]]|, }} | <!-- No Profession provided -->}} | |||
|- | |||
! Religious Affiliation | |||
| {{#if: {{{ReligiousAffiliation|}}} | {{#arraymap:{{{ReligiousAffiliation|}}}|,|x|[[x]]|, }} | <!-- No Religious Affiliation provided -->}} | |||
|- | |- | ||
! Patronage | ! Patronage | ||
| {{{Patronage|}}} | | {{#if: {{{Patronage|}}} | {{#arraymap:{{{Patronage|}}}|,|x|x|, }} | <!-- No Patronage provided -->}} | ||
|- | |||
! Attributes | |||
| {{#if: {{{Attributes|}}} | {{#arraymap:{{{Attributes|}}}|,|x|x|, }} | <!-- No Attributes provided -->}} | |||
|- | |||
! Additional Veneration | |||
| {{#if: {{{AdditionalVeneration|}}} | {{#arraymap:{{{AdditionalVeneration|}}}|,|x|x|, }} | <!-- No Additional Veneration provided -->}} | |||
|- | |- | ||
! Birthplace | ! Birthplace | ||
| Line 132: | Line 192: | ||
| #default = [[Category:AI-Generated]]}} | | #default = [[Category:AI-Generated]]}} | ||
</includeonly> | </includeonly> | ||
=== Notes === | |||
* The Cargo table `Saints` must be redefined to apply these changes. If the table already exists, use `Special:CreateCargoTable` with the updated `#cargo_declare` code or drop and recreate the table (ensure to back up existing data). | |||
* The `#arraymap` parser function is used in the infobox to format list fields: | |||
- For `Profession` and `ReligiousAffiliation` (type `List (,) of Page`), each value is wrapped in `[[x]]` to create wiki links. | |||
- For `Patronage`, `Attributes`, and `AdditionalVeneration` (type `List (,) of String`), values are displayed as plain text, separated by commas. | |||
* If using a form (e.g., `Form:Saints`), update the form definition to use `tokens` input type for these fields to allow multiple values with autocompletion (for `Page` fields) or free text (for `String` fields). | |||
* Example usage: | |||
```mediawiki | |||
{{Saints | |||
|SaintName=St. Francis of Assisi | |||
|FeastDay=October 04 | |||
|Profession=Priest, Founder, Preacher | |||
|ReligiousAffiliation=Franciscan Order, Catholic Church | |||
|Patronage=Animals, Merchants, Ecology | |||
|Attributes=Stigmata, Habit, Birds | |||
|AdditionalVeneration=Local Cult, Pilgrimages, Statues | |||
|SaintBirthPlace=Assisi, Italy | |||
|DeathPlace=Assisi, Italy | |||
|PrimaryShrine=Basilica of San Francesco d'Assisi | |||
|ReviewLevel=3 | |||
}} | |||