Difference between revisions of "Template:Module"

From Creative Commons
Jump to: navigation, search
 
(6 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: 2px solid lightgray;" border="1" cellpadding="3" cellspacing="0" id="{{{name}}}">
+
</noinclude>{| class="wikitable" id="{{{name}}}"
<tr>
+
|-
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">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; border-right: 2px solid lightgray; padding-right: 0.5em;">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; border-right: 2px solid lightgray; padding-right: 0.5em;">{{#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:{{{peers|}}}
+
| URL || {{{url}}}
|
+
|}
<tr>
 
  <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>
 
</tr>
 
}}
 
 
 
{{#if:{{{url|}}}
 
|
 
<tr>
 
  <th style="text-align: right; vertical-align: top; width: 150px; border-right: 2px solid lightgray; padding-right: 0.5em;">URL:</th>
 
  <td>{{{url|}}}</td>
 
</tr>
 
}}
 
 
 
{{#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>
 
  <td>{{{forum|}}}</td>
 
</tr>
 
}}
 
 
 
</table>
 

Latest revision as of 18: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}}}