Difference between revisions of "Template:Village"

From SHA2017 Wiki
Jump to: navigation, search
(work with the namespaces we got (villages aint one of them))
(arraymap to arraymaptemplate)
Line 22: Line 22:
 
{{#if: {{#ask: [[Template:Village/{{VillageRemovePrefix|{{PAGENAME}} }}]]}} | {{Village/{{VillageRemovePrefix|{{PAGENAME}} }}}} }}
 
{{#if: {{#ask: [[Template:Village/{{VillageRemovePrefix|{{PAGENAME}} }}]]}} | {{Village/{{VillageRemovePrefix|{{PAGENAME}} }}}} }}
 
! Projects
 
! Projects
| {{#if: {{#ask: [[Projects:+]] [[Located at village::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}} | {{#ask: [[Projects:+]] [[Located at village::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}} |[[Form:Projects|create project]] }}
+
| {{#if: {{#ask: [[Projects:+]] [[Located at village::{{PAGENAME}}]] }} | {{#ask: [[Projects:+]] [[Located at village::{{PAGENAME}}]] }} |[[Form:Projects|create project]] }}
 
|-
 
|-
 
! Self-organized Sessions
 
! Self-organized Sessions
| {{#if: {{#ask: [[Session:+]] [[Processed by village::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}} | {{#ask: [[Session:+]] [[Processed by village::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}} | [[Form:Session|create self-organized session]] }}
+
| {{#if: {{#ask: [[Session:+]] [[Processed by village::{{PAGENAME}}]] }} | {{#ask: [[Session:+]] [[Processed by village::{{PAGENAME}}]] }} | [[Form:Session|create self-organized session]] }}
 
|-
 
|-
{{#if: {{#ask: [[Village:+]] [[Subvillage of::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}} |
+
{{#if: {{#ask: [[Village:+]] [[Subvillage of::{{PAGENAME}}]] }} |
 
{{!}} colspan=2 {{!}} '''Subvillages'''
 
{{!}} colspan=2 {{!}} '''Subvillages'''
{{#ask: [[Village:+]] [[Subvillage of::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]] | format=ul}}
+
{{#ask: [[Village:+]] [[Subvillage of::{{PAGENAME}}]] | format=ul}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}
 
{{#if: {{{Subvillage of|}}} |
 
{{#if: {{{Subvillage of|}}} |
 
! Subvillage of
 
! Subvillage of
{{!}} [[Subvillage of::Village:{{VillageRemovePrefix|{{{Subvillage of}}} }}]]
+
{{!}} [[Subvillage of::Village:{{VillageRemovePrefix|{{{Subvillage of|}}} }}]]
 
{{!}}-
 
{{!}}-
 
}}
 
}}
Line 44: Line 44:
 
{{#if: {{{Has village tag|}}} |
 
{{#if: {{{Has village tag|}}} |
 
! Tags
 
! Tags
{{!}} {{#arraymap:{{{Has village tag|}}}|,|x|{{Village/TagLinks|x}}}}
+
{{!}} {{#arraymaptemplate:{{{Has village tag|}}}|Village/TagLinks|,}}
 
{{!}}-
 
{{!}}-
 
}}
 
}}

Revision as of 23:26, 5 January 2017

Please use Form:Village to create your village page. You can use the list of existing Villages as a reference.