Changes

Jump to navigation Jump to search
1,831 bytes added ,  15:26, 15 May 2020
unlink the image
<noinclude>
This is the "'Feature" ' template. It should be called in the following formatis used like this:
<pre>
{{Feature
|explainsimage= |description=|notes=|tests=|examplesimgdesc=
}}
</pre>
Edit the page to see the template text.[[Category:Info templates]] == Template preview ==</noinclude><includeonlyonlyinclude>{| class="wikitablesmworgtable-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|}}} }} }}|- <! Page or feature name-- *** SLIDESHOW *** -->{{#if: {{{collection| }}} |{{Tablesection |Label={{#ask: [[Feature explanationhas 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: {{#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 }} }} }}| [[Feature description- <!-- *** MAP *** -->{{#if:{{#show:{{FULLPAGENAME}} |?Has coordinates }} |{{descriptionTablesection |Label=Map |Color=#dcf0f7 |Textcolor=#0c2c52 }}}}]]
|-
! Notes{{#if: {{#show: {{FULLPAGENAME}} |?Has coordinates }} |{{Tablesection | [[Feature notesLabel={{#display_map:{{#show:{{FULLPAGENAME}} |?Has coordinates }} |width=260 |height=260 |service=leaflet }} |Color=#fff }} }}|- <!-- *** MORE *** -->{notes{Tablesection |Label=More |Color=#dcf0f7 |Textcolor=#0c2c52 }}}]]
|-
! Test it (after upgrade){{#ifeq: {{#show: {{FULLPAGENAME}} | [[Feature tests?feature notes}} | | |{{Tablerow |Label=Notes:|Value={{#show:{{{testsFULLPAGENAME}} |?feature notes }} }}}}]]
|-
! Examples{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature tests}} | | |{{Tablerow |Label=Test: |Value={{#show: {{FULLPAGENAME}} |?feature tests }} }} }}| [[Feature -{{#ifeq: {{#show: {{FULLPAGENAME}} |?feature examples}} | | |{{Tablerow |Label=Example:|Value={{#show:{{{FULLPAGENAME}} |?feature examples|}}}]]} }}
|}
 <includeonly>[[Category:Feature]]</includeonly></includeonlyonlyinclude>

Navigation menu