Difference between revisions of "Template:Modinfo"
From AlsaProject
m (trying HTML...) |
(hard-coding 15 parameters (which doesn't make it more beautiful, but it should work for the time being...) |
||
| Line 7: | Line 7: | ||
|- | |- | ||
|license: | |license: | ||
| − | | {{{license|GPL}}} | + | | {{{license|GPL}}} <!-- |
| − | {{#if: {{{1|}}} | <tr><td> parm: </td><td> {{{1}}} </td></tr>|}} | + | <!-- is there no #if function available in this wiki? -- |
| + | <!--{{#if: {{{1|}}} | <tr><td> parm: </td><td> {{{1}}} </td></tr>|}} --> | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{1|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{2|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{3|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{4|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{5|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{6|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{7|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{8|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{9|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{10|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{11|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{12|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{13|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{14|}}} | ||
| + | |- | ||
| + | | parm: | ||
| + | | {{{15|}}} | ||
|}<noinclude> | |}<noinclude> | ||
| + | |||
| + | ==Template:Modinfo== | ||
This template is intended to display the output of | This template is intended to display the output of | ||
<nowiki>modinfo snd-</nowiki>''soundcard'' | <nowiki>modinfo snd-</nowiki>''soundcard'' | ||
in a typewriter style table. | in a typewriter style table. | ||
| + | |||
| + | {{Template:Note|For the moment there are '''15''' parameters hard-coded in this template!|Importaint}} | ||
==Usage== | ==Usage== | ||
| − | You need to specify values for <tt>description</tt> and <tt>author</tt>. If the license is not the GNU General Public License (GPL) then you may also specify <tt>license</tt>. All other parameters are the values for parm, as you get it from the <tt>modinfo</tt> output. | + | * You need to specify values for <tt>description</tt> and <tt>author</tt>. |
| + | * If the license is not the ''GNU General Public License'' (GPL) then you may also specify <tt>license</tt>. | ||
| + | * All other parameters are the values for parm, as you get it from the <tt>modinfo</tt> output. | ||
| + | ''Example:'' | ||
<nowiki>{{Template:Modinfo|description=ALSA module for a sound card|author=Mr. Smith|parm1:on or off|parm2:0 or 1|parm3:debug or not debug, that is the question}}</nowiki> | <nowiki>{{Template:Modinfo|description=ALSA module for a sound card|author=Mr. Smith|parm1:on or off|parm2:0 or 1|parm3:debug or not debug, that is the question}}</nowiki> | ||
| − | That will give you: | + | ''That will give you:'' |
{{Template:Modinfo|description=ALSA module for a sound card|author=Mr. Smith|parm1:on or off|parm2:0 or 1|parm3:debug or not debug, that is the question}} | {{Template:Modinfo|description=ALSA module for a sound card|author=Mr. Smith|parm1:on or off|parm2:0 or 1|parm3:debug or not debug, that is the question}} | ||
</noinclude> | </noinclude> | ||
Revision as of 21:47, 29 July 2007
| description: | no desciption included |
| author: | author unknown |
| license: | GPL |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: | |
| parm: |
Template:Modinfo
This template is intended to display the output of
modinfo snd-soundcard
in a typewriter style table.
| Importaint: |
For the moment there are 15 parameters hard-coded in this template! |
|---|
Usage
- You need to specify values for description and author.
- If the license is not the GNU General Public License (GPL) then you may also specify license.
- All other parameters are the values for parm, as you get it from the modinfo output.
Example:
{{Template:Modinfo|description=ALSA module for a sound card|author=Mr. Smith|parm1:on or off|parm2:0 or 1|parm3:debug or not debug, that is the question}}
That will give you:
The module options for snd-{{{module}}}
| description: | ALSA module for a sound card | |
| author: | Mr. Smith | |
| license: | GPL | |
| parm: | parm1:on or off | |
| parm: | parm2:0 or 1 | |
| parm: | parm3:debug or not debug, that is the question |
Custom Search