Template:Code Module: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
No edit summary
No edit summary
Line 53: Line 53:
</tr>
</tr>


{{#if:{{{peers|}}}
|
<tr>
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Peer(s):</th>
   <th style="text-align: right; vertical-align: top; width: 150px">Peer(s):</th>
   <td>{{{peers|''none''}}}</td>
   <td>{{{peers}}}</td>
</tr>
</tr>
}}


{{#if:{{{source_dirs|}}}
|
<tr>
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Source Dir(s):</th>
   <th style="text-align: right; vertical-align: top; width: 150px">Source Dir(s):</th>
   <td>{{{source_dirs|}}}</td>
   <td>{{{source_dirs|}}}</td>
</tr>
</tr>
}}


{{#if:{{{url|}}}
{{#if:{{{url|}}}
Line 71: Line 77:
}}
}}


{{#if:{{{group|}}}
|
<tr>
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Discussion&nbsp;Group:</th>
   <th style="text-align: right; vertical-align: top; width: 150px">Discussion&nbsp;Group:</th>
   <td>[http://www.mozilla.org/community/forums/#{{{group}}} mozilla.{{{group}}}]</td>
   <td>[http://www.mozilla.org/community/forums/#{{{group}}} mozilla.{{{group}}}]</td>
</tr>
</tr>
}}


</table>
</table>

Revision as of 11:41, 30 September 2010

This is a template for displaying the details of a Module. Use it as follows:

{{Code_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.

{{Code_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