Difference between revisions of "Template:Sandbox"

From ArchWiki
Jump to navigation Jump to search
(test)
 
(290 intermediate revisions by 24 users not shown)
Line 1: Line 1:
<noinclude>[[Category:Template]]</noinclude><includeonly><pre&lt;noinclude&gt;&lt;/noinclude&gt; style="overflow: auto;">{{{code|{{{1|[[Category:Sandbox]]undefined}}}}}}</pre&lt;noinclude&gt;&lt;/noinclude&gt;></includeonly><noinclude><!-- {{{1}}} &mdash; {{{2}}}<br>{{{3}}} || {{{4}}} --></noinclude>
+
<noinclude>{{DISPLAYTITLE:Template:man}}
 +
{{Template}}
 +
 
 +
'''Link to an online [[man page]], defaulting to the [http://jlk.fjfi.cvut.cz/arch/manpages Arch manual pages repository].'''
 +
 
 +
== Usage ==
 +
 
 +
* {{ic|1}} Section number
 +
* {{ic|2}} Page name
 +
* {{ic|3}} Optional page chapter
 +
* {{ic|url}} Optional url override
 +
 
 +
{{ic|<nowiki>{{man|1|intro|NOTES}}</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|wpa_supplicant|url=}}</nowiki>}}
 +
 
 +
== Example ==
 +
 
 +
{{sandbox|1|intro|NOTES}}
 +
 
 +
{{sandbox|7|archlinux|url=https://projects.archlinux.org/svntogit/packages.git/tree/filesystem/trunk/archlinux.7.txt#n15}}
 +
 
 +
{{sandbox|8|mount|FILESYSTEM-INDEPENDENT_MOUNT_OPTIONS}}
 +
 
 +
{{sandbox|8|systemd-resolved|/ETC/RESOLV.CONF}}
 +
 
 +
{{sandbox|8|wpa_supplicant|url=}}</noinclude><includeonly><span class="plainlinks archwiki-template-man"
 +
        title="$ man {{{1}}} {{{2}}}"
 +
        >{{#if: {{{url}}}
 +
            |[{{{url|https://jlk.fjfi.cvut.cz/arch/manpages/man/{{urlencode:{{{2}}}}}.{{{1}}}{{#if: {{{3|}}}
 +
                | &#0035;{{urlencode:{{{3|}}}|PATH}}
 +
                | }}}}} {{{2}}}({{{1}}})]
 +
            |{{{2}}}({{{1}}})
 +
        }}</span>
 +
 
 +
Just test.The {{{1}}} fox jumpsover a {{{2}}} dog.
 +
 
 +
</includeonly>

Latest revision as of 09:46, 7 February 2019

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)

Just test.The 1 fox jumpsover a intro dog.


archlinux(7)

Just test.The 7 fox jumpsover a archlinux dog.


mount(8)

Just test.The 8 fox jumpsover a mount dog.


systemd-resolved(8)

Just test.The 8 fox jumpsover a systemd-resolved dog.


wpa_supplicant(8)

Just test.The 8 fox jumpsover a wpa_supplicant dog.