Template:Linux Command: Difference between revisions
From HPC Wiki
No edit summary |
m (Protected "Template:Linux Command" ([Edit=Allow only administrators] (indefinite) [Move=Allow only administrators] (indefinite)) [cascading]) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<includeonly>| {{#switch: {{{1|}}}|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20=Anonymous parameter }}<code>{{{1}}}</code> || {{#if: {{{wiki|}}} | | <includeonly>| {{#switch: {{{1|}}}|1|2|3|4|5|6|7|8|9|10|11|12|13|14|15|16|17|18|19|20=Anonymous parameter }}<code>{{{1}}}</code> || {{#if: {{{wiki|}}} | [//www.wikipedia.org/wiki/{{{wiki}}} <i class="fa fa-wikipedia-w" aria-hidden="true"></i>] |}} || {{#if: {{{man|}}} | [http://man7.org/linux/man-pages/{{{man}}} <i class="fa fa-book" aria-hidden="true"></i>] |}} || {{{2|''(description missing)''}}} | ||
|-</includeonly><noinclude>{{Documentation}}</noinclude> | |-</includeonly><noinclude>{{Documentation}}</noinclude> |
Latest revision as of 15:16, 1 April 2017
[edit]
Documentation
Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.
As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.
Template to render a single row in {{Linux Command Table}}.
Parameters
Parameter name | Required? | Default value | Description |
---|---|---|---|
Anonymous parameter 1 |
Yes | (n/a) | Parameter name |
Anonymous parameter 2 |
Yes | (n/a) | Parameter description |
wiki |
No | (n/a) | Wikipage Link, appended to: https://www.wikipedia.org/wiki/ |
man |
No | (n/a) | Man Page Link, appended to: http://man7.org/linux/man-pages/ |
Usage
See the template's testcases:
Single command in table | |||||||||
---|---|---|---|---|---|---|---|---|---|
Wiki code | {{Linux Command Table|1=
{{Linux Command|ls|wiki=Ls|man=man1/ls.1.html|list directory contents}}
}}
| ||||||||
Main version |
| ||||||||
Sandbox version | Template:Linux Command Table/sandbox |
Three commands in table, one with no man link, one with no wiki link, one with no description | |||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Wiki code | {{Linux Command Table|1=
{{Linux Command|ls|wiki=Ls|man=man1/ls.1.html|list directory contents}}
{{Linux Command|id|wiki=Id_(Unix)}}
{{Linux Command|df|wiki=Df_(Unix)|man=man1/report file system disk space usage}}
}}
| ||||||||||||||||
Main version |
| ||||||||||||||||
Sandbox version | Template:Linux Command Table/sandbox |
See also
Note
The above documentation is transcluded from Template:Linux Command/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.
The above documentation is transcluded from Template:Linux Command/doc. (edit | history)
Editors can experiment in this template's sandbox (create) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. Subpages of this template.