Template:Man: Difference between revisions

From techdocs
Jump to navigation Jump to search
No edit summary
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
A template to link to manual entries on a web page.
A template to link to manual entries on a topic at [https://manpages.debian.org/ manpages.debian.org]


Usage: '''<nowiki>{{</nowiki>man|''topic''|''section''|''text to display''}}'''
Usage: <nowiki>{{</nowiki>man|'''''topic'''''|'''''section'''''|'''''text to display'''''}}


If parameters '''''text to display''''' is not specified it defaults to '''''topic'''''
If parameters '''''text to display''''' is not specified it defaults to '''''topic'''''
Line 10: Line 10:


For example:
For example:
<nowiki>{{man|setbuf|3|setbuf, setbuffer and friends}}
<nowiki>{{</nowiki>man|setbuf|3|setbuf, setbuffer and friends}}
displays as:
displays as:
{{</nowiki>man|setbuf|3|setbuf, setbuffer and friends}}
{{man|setbuf|3|setbuf, setbuffer and friends}}
</noinclude><includeonly>[https://man7.org/linux/man-pages/man{{{2|1}}}/{{{1|man}}}.{{{2|1}}}.html {{{3|{{{1|man}}}}}}]</includeonly>
</noinclude><includeonly>[https://manpages.debian.org/{{urlencode:{{{1|man}}}}}.{{urlencode:{{{2|}}}}}.en.html {{{3|{{{1|man}}}}}}]</includeonly>

Latest revision as of 09:15, 23 Haziran 2022

Usage

A template to link to manual entries on a topic at manpages.debian.org

Usage: {{man|topic|section|text to display}}

If parameters text to display is not specified it defaults to topic

If parameters section is not specified it defaults to 1

For example: {{man|setbuf|3|setbuf, setbuffer and friends}} displays as: setbuf, setbuffer and friends