Template:Man7: Difference between revisions

From techdocs
Jump to navigation Jump to search
(Created page with "<noinclude> == Usage == A template to link to manual entries on a topic at [https://man7.org/ man7]. Usage: <nowiki>{{</nowiki>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: <nowiki>{{</nowiki>man|setbuf|3|setbuf, setbuffer and friends}} displays as: {{man|setbuf|3|setbuf, setbuffer a...")
 
No edit summary
 
Line 13: Line 13:
displays as:
displays as:
{{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://man7.org/linux/man-pages/man{{{2|1}}}/{{urlencode:{{{1|man}}}}}.{{urlencode:{{{2|1}}}}}.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 man7.

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