Difference between revisions of "Template:Field"
From SHA2017 Wiki
(Created page with "{| class="wikitable" name="infobox" style="float: right; width:400px" ! Field Name | [[Field name::{{#replace:{{{Field name|}}}|Category:|}}]] |- | colspan="2" style="text-ali...") |
|||
| (23 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
| − | {| class="wikitable" name="infobox" style="float: right; width:400px" | + | <noinclude> |
| + | This is the field template. doh! | ||
| + | </noinclude> | ||
| + | <includeonly> | ||
| + | {| class="wikitable" name="infobox" style="float: right; width:400px; " | ||
! Field Name | ! Field Name | ||
| [[Field name::{{#replace:{{{Field name|}}}|Category:|}}]] | | [[Field name::{{#replace:{{{Field name|}}}|Category:|}}]] | ||
|- | |- | ||
| colspan="2" style="text-align:center" | | | colspan="2" style="text-align:center" | | ||
| − | {{GetImage| | + | {{GetImage|Field-{{#explode:{{PAGENAME}}|:|1}}}} |
| − | {{#ifeq:{{ImageExists| | + | {{#ifeq:{{ImageExists|Field-{{#explode:{{PAGENAME}}|:|1}}}}|1|[[Picture::{{filepath:{{GetImageFilename|Field-{{#explode:{{PAGENAME}}|:|1}}}}}}| ]]|}} |
|- | |- | ||
| colspan=2 | Generated SHA Flag <small>([https://sha2017.org/design/ experiment here])</small> | | 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="{{#replace:{{{Field name|}}}|Category:|}}" | | | colspan=2 id="flag" style="height:200px; vertical-align:bottom; font-size: 1px;" data-shainput="{{#replace:{{{Field name|}}}|Category:|}}" | | ||
| + | |- | ||
| + | ! Occupation | ||
| + | | {{#expr: | ||
| + | {{formatnum:{{#ask: [[Category:Village]] [[Has Field::{{PAGENAME}}]]| ?Village size needed| format=sum| default=0}}|R}} / | ||
| + | {{formatnum:{{#show: {{PAGENAME}} | ?Field Size | format=sum}}|R}} * 100 | ||
| + | round 0}} % | ||
| + | |- | ||
| + | ! [[Property:Has_loudness | Maximum loudness allowed]] | ||
| + | | {{#show: {{PAGENAME}} | ?Has_loudness}} | ||
| + | |- | ||
| + | ! Named after | ||
| + | | [{{#show: {{PAGENAME}} | ?Has_paetron_url}} {{#show: {{PAGENAME}} | ?Has_paetron}}] | ||
|} | |} | ||
| + | |||
| + | <hr style="clear:both; border: 0; visibility: hidden; padding: 0; margin: 0;" /> | ||
| + | |||
| + | {{#ifexpr: {{#ask:[[Category:Village]] [[Has Field::{{PAGENAME}}]] | format=count }} > 0 | | ||
| + | |||
| + | == Registered Villages == | ||
| + | {{#ask: [[Category:Village]] [[Has Field::{{PAGENAME}}]] | ||
| + | |?Has name=official name | ||
| + | |?Has description=description | ||
| + | |?Has website=website | ||
| + | |?Creation date | ||
| + | |limit=999 | ||
| + | |format=template | ||
| + | |introtemplate=Village/TableEntryIntro | ||
| + | |outrotemplate=Village/TableEntryOutro | ||
| + | |template=Village/TableEntry | ||
| + | |default=0 | ||
| + | }} | ||
| + | | No villages are registered on this field yet.}} | ||
| + | |||
| + | |||
| + | [[Category:{{FULLPAGENAME}}]][[Category:Field]] | ||
| + | </includeonly> | ||
Latest revision as of 18:35, 8 June 2017
This is the field template. doh!