Difference between revisions of "Template:Package"

From WikEmacs
Jump to navigation Jump to search
(Tried to make version display a little smarter)
Line 10: Line 10:
 
| label4  = Source
 
| label4  = Source
 
| data4  = {{{source|'''no link provided'''}}}
 
| data4  = {{{source|'''no link provided'''}}}
| {{#if: {{{in_emacs|}}}||NULL}}label5  = Part of Emacs
+
{{#if: {{{in_emacs|}}}|
| {{#if: {{{in_emacs|}}}||NULL}}data5  = {{#if: {{{in_emacs|}}}|{{{in_emacs}}}}}
+
{{!}} label5  = Part of Emacs
 +
{{!}} data5  = {{#switch: {{{in_emacs}}}
 +
  | 23 = Since Emacs 23
 +
  | 24 = Since Emacs 22
 +
  | {{{in_emacs}}}
 +
  }}
 +
}}
 
| {{#if: {{{in_elpa|}}}||NULL}}label5  = Available in GNU ELPA
 
| {{#if: {{{in_elpa|}}}||NULL}}label5  = Available in GNU ELPA
 
| {{#if: {{{in_elpa|}}}||NULL}}data5  = {{#if: {{{in_elpa|}}}|{{{in_elpa}}}}}
 
| {{#if: {{{in_elpa|}}}||NULL}}data5  = {{#if: {{{in_elpa|}}}|{{{in_elpa}}}}}
Line 35: Line 41:
 
|maintainer=Alex Bennée
 
|maintainer=Alex Bennée
 
|source=https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
 
|source=https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
 +
|in_emacs=No
 
|category=
 
|category=
 
}}
 
}}
Line 47: Line 54:
 
|author=Alex Bennée
 
|author=Alex Bennée
 
|maintainer=Alex Bennée
 
|maintainer=Alex Bennée
 +
|in_emacs=No
 
|source=https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
 
|source=https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
 
}}
 
}}

Revision as of 16:21, 16 April 2012


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
  • author - Author Name
  • maintainer - The maintainer
  • source - Where the source code lives
  • (optional) in_emacs - When the package was included in emacs
  • (optional) in_elpa - Whether or not the package is available for installation via ELPA


edit-server.el
Description Provide an edit server for Chrom(ium) browser extensions
Author Alex Bennée
Maintainer Alex Bennée
Source

https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el | label5 = Part of Emacs

| data5 = No

By using this template to declare a package you automatically include the page in the Emacs Package category

The sample box shown here is defined using:

{{Package
|name=edit-server.el
|description=Provide an edit server for Chrom(ium) browser extensions
|author=Alex Bennée
|maintainer=Alex Bennée
|in_emacs=No
|source=https://github.com/stsquad/emacs_chrome/blob/master/servers/edit-server.el
}}