Template:Saints: Difference between revisions

add Maintenance and explicitly define cargo_store
(add LiturgicalClass)
(add Maintenance and explicitly define cargo_store)
 
Line 1: Line 1:
<noinclude>
<noinclude>
{{#template_params:SaintName (label=Saint)
{{#template_params:
|SaintsName (label=Saint)
|SaintStage (label=Stage)
|SaintStage (label=Stage)
|FeastDay (label=Feast Day, e.g., "May 25" or "June 07", use leading zero for single-digit days)
|FeastDay (label=Feast Day, e.g., "May 25" or "June 07", use leading zero for single-digit days)
Line 45: Line 46:
|AssociatedDioceses (label=Associated Dioceses)
|AssociatedDioceses (label=Associated Dioceses)
|ReviewLevel (label=Review Level, 0=AI-Generated, 1=Minimal Human Review, 2=Moderate Human Review, 3=Substantial Human Review, 4=Extensive Human Review, 5=Fully Human-Validated)
|ReviewLevel (label=Review Level, 0=AI-Generated, 1=Minimal Human Review, 2=Moderate Human Review, 3=Substantial Human Review, 4=Extensive Human Review, 5=Fully Human-Validated)
|LiturgicalClass (label=Liturgical Class)}}
|LiturgicalClass (label=Liturgical Class)
|Maintenance (label=Maintenance tags, list=true, allowed values={{:Template:Maintenance Tags}})
}}
{{#cargo_declare:_table=Saints
{{#cargo_declare:_table=Saints
|SaintName=Page
|SaintName=Page
Line 92: Line 95:
|PrimaryShrine=Page
|PrimaryShrine=Page
|AdditionalVeneration=String
|AdditionalVeneration=String
|LiturgicalClass=String}}
|LiturgicalClass=String
</noinclude><includeonly>{{#cargo_store:_table=Saints}}
|Maintenance=List (,) of String
}}
</noinclude>
 
<includeonly>
{{#cargo_store:_table=Saints
|SaintName={{{SaintName|}}}
|SaintStage={{{SaintStage|}}}
|FeastDay={{{FeastDay|}}}
|Profession={{{Profession|}}}
|ReligiousAffiliation={{{ReligiousAffiliation|}}}
|Patronage={{{Patronage|}}}
|Attributes={{{Attributes|}}}
|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|}}}
|AdditionalVeneration={{{AdditionalVeneration|}}}
|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|}}}
|LiturgicalClass={{{LiturgicalClass|}}}
|Maintenance={{{Maintenance|}}}
}}
 
'''Stored in Cargo:''' {{#cargo_query:|tables=Saints|fields=SaintName|where=SaintName="{{{SaintName|{{PAGENAME}}}}}"|format=list}}<br>
'''Stored in Cargo:''' {{#cargo_query:|tables=Saints|fields=SaintName|where=SaintName="{{{SaintName|{{PAGENAME}}}}}"|format=list}}<br>
{| 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 126: Line 184:
| {{{PrimaryShrine|}}}
| {{{PrimaryShrine|}}}
|}
|}
[[Category:Saints]]
[[Category:Saints]]
{{#switch: {{{ReviewLevel|0}}}
{{#switch: {{{ReviewLevel|0}}}
Line 135: Line 194:
| 5 = [[Category:Human-Validated]]
| 5 = [[Category:Human-Validated]]
| #default = [[Category:AI-Generated]]}}
| #default = [[Category:AI-Generated]]}}
<!-- Maintenance categories -->
{{#if: {{{Maintenance|}}} |
  {{#arraymap:{{{Maintenance|}}}|,|xxx|
    {{#ifeq: {{trim|xxx}} | Needs expansion    | [[Category:Articles needing expansion]]    }}
    {{#ifeq: {{trim|xxx}} | Needs sources        | [[Category:Articles needing sources]]        }}
    {{#ifeq: {{trim|xxx}} | Needs references    | [[Category:Articles needing references]]    }}
    {{#ifeq: {{trim|xxx}} | Needs images        | [[Category:Articles needing images]]        }}
    {{#ifeq: {{trim|xxx}} | Needs cleanup        | [[Category:Articles needing cleanup]]        }}
    {{#ifeq: {{trim|xxx}} | Stub                | [[Category:Stubs]]                          }}
    {{#ifeq: {{trim|xxx}} | Under construction  | [[Category:Articles under construction]]    }}
  }}
}}
</includeonly><noinclude>{{Doc}}</noinclude>
</includeonly><noinclude>{{Doc}}</noinclude>