|
|
| 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 23: |
Line 22: |
| |CanonizationLocation (label=Canonization Location) | | |CanonizationLocation (label=Canonization Location) |
| |PrimaryShrine (label=Primary Shrine) | | |PrimaryShrine (label=Primary Shrine) |
| | |AdditionalVeneration (label=Additional Veneration) |
| |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=List (,) of Page | | |Profession=Page |
| |ReligiousAffiliation=List (,) of Page | | |ReligiousAffiliation=Page |
| |Patronage=List (,) of String | | |Patronage=String |
| |Attributes=List (,) of String | | |Attributes=String |
| |PrimaryShrine=Page | | |PrimaryShrine=Page |
| |AdditionalVeneration=List (,) of String | | |AdditionalVeneration=String}} |
| }} | | </noinclude><includeonly>{{#cargo_store:_table=Saints}} |
| </noinclude><includeonly> | | '''Stored in Cargo:''' {{#cargo_query:|tables=Saints|fields=SaintName|where=SaintName="{{{SaintName|{{PAGENAME}}}}}"|format=list}}<br> |
| {{#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 154: |
Line 106: |
| | <!-- 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 |
| | {{#if: {{{Patronage|}}} | {{#arraymap:{{{Patronage|}}}|,|x|x|, }} | <!-- No Patronage provided -->}} | | | {{{Patronage|}}} |
| |-
| |
| ! 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 192: |
Line 132: |
| | #default = [[Category:AI-Generated]]}} | | | #default = [[Category:AI-Generated]]}} |
| </includeonly> | | </includeonly> |
| <noinclude>
| |
| === 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:
| |
| <pre>
| |
| {{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
| |
| }}
| |
| </pre></noinclude>
| |