Difference between revisions of "Template:Man"

From ArchWiki
Jump to: navigation, search
m (switch to https)
(use {{anchorencode:}} to allow omitting underscores in the third parameter)
Line 15: Line 15:
 
{{ic|<nowiki>{{man|7|archlinux|url=https://projects.archlinux.org/svntogit/packages.git/tree/filesystem/trunk/archlinux.7.txt#n15}}</nowiki>}}
 
{{ic|<nowiki>{{man|7|archlinux|url=https://projects.archlinux.org/svntogit/packages.git/tree/filesystem/trunk/archlinux.7.txt#n15}}</nowiki>}}
  
{{ic|<nowiki>{{man|8|mount|FILESYSTEM-INDEPENDENT_MOUNT_OPTIONS}}</nowiki>}}
+
{{ic|<nowiki>{{man|8|mount|FILESYSTEM-INDEPENDENT MOUNT OPTIONS}}</nowiki>}}
  
 
{{ic|<nowiki>{{man|8|wpa_supplicant|url=}}</nowiki>}}
 
{{ic|<nowiki>{{man|8|wpa_supplicant|url=}}</nowiki>}}
Line 31: Line 31:
 
         >{{#if: {{{url}}}
 
         >{{#if: {{{url}}}
 
             |[{{{url|https://jlk.fjfi.cvut.cz/arch/manpages/man/{{urlencode:{{{2}}}}}.{{{1}}}{{#if: {{{3|}}}
 
             |[{{{url|https://jlk.fjfi.cvut.cz/arch/manpages/man/{{urlencode:{{{2}}}}}.{{{1}}}{{#if: {{{3|}}}
                 | &#0035;{{urlencode:{{{3|}}}|PATH}}
+
                 | &#0035;{{urlencode:{{anchorencode:{{{3|}}}}}|PATH}}
 
                 | }}}}} {{{2}}}({{{1}}})]
 
                 | }}}}} {{{2}}}({{{1}}})]
 
             |{{{2}}}({{{1}}})
 
             |{{{2}}}({{{1}}})
 
         }}</span></includeonly>
 
         }}</span></includeonly>

Revision as of 17:25, 8 June 2018

This page is a template. It contains no Arch Linux-related information, but should be used as part of other articles. For more information, read 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 voice your opinion regarding this template.

Link to an online man page, defaulting to the Arch manual pages repository.

Usage

  • 1 Section number
  • 2 Page name
  • 3 Optional page chapter
  • url Optional url override

{{man|1|intro|NOTES}}

{{man|7|archlinux|url=https://projects.archlinux.org/svntogit/packages.git/tree/filesystem/trunk/archlinux.7.txt#n15}}

{{man|8|mount|FILESYSTEM-INDEPENDENT MOUNT OPTIONS}}

{{man|8|wpa_supplicant|url=}}

Example

intro(1)

archlinux(7)

mount(8)

wpa_supplicant(8)