Template:Feature: Difference between revisions

From Freephile Wiki
initial conversion to SMW 'City' template
unlink the image
 
(10 intermediate revisions by the same user not shown)
Line 14: Line 14:
</noinclude><onlyinclude>
</noinclude><onlyinclude>
{| class="smworgtable-v2" style="position: relative; float: right; clear: right; width: 260px;"
{| class="smworgtable-v2" style="position: relative; float: right; clear: right; width: 260px;"
! colspan="2" style="padding-top: 2px; " |  {{PAGENAME}} <span style="position: relative; top:-2px; float: right;">[[File:SMW-Info-button.png|14px|link=Special:Browse/{{FULLPAGENAME}}]]</span>
! colspan="2" style="padding-top: 2px; " |  {{PAGENAME}} <span style="position: relative; top:-2px; float: right;">[[File:Dialog-information.svg|14px|link=Special:Browse/{{FULLPAGENAME}}]]</span>
|- <!-- *** IMAGE *** -->
|- <!-- *** IMAGE *** -->
{{#if: {{{image|}}} |{{Tablesection |Label=[[File:{{{image|}}}|280px|center|{{{imgdesc|}}}]] |Textcolor=#ddd |Color=#fff }}{{#set: Has image=File:{{{image|}}} }} }}
{{#if: {{{image|}}} |{{Tablesection |Label=[[File:{{{image|}}}|280px|center|link=|{{{imgdesc|}}}]] |Textcolor=#ddd |Color=#fff }}{{#set: Has image=File:{{{image|}}} }} }}
|-
|-
{{#ifeq: {{{imgdesc|}}} | | |{{Tablerow |Label=Image shows: |Value={{{imgdesc|}}} }} }}
{{#ifeq: {{{imgdesc|}}} | | |{{Tablerow |Label=Image shows: |Value={{{imgdesc|}}} }} }}
Line 24: Line 24:
{{Tablesection |Label=Summary |Color=#dcf0f7 |Textcolor=#0c2c52 }}   
{{Tablesection |Label=Summary |Color=#dcf0f7 |Textcolor=#0c2c52 }}   
|-
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?Population}} | | |{{Tablerow |Label=Population: |Value={{#show: {{FULLPAGENAME}} |?Population }} }} }}
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature title}} | | |{{Tablerow |Label=Title: |Value={{#show: {{FULLPAGENAME}} |?feature title }} }} }}
|-
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?Area}} | | |{{Tablerow |Label=Area: |Value={{#show: {{FULLPAGENAME}}|?Area }} }} }}
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature description}} | | |{{Tablerow |Label=Description: |Value={{#show: {{FULLPAGENAME}}|?feature description }} }} }}
|- <!-- *** MAP *** -->
{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |Label=Map |Color=#dcf0f7 |Textcolor=#0c2c52 }} }}
|-
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?Located in}} | | |{{Tablerow |Label=Located in: |Value={{#show: {{FULLPAGENAME}} |?Located in }} }} }}
{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |Label={{#display_map: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |width=260 |height=260 |service=leaflet }} |Color=#fff }} }}
|- <!-- *** MORE *** -->
{{Tablesection |Label=More |Color=#dcf0f7 |Textcolor=#0c2c52 }}
|-
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?Average rainy days}} | | |{{Tablerow |Label=Average rainy days: |Value={{#show: {{FULLPAGENAME}} |?Average rainy days }} }} }}
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature notes}} | | |{{Tablerow |Label=Notes: |Value={{#show: {{FULLPAGENAME}} |?feature notes }} }} }}
|- <!-- *** CHARTING *** -->
{{#if: {{{chart|}}} |{{Tablesection |Label=Chart |Color=#dcf0f7 |Textcolor=#fff }} }}
|-
|-
{{#if: {{{chart|}}} |{{Tablesection |Label={{{chart|}}} |Color=#fff }} }}
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature tests}} | | |{{Tablerow |Label=Test: |Value={{#show: {{FULLPAGENAME}} |?feature tests }} }} }}
|- <!-- *** MAP *** -->
{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |Label=Map |Color=#dcf0f7 |Textcolor=#0c2c52 }} }}
|-
|-
{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection |Label={{#display_map: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |width=260 |height=260 |service=leaflet }} |Color=#fff }} }}
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature examples}} | | |{{Tablerow |Label=Example: |Value={{#show: {{FULLPAGENAME}} |?feature examples }} }} }}
|}
|}
<includeonly>{{DISPLAYTITLE:{{{title|}}} }}[[Category:Feature]]</includeonly>
<includeonly>[[Category:Feature]]</includeonly>
</onlyinclude>
</onlyinclude>

Latest revision as of 14:26, 15 May 2020

This is the 'Feature' template.

It is used like this:

{{Feature
 |image=
 |imgdesc=
}}

Template preview

Feature
Summary
More