Difference between revisions of "Template:Village"

From SHA2017 Wiki
Jump to: navigation, search
m (Add setters to convert all variables into properties)
 
(74 intermediate revisions by 7 users not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 
Please use [[Form:Village]] to create your village page. You can use the list of existing [[Villages]] as a reference.
 
Please use [[Form:Village]] to create your village page. You can use the list of existing [[Villages]] as a reference.
</noinclude>
+
</noinclude><includeonly>
<includeonly>
 
 
{{#set:
 
{{#set:
Has website={{{Has_website|}}}|
+
Has_website={{{Has website|}}}|
Has contact={{{Has_contact|}}}|
+
Has_contact={{{Has contact|}}}|
Has description={{{Has_description|}}}|
+
Has_description={{{Has description|}}}|
Related to village={{{Related_to_village|}}}|
+
Related_to_village={{{Related to village|}}}|
Part of={{{Part_of|}}}|
+
Part_of={{{Part of|}}}|
Has village tag={{{Has_village_tag|}}}|
+
Has_village_tag={{{Has village tag|}}}|
Provides session location={{{Provides_session_location|}}}|
+
Provides_session_location={{{Provides session location|}}}|
Has orga contact={{{Has_orga_contact|}}}|
+
Has_orga_contact={{{Has orga contact|}}}|
On site orga contact={{{On_site_orga_contact|}}}|
+
On_site_orga_contact={{{On site orga contact|}}}|
Village citizen count={{{Village_citizen_count|}}}|
+
Village_citizen_count={{{Village citizen count|}}}|
Village Needs power={{{Village_Needs_power|}}}|
+
Village_Needs_power={{{Village Needs power|}}}|
Village size needed={{{Village_size_needed|}}}|
+
Village_size_needed={{{Village size needed|}}}|
Village sleepingtents num={{{Village_sleepingtents_num|}}}|
+
Village_sleepingtents_num={{{Village sleepingtents num|}}}|
Village hacktents num={{{Village_hacktents_num|}}}|
+
Village_hacktents_num={{{Village hacktents num|}}}|
Village hacktents floorspace={{{Village_hacktents_floorspace|}}}|
+
Village_hacktents_floorspace={{{Village hacktents floorspace|}}}|
Village brings big stuff={{{Village_brings_big_stuff|}}}|
+
Village_brings_big_stuff={{{Village brings big stuff|}}}|
Village Plans={{{Village_Plans|}}}|
+
Village_planning_notes={{{Village planning notes|}}}|
Village planning notes={{{Village_planning_notes|}}}|
+
Village_Special_Vehicle={{{Village Special Vehicle|}}}|
Village arrival time={{{Village_arrival_time|}}}|
+
Village_content_in_frab={{{Village frab|}}}|
Village big trucks={{{Village_big_trucks|}}}|
+
Village_space_for_content={{{Village content space|}}}|
Villages vehicles unload time={{{Villages_vehicles_unload_time|}}}|
+
Village_Plans={{{Village Plans|}}}|+sep=;|
Villages buildup hours={{{Villages_buildup_hours|}}}|
+
Has_image_url={{filepath:{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}}}
Villages buildup people before day0={{{Villages_buildup_people_before_day0|}}}|
+
}}{{Warning/ImproperValue}}{{#if: {{{VillageHeader|}}} | {{{VillageHeader}}}}}
Villages buildup people day0={{{Villages_buildup_people_day0|}}}|
+
{| class="wikitable" name="infobox" style="float: right; width:400px"
Village teardown time={{{Village_teardown_time|}}}|
+
! Village Name
Village buildup notes={{{Village_buildup_notes|}}}|
+
| [[Has name::{{{Has name|}}}]]
 
+
|-
}}
+
| colspan="2" style="text-align:center" |
 
+
{{GetImage|Village-{{#explode:{{PAGENAME}}|:|1}}}}
{{Warning/ImproperValue}}
+
{{#ifeq:{{ImageExists|Village-{{#explode:{{PAGENAME}}|:|1}}}}|1|[[Picture::{{filepath:{{GetImageFilename|Village-{{#explode:{{PAGENAME}}|:|1}}}}}}| ]]|}}
<!-- {{Warning/OldFormat}} -->
+
|-
{| {{InfoBox/Village}}
+
| colspan=2 | Generated SHA Flag <small>([https://sha2017.org/design/ experiment here])</small>
 +
|-
 +
| colspan=2 id="flag" style="height:200px;  vertical-align:bottom; font-size: 1px;" data-shainput="{{{Has name|}}}" |
 +
|-
 
! Website
 
! Website
 
| {{#arraymap:{{{Has website|}}}|,|x|[[Has website::x]]}}
 
| {{#arraymap:{{{Has website|}}}|,|x|[[Has website::x]]}}
Line 47: Line 49:
 
! Part of Cluster
 
! Part of Cluster
 
| [[Part_of::{{{Part of|}}}]]
 
| [[Part_of::{{{Part of|}}}]]
 +
[[image:add.png|12x12px|link=Form:Cluster]] [[Form:Cluster|create cluster]]
 +
|-
 +
! Assigned Field
 +
| [[Has Field::{{{Has Field|}}}]]
 
|-
 
|-
 
! Description
 
! Description
Line 52: Line 58:
 
|-
 
|-
 
! Members
 
! Members
| {{#ask: [[User::+]] [[Part of::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]}}
+
| {{#ask: [[Category:Users]] [[Inhabitant of::Village:{{VillageRemovePrefix|{{PAGENAME}} }}]]|format=ul}}
 +
<small>Edit your membership on your [[Special:MyPage|user page, here]], and then on "edit with form" at the top.</small>
 
|-
 
|-
 
{{#ifexist: Template:Village/{{VillageRemovePrefix|{{PAGENAME}} }}| {{Village/{{VillageRemovePrefix|{{PAGENAME}} }} }} }}
 
{{#ifexist: Template:Village/{{VillageRemovePrefix|{{PAGENAME}} }}| {{Village/{{VillageRemovePrefix|{{PAGENAME}} }} }} }}
 
! Projects
 
! Projects
| {{#if: {{#ask: [[Projects::+]] [[Located at village::{{PAGENAME}}]] }} | {{#ask: [[Projects::+]] [[Located at village::{{PAGENAME}}]] }} |[[Form:Projects|create project]] }}
+
| {{#if: {{#ask: [[Category:Projects]] [[Located at village::{{PAGENAME}}]] }} | {{#ask: [[Category:Projects]] [[Located at village::{{PAGENAME}}]] |?Has name|format=ul|template=ProjectName|link=none}} | }}  
 +
[[image:add.png|12x12px|link=Form:Project]] [[Form:Project|create project]]
 
|-
 
|-
 
! Self-organized Sessions
 
! Self-organized Sessions
| {{#if: {{#ask: [[Session::+]] [[Processed by village::{{PAGENAME}}]] }} | {{#ask: [[Session::+]] [[Processed by village::{{PAGENAME}}]] }} | [[Form:Session|create self-organized session]] }}
+
| {{#if: {{#ask: [[Category:Session]] [[Processed by village::{{PAGENAME}}]] }} | {{#ask: [[Category:Session]] [[Processed by village::{{PAGENAME}}]]|format=ul}} | }}
 +
[[image:add.png|12x12px|link=Form:Session]] [[Form:Session|create self-organized session]]
 
|-
 
|-
 
{{#if: {{#ask: [[Village::+]] [[Subvillage of::{{PAGENAME}}]] }} |
 
{{#if: {{#ask: [[Village::+]] [[Subvillage of::{{PAGENAME}}]] }} |
Line 77: Line 86:
 
}}
 
}}
 
{{#if: {{{Has village tag|}}} |
 
{{#if: {{{Has village tag|}}} |
! Tags
+
! Interests
 
{{!}} {{#arraymaptemplate:{{{Has village tag|}}}|Village/TagLinks|,}}
 
{{!}} {{#arraymaptemplate:{{{Has village tag|}}}|Village/TagLinks|,}}
 
{{!}}-
 
{{!}}-
Line 84: Line 93:
 
| {{#ask: [[{{PAGENAME}}]] |?Creation date |mainlabel=- |headers=hide }}
 
| {{#ask: [[{{PAGENAME}}]] |?Creation date |mainlabel=- |headers=hide }}
 
|-
 
|-
! Location for self-organized sessions
+
! Hosts self-organized sessions
| [[Provides session location::{{{Provides session location|}}}]] {{#ifeq: {{{Provides session location|}}} | no | | [[Category:Session location]] }}
+
| [[Provides session location::{{{Provides session location|}}}]] {{#ifeq: {{lc:{{{Provides session location|}}}}} | no | | [[Category:Session location]] }}
 
|-
 
|-
 
{{#if: {{{Plans sessions|}}} |
 
{{#if: {{{Plans sessions|}}} |
Line 94: Line 103:
 
| colspan=2 | {{Village/Navigation}}
 
| colspan=2 | {{Village/Navigation}}
 
|-
 
|-
! Location
+
| colspan=2 style="text-align:right;" | <small>{{Refresh}}</small>
| [[Has x-coordinate::{{{Has x-coordinate|}}}]], [[Has y-coordinate::{{{Has y-coordinate|}}}]]
+
|} {{#if: {{{HideInhabitants|}}} | | {{Inhabitants}} }}
|-
 
|}
 
 
<div style="display: none;">
 
<div style="display: none;">
 
{|
 
{|
Line 118: Line 125:
 
|-
 
|-
 
! Village plans
 
! Village plans
| {{#if: {{{Village plans|}}} | {{#arraymap:{{{Village plans|}}}|;|x|[[Village plans::x]]}} }}
+
| {{#if: {{{Village Plans|}}}|{{#arraymap:{{{Village Plans|}}}|;|x|[[Village Plans::x]]}}}}
 
|-
 
|-
 
! Village constraints
 
! Village constraints
Line 142: Line 149:
 
|-
 
|-
 
|}
 
|}
</div>
 
<div style="text-align: right;">
 
{{Refresh}}
 
 
</div>
 
</div>
 
<!--
 
<!--
{{#ifeq: {{{Provides session location|}}} | no | | {{Village/Calendar}} }}
+
{{#ifeq: {{lc:{{{Provides session location|}}}}} | no | | {{Village/Calendar}} }}
 
-->
 
-->
[[Category:Village]]
+
[[Category:Village]][[Category:{{{Has Field|No Field}}}]][[Category:Pages with interest]]
 +
{{MapObject|Handle = {{{MapObjectHandle|unknown}}}}}
 
</includeonly>
 
</includeonly>

Latest revision as of 11:29, 2 August 2017

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