Difference between revisions of "Template:Module"

From Creative Commons
Jump to: navigation, search
 
(8 intermediate revisions by the same user not shown)
Line 8: Line 8:
 
  |contentowner=Some Other Name (used for some websites where content owner is different from technical owner)
 
  |contentowner=Some Other Name (used for some websites where content owner is different from technical owner)
 
  |peers=<nowiki>[mailto:markup@isaccepted.com Mark Up]</nowiki>, Other Guy
 
  |peers=<nowiki>[mailto:markup@isaccepted.com Mark Up]</nowiki>, Other Guy
  |advisors=<nowiki>[mailto:markup@isaccepted.com Smart Girl]</nowiki>, Smart Guy
+
  |contentpeers=<nowiki>[mailto:markup@isaccepted.com Other Smart Girl]</nowiki>, Other Smart Guy
|content=<nowiki>[mailto:markup@isaccepted.com Other Smart Girl]</nowiki>, Other Smart Guy
+
  |list=<nowiki>[http://example.com/link/to/forum Our Mailing List/Forum]</nowiki>
  |group=discussion-group-name-without-leading-'mozilla.'
+
  |glist=forumname
|forum=<nowiki>[http://example.com/link/to/forum Our Discussion Forum]</nowiki> (for modules without a newsgroup)
 
|source_dirs=source/directory/from/top/of/tree, another/directory
 
  |components=BugzillaProduct::Component Name, Another Product::Another Component
 
 
  |url=<nowiki>http://www.example.com/relevant/url</nowiki>
 
  |url=<nowiki>http://www.example.com/relevant/url</nowiki>
 
  }}
 
  }}
Line 19: Line 16:
 
E.g.
 
E.g.
 
  <nowiki>{{Module</nowiki>
 
  <nowiki>{{Module</nowiki>
  |name=accessibility
+
  |name=governance
  |description=Support for platform accessibility APIs.
+
  |description=Governance module description.
  |owner=Alexander Surkov
+
  |owner=Dan Mills
  |peers=<nowiki>[mailto:marco.zehe@googlemail.com Marco Zehe]</nowiki>, Ginn Chen, David Bolter
+
  |peers=<nowiki>[mailto:some@guy.org Some Guy]</nowiki>, Other Person
|group=dev-accessibility
+
  |url=<nowiki>[[Governance]]</nowiki>
|source_dirs=accessible/
+
|glist=accessibility
|components=Core::Disability Access APIs
 
  |url=<nowiki>http://www.mozilla.org/access/</nowiki>
 
 
  }}
 
  }}
  
Line 32: Line 27:
  
 
  {{Module
 
  {{Module
  |name=accessibility
+
  |name=governance
  |description=Support for platform accessibility APIs.
+
  |description=Governance module description.
  |owner=Alexander Surkov
+
  |owner=Dan Mills
  |peers=[mailto:marco.zehe@googlemail.com Marco Zehe], Ginn Chen, David Bolter
+
  |peers=[mailto:some@guy.org Some Guy], Other Person
  |group=dev-accessibility
+
  |url=[[Governance]]
|source_dirs=accessible/
+
  |glist=governance
|components=Core::Disability Access APIs
 
  |url=http://www.mozilla.org/access/
 
 
  }}
 
  }}
  
Contact Gerv if you have questions. Ignore the below.
+
Ignore everything below.
  
<hr>
+
----
  
</noinclude><table style="width:100%; margin-bottom: 1em; border:1px black" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}">
+
</noinclude>{| class="wikitable" id="{{{name}}}"
<tr>
+
|-
  <th style="text-align: right; vertical-align: top; width: 150px">Name:</th>
+
| Name || '''{{{name}}}''' <sup><small>([[#{{{name}}} |#]])</small></sup>
  <th style="text-align:left">{{{name}}} <sup><small>([[#{{{name}}} |#]])</small></sup></th>
+
|-
</tr>
+
| Description || {{{description}}}
 
+
|-
<tr>
+
| {{#if:{{{contentowner|}}}|Technical&nbsp;}}Owner || {{{owner}}}
  <th style="text-align: right; vertical-align: top; width: 150px">Description:</th>
+
|- {{#if: {{{contentowner|}}} | | style="display: none;" }}
  <td>{{{description}}}</td>
+
| Content Owner || {{{contentowner}}}
</tr>
+
|- {{#if: {{{peers|}}} | | style="display: none;" }}
 
+
| Peers || {{{peers}}}
<tr>
+
|- {{#if: {{{list|}}} | | style="display: none;" }}
  <th style="text-align: right; vertical-align: top; width: 150px">{{#if:{{{contentowner|}}}|Technical&nbsp;}}Owner:</th>
+
| Mailing List || {{{list}}}
  <td>{{{owner|''none''}}}</td>
+
|- {{#if: {{{glist|}}} | | style="display: none;" }}
</tr>
+
| Mailing List || [https://groups.google.com/a/creativecommons.org/forum/#!forum/{{{glist}}} {{{glist}}}]
 
+
|- {{#if: {{{url|}}} | | style="display: none;" }}
{{#if:{{{contentowner|}}}
+
| URL || {{{url}}}
|
+
|}
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Content Owner:</th>
 
  <td>{{{contentowner}}}</td>
 
</tr>
 
}}
 
 
 
{{#if:{{{peers|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Peer(s):</th>
 
  <td>{{{peers}}}</td>
 
</tr>
 
}}
 
 
 
{{#if:{{{advisors|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Advisor(s):</th>
 
  <td>{{{advisors}}}</td>
 
</tr>
 
}}
 
 
 
{{#if:{{{content|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Content Owner(s):</th>
 
  <td>{{{content}}}</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:{{{components|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Bugzilla Component(s):</th>
 
  <td>{{{components|}}}</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&nbsp;Group:</th>
 
  <td>[http://www.mozilla.org/community/forums/#{{{group}}} {{{group}}}]</td>
 
</tr>
 
}}
 
 
 
{{#if:{{{forum|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px">Discussion Forum(s):</th>
 
  <td>{{{forum|}}}</td>
 
</tr>
 
}}
 
 
 
</table>
 

Latest revision as of 19:50, 3 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
|contentpeers=[mailto:markup@isaccepted.com Other Smart Girl], Other Smart Guy
|list=[http://example.com/link/to/forum Our Mailing List/Forum]
|glist=forumname
|url=http://www.example.com/relevant/url
}}

E.g.

{{Module
|name=governance
|description=Governance module description.
|owner=Dan Mills
|peers=[mailto:some@guy.org Some Guy], Other Person
|url=[[Governance]]
|glist=accessibility
}}

Which comes out like this:


Name governance (#)
Description Governance module description.
Technical }}Owner Dan Mills
Content Owner {{{contentowner}}}
Peers Some Guy, Other Person
Mailing List {{{list}}}
Mailing List governance
URL Governance

Ignore everything below.


Name {{{name}}} ([[#{{{name}}} |#]])
Description {{{description}}}
Technical }}Owner {{{owner}}}
Content Owner {{{contentowner}}}
Peers {{{peers}}}
Mailing List {{{list}}}
Mailing List {{{glist}}}
URL {{{url}}}