Difference between revisions of "Template:Module"

From Ethersex_Wiki
Jump to: navigation, search
(corrected example)
(docu)
 
(12 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<onlyinclude>{| class="wikitable float-right" style="width:330px; font-size:95%;margin-top:0px;"
+
<onlyinclude>{| style="float:right;margin:1em 0 1em 1em; border:1px #AAA solid;background: #f9f9f9;width:330px; font-size:95%;margin-top:0px;"
 
!colspan="2" style="background-color:#CEDAF2; text-align:center"| {{#if: {{{NAME|}}}|<big>{{{NAME}}}</big>|<big>{{PAGENAME}}</big>}}
 
!colspan="2" style="background-color:#CEDAF2; text-align:center"| {{#if: {{{NAME|}}}|<big>{{{NAME}}}</big>|<big>{{PAGENAME}}</big>}}
 
|-
 
|-
Line 15: Line 15:
 
{{!}} style="vertical-align:top;" {{!}}Pinning
 
{{!}} style="vertical-align:top;" {{!}}Pinning
 
{{!}} {{{PINNING}}}
 
{{!}} {{{PINNING}}}
 +
}}
 +
|-
 +
{{#if: {{{ECMD|}}}|
 +
{{!}} style="vertical-align:top;" {{!}}Ecmd
 +
{{!}} {{{ECMD}}}
 +
}}
 +
|-
 +
{{#if: {{{CONTROL6|}}}|
 +
{{!}} style="vertical-align:top;" {{!}}Control6
 +
{{!}} {{{CONTROL6}}}
 +
}}
 +
|-
 +
{{#if: {{{TIMER|}}}|
 +
{{!}} style="vertical-align:top;" {{!}}Uses Timer
 +
{{!}} {{{TIMER}}}
 
}}
 
}}
 
|-
 
|-
Line 34: Line 49:
 
|}</onlyinclude>
 
|}</onlyinclude>
  
 +
 +
 +
== Templates for menuconfig ==
 +
 +
If you use one of the following templates, the module will automatically added to the proper category
 +
 +
{{Codeline|<nowiki>{{I/O}}</nowiki>}}
 +
 +
{{Codeline|<nowiki>{{Protocols}}</nowiki>}}
 +
 +
{{Codeline|<nowiki>{{Applications}}</nowiki>}}
 +
 +
 +
== Templates for STATUS ==
 +
{| style="width:50%"
 +
|-
 +
|
 +
{{Codeline|<nowiki>{{stable}}</nowiki>}}
 +
{{stable}}
 +
{{Codeline|<nowiki>{{Experimental}}</nowiki>}}
 +
{{Experimental}}
 +
{{Codeline|<nowiki>{{In_Development}}</nowiki>}}
 +
{{In Development}}
 +
{{Codeline|<nowiki>{{Unstable}}</nowiki>}}
 +
{{Unstable}}
 +
{{Codeline|<nowiki>{{Deprecated}}</nowiki>}}
 +
{{Deprecated}}
 +
|}
 +
 +
== Templates for ECMD ==
 +
{| style="width:50%"
 +
|-
 +
|
 +
{{Codeline|<nowiki>{{has_ecmd}}</nowiki>}}
 +
|}
 +
or leave blank
 +
 +
== Templates for CONTROL6 ==
 +
{| style="width:50%"
 +
|-
 +
|
 +
{{Codeline|<nowiki>{{has_control6}}</nowiki>}}
 +
|}
 +
or leave blank
 +
 +
== Templates for TIMER ==
 +
{| style="width:50%"
 +
|-
 +
|
 +
{{Codeline|<nowiki>{{occupies_timer|VALUE}}</nowiki>}}
 +
|}
 +
or leave blank
 +
 +
== Example ==
 +
 +
<pre><nowiki>
 +
{{Module
 +
|NAME=Onewire
 +
|MENUCONFIG={{I/O}}->Onewire support
 +
|STATUS={{stable}}
 +
|PINNING=yes
 +
|ECMD={{has_ecmd}}
 +
|CONTROL6={{has_control6}}
 +
|DEPENDS=[[ECMD]]
 +
|REQUIRES= -
 +
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/onewire https://github.com/ethersex/ethersex/tree/master/hardware/onewire]
 +
}}</nowiki></pre>
 +
 +
== Result ==
  
 
{{Module
 
{{Module
 
|NAME=Onewire
 
|NAME=Onewire
|MENUCONFIG=I/O->Onewire support
+
|MENUCONFIG={{I/O}}->Onewire support
|STATUS=stable
+
|STATUS={{stable}}
 
|PINNING=yes
 
|PINNING=yes
 +
|ECMD={{has_ecmd}}
 +
|CONTROL6={{has_control6}}
 
|DEPENDS=[[ECMD]]
 
|DEPENDS=[[ECMD]]
 
|REQUIRES= -
 
|REQUIRES= -
 +
|TIMER={{occupies_timer|1}}
 
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/onewire https://github.com/ethersex/ethersex/tree/master/hardware/onewire]
 
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/onewire https://github.com/ethersex/ethersex/tree/master/hardware/onewire]
 
}}
 
}}

Latest revision as of 21:20, 2 April 2013

Module


Templates for menuconfig

If you use one of the following templates, the module will automatically added to the proper category

{{I/O}}

{{Protocols}}

{{Applications}}


Templates for STATUS

{{stable}}

Stable

{{Experimental}}

Experimental

{{In_Development}}

In Development

{{Unstable}}

Unstable/Broken

{{Deprecated}}

Deprecated

Templates for ECMD

{{has_ecmd}}

or leave blank

Templates for CONTROL6

{{has_control6}}

or leave blank

Templates for TIMER

{{occupies_timer|VALUE}}

or leave blank

Example

{{Module
|NAME=Onewire
|MENUCONFIG={{I/O}}->Onewire support
|STATUS={{stable}}
|PINNING=yes
|ECMD={{has_ecmd}}
|CONTROL6={{has_control6}}
|DEPENDS=[[ECMD]]
|REQUIRES= -
|CODE=[https://github.com/ethersex/ethersex/tree/master/hardware/onewire https://github.com/ethersex/ethersex/tree/master/hardware/onewire]
}}

Result

Onewire
Status
Stable
menuconfig I/O->Onewire support
Pinning yes
Ecmd yes
Control6 yes
Uses Timer Timer 1
Depends on ECMD
Requires -
Code https://github.com/ethersex/ethersex/tree/master/hardware/onewire