Template:Module: Difference between revisions
Jump to navigation
Jump to search
(moved Template:Module to Template:Code Module) |
No edit summary |
||
| Line 1: | Line 1: | ||
<noinclude> | |||
This is a template for displaying the details of a Module. Use it as follows: | |||
<nowiki>{{Module</nowiki> | |||
|name=name_of_module | |||
|description=A paragraph of textual description. | |||
|owner=Some Name | |||
|peers=<nowiki>[mailto:markup@isaccepted.com Mark Up]</nowiki>, Other Guy | |||
|group=discussion-group-name-without-leading-'mozilla.' | |||
|source_dirs=source/directory/from/top/of/tree, another/directory | |||
|url=<nowiki>http://www.example.com/relevant/url</nowiki> | |||
}} | |||
E.g. | |||
<nowiki>{{Module</nowiki> | |||
|name=accessibility | |||
|description=Support for platform accessibility APIs. | |||
|owner=Alexander Surkov | |||
|peers=<nowiki>[mailto:marco.zehe@googlemail.com Marco Zehe]</nowiki>, Ginn Chen, David Bolter | |||
|group=dev.accessibility | |||
|source_dirs=accessible/ | |||
|url=<nowiki>http://www.mozilla.org/access/</nowiki> | |||
}} | |||
Which comes out like this: | |||
{{Module | |||
|name=accessibility | |||
|description=Support for platform accessibility APIs. | |||
|owner=Alexander Surkov | |||
|peers=[mailto:marco.zehe@googlemail.com Marco Zehe], Ginn Chen, David Bolter | |||
|group=dev.accessibility | |||
|source_dirs=accessible/ | |||
|url=http://www.mozilla.org/access/ | |||
}} | |||
<hr> | |||
</noinclude><table style="width:100%; margin-bottom: 1em" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}"> | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Name:</th> | |||
<th style="text-align:left">{{{name}}} <sup><small>([[Modules#{{{name}}} |#]])</small></sup></th> | |||
</tr> | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Description:</th> | |||
<td>{{{description}}}</td> | |||
</tr> | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Owner:</th> | |||
<td>{{{owner|''none''}}}</td> | |||
</tr> | |||
{{#if:{{{peers|}}} | |||
| | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Peer(s):</th> | |||
<td>{{{peers}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{source_dirs|}}} | |||
| | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Source Dir(s):</th> | |||
<td>{{{source_dirs|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{url|}}} | |||
| | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">URL:</th> | |||
<td>{{{url|}}}</td> | |||
</tr> | |||
}} | |||
{{#if:{{{group|}}} | |||
| | |||
<tr> | |||
<th style="text-align: right; vertical-align: top; width: 150px">Discussion Group:</th> | |||
<td>[http://www.mozilla.org/community/forums/#{{{group}}} mozilla.{{{group}}}]</td> | |||
</tr> | |||
}} | |||
</table> | |||
Revision as of 16:14, 30 September 2010
This is a template for displaying the details of a Module. Use it as follows:
{{Module
|name=name_of_module
|description=A paragraph of textual description.
|owner=Some Name
|peers=[mailto:markup@isaccepted.com Mark Up], Other Guy
|group=discussion-group-name-without-leading-'mozilla.'
|source_dirs=source/directory/from/top/of/tree, another/directory
|url=http://www.example.com/relevant/url
}}
E.g.
{{Module
|name=accessibility
|description=Support for platform accessibility APIs.
|owner=Alexander Surkov
|peers=[mailto:marco.zehe@googlemail.com Marco Zehe], Ginn Chen, David Bolter
|group=dev.accessibility
|source_dirs=accessible/
|url=http://www.mozilla.org/access/
}}
Which comes out like this:
| Name: | accessibility (#) |
|---|---|
| Description: | Support for platform accessibility APIs. |
| Owner: | Alexander Surkov |
| Peer(s): | Marco Zehe, Ginn Chen, David Bolter |
| Source Dir(s): | accessible/ |
| URL: | http://www.mozilla.org/access/ |
| Discussion Group: | mozilla.dev.accessibility |
| Name: | {{{name}}} ([[Modules#{{{name}}} |#]]) |
|---|---|
| Description: | {{{description}}} |
| Owner: | none |