Changes

Jump to navigation Jump to search
1,725 bytes added ,  17:44, 13 May 2020
initial conversion to SMW 'City' template
<includeonlynoinclude>This is the 'Feature' template. It is used like this:<pre>{{Feature |image= |imgdesc=}}</pre>[[Category:Info templates]] == Template preview ==</noinclude><onlyinclude>{| class="wikitablesmworgtable-v2" alignstyle="position: relative; float: right; clear: right; width: 260px;"! colspan="2" style="widthpadding-top: 2px; " | {{PAGENAME}} <span style="position: relative; top:min-content2px; float: right;">[[File:SMW-Info-button.png|14px|link=Special:Browse/{{FULLPAGENAME}}]]</span>|- <!-- *** IMAGE *** -->{{#if: {{{image|}}} |{{Tablesection |Label=[[File:{{{image|}}}|280px|center|{{{imgdesc|}}}]] |Textcolor=#ddd |Color=#fff }}{{#set: Has image=File:{{{image|}}} }} }}
|-
| {{#ifeq: {{{explainsimgdesc|}}}| | |{{Tablerow |Label=Image shows: |Value={{{descriptionimgdesc|}}} }}}}| - <!-- *** SLIDESHOW *** -->{{#if: {{{notescollection|}}} |{{Tablesection |add notesLabel={{#ask:[[has image collection::{{{explainscollection|}}}]]|?Has description |widths=220 |heights=220 |format=gallery |widget=slideshow |class=demo-center |navigation=auto |autocaptions=no }} |Color=#fff |Textcolor=#aaa }}} }|- <!-- *** SUMMARY *** -->{{Tablesection |Label=Summary |Color=#dcf0f7 |Textcolor=#0c2c52 }} | -{{#ifeq: {notes{#show: {{FULLPAGENAME}} |?Population}} | | |{{Tablerow |Label=Population: |Value={{#show: {{FULLPAGENAME}} |?Population }}}} }}| -{{#ifeq: {{#ifshow: {{FULLPAGENAME}} |?Area}} | | |{{Tablerow |Label=Area: |Value={{#show: {{FULLPAGENAME}}|?Area }} }} }}|-{{#ifeq: {{#show: {{FULLPAGENAME}} |?Located in}} | | |{{Tablerow |Label=Located in: |Value={{#show: {{FULLPAGENAME}} |?Located in }} }} }}|-{{#ifeq: {{#show: {{FULLPAGENAME}} |?Average rainy days}} | | |{{Tablerow |Label=Average rainy days: |Value={{#show: {tests{FULLPAGENAME}} |?Average rainy days }}} } }}| - <!-- *** CHARTING *** -->{{#if: {{{testschart|}}} |{{Tablesection |Label=Chart |Color=#dcf0f7 |Textcolor=#fff }} }}| -{{#if: {{{exampleschart|}}} | {{Tablesection |Label={examples{{chart|}}} |Color=#fff }} }}| - <!-- *** MAP *** -->{{#formlinkif:form{{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |Label=Map |link textColor=edit#dcf0f7 |link typeTextcolor=post button#0c2c52 }} }}|tooltip=Edit with Form-{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |targetLabel={{PAGENAME#display_map: {{#show: {{FULLPAGENAME}} |?Has coordinates }}|popupwidth=260 |reloadheight=260 |service=leaflet }} |returntoColor=Features#fff }} }}
|}
 <includeonly>{{#declareDISPLAYTITLE:feature explanation=explains{{{title|feature description=description|feature notes=notes|feature tests=tests|feature examples=examples}}} }}[[Category:Feature]] [[Category:Wiki]]</includeonly><noinclude>{{documentation}}</noincludeonlyinclude>

Navigation menu