Difference between revisions of "Template:Module"

From Creative Commons
Jump to: navigation, search
Line 42: Line 42:
 
  }}
 
  }}
  
Contact Gerv if you have questions. Ignore the below.
+
Ignore everything below.
  
<hr>
+
----
 
 
</noinclude><table style="width:100%; margin-bottom: 1em; border: 2px solid lightgray;" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}">
 
<tr>
 
  <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>
 
</tr>
 
 
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Description:</th>
 
  <td>{{{description}}}</td>
 
</tr>
 
 
 
<tr>
 
  <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>
 
</tr>
 
  
 +
</noinclude>{| class="wikitable" id="{{{name}}}"
 +
|-
 +
| Name || {{{name}}} <sup><small>([[#{{{name}}} |#]])</small></sup>
 +
|-
 +
| Description || {{{description}}}
 +
|-
 +
| {{#if:{{{contentowner|}}}|Technical&nbsp;}}Owner || {{{owner}}}
 +
{{#if:{{{contentowner|}}}
 +
|
 +
|-
 +
| Content Owner || {{{contentowner}}}
 +
}}
 
{{#if:{{{peers|}}}
 
{{#if:{{{peers|}}}
 
|
 
|
<tr>
+
|-
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Peer(s):</th>
+
| Peers || {{{peers}}}
  <td>{{{peers}}}</td>
 
</tr>
 
 
}}
 
}}
 
+
{{#if:{{{list|}}}
{{#if:{{{url|}}}
 
 
|
 
|
<tr>
+
|-
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">URL:</th>
+
| Mailing List || {{{list}}}
  <td>{{{url|}}}</td>
 
</tr>
 
 
}}
 
}}
 
+
{{#if:{{{url|}}}
{{#if:{{{forum|}}}
 
 
|
 
|
<tr>
+
|-
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">Discussion Forum(s):</th>
+
| URL || {{{url}}}
  <td>{{{forum|}}}</td>
 
</tr>
 
 
}}
 
}}
 
+
|}
</table>
 

Revision as of 23:23, 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/

Ignore everything below.


Name {{{name}}} ([[#{{{name}}} |#]])
Description {{{description}}}
Technical }}Owner {{{owner}}}

{{#if:

Content Owner {{{contentowner}}}

}} {{#if:

Peers {{{peers}}}

}} {{#if:

Mailing List {{{list}}}

}} {{#if:

URL {{{url}}}

}}