Difference between revisions of "Template:Package"

From WikEmacs
Jump to: navigation, search
(Example is a browser extension wtf)
(rm banner, just use infobox)
Line 2: Line 2:
 
== What the template looks like ==
 
== What the template looks like ==
 
</noinclude>
 
</noinclude>
<!-- Package Template -->
 
{| style="padding:5px; border:1px solid #ffcc00; text-align:center; background:#FFFDDF; width:100%; margin-bottom:.2em;"
 
| '''Package:''' This describes an Emacs Package.
 
|}
 
 
<!--Summary Infobox -->
 
<!--Summary Infobox -->
 
{{Infobox
 
{{Infobox
| title                  = {{#if: {{{name|}}} | {{{name}}} |'''package name''' }}
+
| title                  = '''Emacs Package''': {{{name|package name}}}
| {{#if: {{{description|}}}||NULL}}label1  = description
+
| label1  = description
| {{#if: {{{description|}}}||NULL}}data1   = {{{description}}}
+
| data1  = {{{description|simple one line description}}}
 +
| label2  = maintainer
 +
| data2   = {{{maintainer|name of maintainer}}}
 
}}
 
}}
 
<!-- Add to a set of categories, only if included in a page -->
 
<!-- Add to a set of categories, only if included in a page -->

Revision as of 13:22, 28 March 2012

What the template looks like

Emacs Package: package name
description simple one line description
maintainer name of maintainer


Usage

This template is used for adding a Emacs Packages to the wiki and formating a nice bit of boiler plate and auto-categorisation. Parameters include:

  • name - Name of package
  • description - One line description
  • maintainer - The maintainer
  • source - Where the source code lives

For example: ! Not an Emacs extension, a browser extension !

{{Package
|name=Edit with Emacs
|description=Edit text areas via Chrom(ium) browsers
|maintainer=Alex Bennée |source=https://github.com/stsquad/emacs_chrome
}}