Template:Parish: Difference between revisions

try Maintenance
No edit summary
(try Maintenance)
Line 22: Line 22:
|IsNonParochial (label=Non-Parochial (No Assigned Parish Community)?, type=boolean)
|IsNonParochial (label=Non-Parochial (No Assigned Parish Community)?, type=boolean)
|OperatedBy (label=Operated By (e.g., Jesuits, Franciscans), type=page)
|OperatedBy (label=Operated By (e.g., Jesuits, Franciscans), type=page)
|Maintenance (label=Maintenance tags, list=true, allowed values=Needs expansion,Needs sources,Needs references,Needs images,Needs cleanup,Stub,Under construction)
}}
}}
==Cargo declaration==
==Cargo declaration==
Line 44: Line 45:
|IsNonParochial=Boolean
|IsNonParochial=Boolean
|OperatedBy=Page
|OperatedBy=Page
|Maintenance=List (,) of String
}}
}}
</noinclude>
</noinclude>
<includeonly>
<includeonly>
{{#cargo_store:_table=Parishes}}
{{#cargo_store:_table=Parishes
|Dedication={{{Dedication|}}}
|ShortName={{{ShortName|}}}
|Diocese={{{Diocese|}}}
|Deanery={{{Deanery|}}}
|MailingAddress={{{MailingAddress|}}}
|ParishLocation={{{ParishLocation|}}}
|City={{{City|}}}
|AdministrativeSubdivision={{{AdministrativeSubdivision|}}}
|Country={{{Country|}}}
|County={{{County|}}}
|ParishImage={{{ParishImage|}}}
|ParishWebsite={{{ParishWebsite|}}}
|ParishFounded={{{ParishFounded|}}}
|ParishSchool={{{ParishSchool|}}}
|ParishEmailAddress={{{ParishEmailAddress|}}}
|VeneratedSaints={{{VeneratedSaints|}}}
|Type={{{Type|}}}
|IsNonParochial={{{IsNonParochial|}}}
|OperatedBy={{{OperatedBy|}}}
|Maintenance={{{Maintenance|}}}
}}
 
{| class="wikitable" style="float:right; width:300px; margin-left:15px;"
{| class="wikitable" style="float:right; width:300px; margin-left:15px;"
|-
|-
Line 134: Line 159:
   | None specified
   | None specified
}}
}}
|}[[Category:Parishes]]{{#if: {{{Diocese|}}} | [[Category:{{{Diocese}}}]] }}
|}
<!-- Dynamic categories commented out to avoid parser errors -->
 
<!-- {{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type}}}|Basilica}} >= 0 | [[Category:Basilicas]] }} }} -->
[[Category:Parishes]]
<!-- {{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type}}}|Cathedral}} >= 0 | [[Category:Cathedrals]] }} }} -->
{{#if: {{{Diocese|}}} | [[Category:{{{Diocese}}}]] }}
<!-- {{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type}}}|Shrine}} >= 0 | [[Category:Shrines]] }} }} -->
 
<!-- 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]]    }}
  }}
}}
 
<!-- Optional: You can uncomment and adapt these if you want dynamic categories for Type as well -->
<!-- {{#if: {{{Type|}}} | {{#arraymap:{{{Type}}}|,|t|{{#ifexpr: {{#pos:{{trim|t}}}|Basilica}} >= 0 | [[Category:Basilicas]] }} }} }} -->
<!-- {{#if: {{{Type|}}} | {{#arraymap:{{{Type}}}|,|t|{{#ifexpr: {{#pos:{{trim|t}}}|Cathedral}} >= 0 | [[Category:Cathedrals]] }} }} }} -->
<!-- {{#if: {{{Type|}}} | {{#arraymap:{{{Type}}}|,|t|{{#ifexpr: {{#pos:{{trim|t}}}|Shrine}} >= 0 | [[Category:Shrines]] }} }} }} -->
 
</includeonly><noinclude>
</includeonly><noinclude>
{{Doc}}
{{Doc}}
</noinclude>
</noinclude>