Template:Man: Difference between revisions

From NixOS Wiki
imported>Mth
Created page with "<includeonly> <code title="man {{{sec}}} {{{1}}}">{{{1}}}({{{sec}}})</code> </includeonly> <noinclude> {{template}} This template is used to refer to {{ic|man}} manual pages,..."
 
imported>Mth
No edit summary
Line 1: Line 1:
<includeonly>
<includeonly><code title="man {{{sec}}} {{{1}}}">{{{1}}}({{{sec}}})</code></includeonly>
<code title="man {{{sec}}} {{{1}}}">{{{1}}}({{{sec}}})</code>
</includeonly>


<noinclude>
<noinclude>{{DISPLAYTITLE:man}}
{{template}}
{{template}}
This template is used to refer to {{ic|man}} manual pages, using the conventional {{ic|page(section)}} syntax. The command used to display the manual page is added to the {{ic|title}} attribute such that it displays on hover.
This template is used to refer to {{ic|man}} manual pages, using the conventional {{ic|page(section)}} syntax. The command used to display the manual page is added to the {{ic|title}} attribute such that it displays on hover.
== Parameters ==
== Parameters ==
* the page
* the page
* {{ic|sec}}: the section containing the page
* {{ic|sec}}: the section containing the page
== Examples ==
== Examples ==
{{bc|<nowiki>{{man|nixos-rebuild|sec=1}}</nowiki>}}
{{bc|<nowiki>{{man|nixos-rebuild|sec=1}}</nowiki>}}
{{man|nixos-rebuild|sec=1}}
{{man|nixos-rebuild|sec=1}}
</noinclude>
</noinclude>

Revision as of 18:31, 15 April 2019


This page is a template. It should be used as part of other articles. For more information, see Help:Template.

Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.

Feel free to discuss this template in the talk page.

If you wanted to create a new page instead, use the search box to search for the title of the new page you want to create and follow the link Create the page "XYZ" on this wiki! in the results page. An alternative is to create a dangling link to the new page from an existing page. A final option is to directly visit the expected URL of the page.

This template is used to refer to man manual pages, using the conventional page(section) syntax. The command used to display the manual page is added to the title attribute such that it displays on hover.

Parameters

  • the page
  • sec: the section containing the page

Examples

{{man|nixos-rebuild|sec=1}}

nixos-rebuild(1)