Difference between revisions of "Template:Feature"

From Freephile Wiki
Jump to navigation Jump to search
(unlink the image)
(14 intermediate revisions by the same user not shown)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
This is the 'Feature' template.
+
This is the "Feature" template.
 
+
It should be called in the following format:
It is used like this:
 
 
<pre>
 
<pre>
 
{{Feature
 
{{Feature
|image=
+
|explains=
|imgdesc=
+
|description=
 +
|notes=
 +
|tests=
 +
|examples=
 
}}
 
}}
 
</pre>
 
</pre>
[[Category:Info templates]]
+
Edit the page to see the template text.
 
+
</noinclude><includeonly>{| class="wikitable"
== Template preview ==
+
! Page or feature name
</noinclude><onlyinclude>
+
| [[Feature explanation::{{{explains|}}}]]
{| 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:Dialog-information.svg|14px|link=Special:Browse/{{FULLPAGENAME}}]]</span>
 
|- <!-- *** 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|}}} }} }}
 
|- <!-- *** SLIDESHOW *** -->
 
{{#if: {{{collection|}}} |{{Tablesection |Label={{#ask: [[has image collection::{{{collection|}}}]] |?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: {{#show: {{FULLPAGENAME}} |?feature title}} | | |{{Tablerow |Label=Title: |Value={{#show: {{FULLPAGENAME}} |?feature title }} }} }}
 
 
|-
 
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature description}} | | |{{Tablerow |Label=Description: |Value={{#show: {{FULLPAGENAME}}|?feature description }} }} }}
+
! Description
|- <!-- *** MAP *** -->
+
| [[Feature description::{{{description|}}}]]
{{#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 }} }}
+
! Notes
|- <!-- *** MORE *** -->
+
| [[Feature notes::{{{notes|}}}]]
{{Tablesection |Label=More |Color=#dcf0f7 |Textcolor=#0c2c52 }}
 
 
|-
 
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature notes}} | | |{{Tablerow |Label=Notes: |Value={{#show: {{FULLPAGENAME}} |?feature notes }} }} }}
+
! Test it (after upgrade)
 +
| [[Feature tests::{{{tests|}}}]]
 
|-
 
|-
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature tests}} | | |{{Tablerow |Label=Test: |Value={{#show: {{FULLPAGENAME}} |?feature tests }} }} }}
+
! Examples
|-
+
| [[Feature examples::{{{examples|}}}]]
{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature examples}} | | |{{Tablerow |Label=Example: |Value={{#show: {{FULLPAGENAME}} |?feature examples }} }} }}
 
 
|}
 
|}
<includeonly>[[Category:Feature]]</includeonly>
+
 
</onlyinclude>
+
[[Category:Feature]]
 +
</includeonly>

Revision as of 12:19, 27 April 2020

This is the "Feature" template. It should be called in the following format:

{{Feature
|explains=
|description=
|notes=
|tests=
|examples=
}}

Edit the page to see the template text.