Template:Parish: Difference between revisions

no edit summary
No edit summary
No edit summary
Line 120: Line 120:
| {{Parish email}}
| {{Parish email}}
|}[[Category:Parishes]]
|}[[Category:Parishes]]
{{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type|}}}|Basilica}} >= 0 | [[Category:Basilicas]] }} }}
{{#if: {{{Type|}}} |
{{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type|}}}|Cathedral}} >= 0 | [[Category:Cathedrals]] }} }}
  {{#arraymap:{{{Type}}}|,|x|{{#ifexpr: {{#pos:x|Basilica}} >= 0 | [[Category:Basilicas]] }}|}}
{{#if: {{{Type|}}} | {{#ifexpr: {{#pos:{{{Type|}}}|Shrine}} >= 0 | [[Category:Shrines]] }} }}
}}
</includeonly><noinclude>
{{#if: {{{Type|}}} |
  {{#arraymap:{{{Type}}}|,|x|{{#ifexpr: {{#pos:x|Cathedral}} >= 0 | [[Category:Cathedrals]] }}|}}
}}
{{#if: {{{Type|}}} |
  {{#arraymap:{{{Type}}}|,|x|{{#ifexpr: {{#pos:x|Shrine}} >= 0 | [[Category:Shrines]] }}|}}
}}</includeonly><noinclude>
{{Doc}}
{{Doc}}
</noinclude>
</noinclude>