Difference between revisions of "Template:Module"

From Creative Commons
Jump to: navigation, search
Line 46: Line 46:
 
<hr>
 
<hr>
  
</noinclude><table style="width:100%; margin-bottom: 1em; border:1px black" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}">
+
</noinclude><table style="width:100%; margin-bottom: 1em; border: 2px solid lightgray;" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}">
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Name:</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Name:</th>
 
   <th style="text-align:left">{{{name}}} <sup><small>([[#{{{name}}} |#]])</small></sup></th>
 
   <th style="text-align:left">{{{name}}} <sup><small>([[#{{{name}}} |#]])</small></sup></th>
 
</tr>
 
</tr>
  
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Description:</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Description:</th>
 
   <td>{{{description}}}</td>
 
   <td>{{{description}}}</td>
 
</tr>
 
</tr>
  
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">{{#if:{{{contentowner|}}}|Technical&nbsp;}}Owner:</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">{{#if:{{{contentowner|}}}|Technical&nbsp;}}Owner:</th>
 
   <td>{{{owner|''none''}}}</td>
 
   <td>{{{owner|''none''}}}</td>
 
</tr>
 
</tr>
Line 65: Line 65:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Content Owner:</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Content Owner:</th>
 
   <td>{{{contentowner}}}</td>
 
   <td>{{{contentowner}}}</td>
 
</tr>
 
</tr>
Line 73: Line 73:
 
|
 
|
 
<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; border-right: 2px solid lightgray; padding-right: 0.5em;">Peer(s):</th>
 
   <td>{{{peers}}}</td>
 
   <td>{{{peers}}}</td>
 
</tr>
 
</tr>
Line 81: Line 81:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Advisor(s):</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Advisor(s):</th>
 
   <td>{{{advisors}}}</td>
 
   <td>{{{advisors}}}</td>
 
</tr>
 
</tr>
Line 89: Line 89:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Content Owner(s):</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Content Owner(s):</th>
 
   <td>{{{content}}}</td>
 
   <td>{{{content}}}</td>
 
</tr>
 
</tr>
Line 97: Line 97:
 
|
 
|
 
<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; border-right: 2px solid lightgray; padding-right: 0.5em;">Source Dir(s):</th>
 
   <td>{{{source_dirs|}}}</td>
 
   <td>{{{source_dirs|}}}</td>
 
</tr>
 
</tr>
Line 105: Line 105:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Bugzilla Component(s):</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Bugzilla Component(s):</th>
 
   <td>{{{components|}}}</td>
 
   <td>{{{components|}}}</td>
 
</tr>
 
</tr>
Line 113: Line 113:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">URL:</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">URL:</th>
 
   <td>{{{url|}}}</td>
 
   <td>{{{url|}}}</td>
 
</tr>
 
</tr>
Line 121: Line 121:
 
|
 
|
 
<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; border-right: 2px solid lightgray; padding-right: 0.5em;">Discussion&nbsp;Group:</th>
 
   <td>[http://www.mozilla.org/community/forums/#{{{group}}} {{{group}}}]</td>
 
   <td>[http://www.mozilla.org/community/forums/#{{{group}}} {{{group}}}]</td>
 
</tr>
 
</tr>
Line 129: Line 129:
 
|
 
|
 
<tr>
 
<tr>
   <th style="text-align: right; vertical-align: top; width: 150px">Discussion Forum(s):</th>
+
   <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Discussion Forum(s):</th>
 
   <td>{{{forum|}}}</td>
 
   <td>{{{forum|}}}</td>
 
</tr>
 
</tr>

Revision as of 23:33, 1 September 2013

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
|contentowner=Some Other Name (used for some websites where content owner is different from technical owner)
|peers=[mailto:markup@isaccepted.com Mark Up], Other Guy
|advisors=[mailto:markup@isaccepted.com Smart Girl], Smart Guy
|content=[mailto:markup@isaccepted.com Other Smart Girl], Other Smart Guy
|group=discussion-group-name-without-leading-'mozilla.'
|forum=[http://example.com/link/to/forum Our Discussion Forum] (for modules without a newsgroup)
|source_dirs=source/directory/from/top/of/tree, another/directory
|components=BugzillaProduct::Component Name, Another Product::Another Component
|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/
|components=Core::Disability Access APIs
|url=http://www.mozilla.org/access/
}}

Which comes out like this:


Name accessibility (#)
Description Support for platform accessibility APIs.
Technical }}Owner Alexander Surkov
Content Owner {{{contentowner}}}
Peers Marco Zehe, Ginn Chen, David Bolter
Mailing List {{{list}}}
Mailing List {{{glist}}}
URL http://www.mozilla.org/access/

Contact Gerv if you have questions. Ignore the below.


{{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }} {{#if: | }}

Name: {{{name}}} ([[#{{{name}}} |#]])
Description: {{{description}}}
{{#if:|Technical }}Owner: none
Content Owner: {{{contentowner}}}
Peer(s): {{{peers}}}
Advisor(s): {{{advisors}}}
Content Owner(s): {{{content}}}
Source Dir(s):
Bugzilla Component(s):
URL:
Discussion Group: {{{group}}}
Discussion Forum(s):