Template:Nix Manual: Difference between revisions
imported>Nix m whitespace |
imported>Nix make it dynamic, examples |
||
Line 3: | Line 3: | ||
This is the template which is used to easily link out to the official stable Nix Manual. | This is the template which is used to easily link out to the official stable Nix Manual. | ||
== Basic use == | |||
Example: | Example: | ||
<nowiki>{{Nix Manual}}</nowiki> | <nowiki>{{Nix Manual}}</nowiki> | ||
Creates: {{Nix Manual}} | Creates: {{Nix Manual}} | ||
== Advanced use == | |||
=== Rename the link === | |||
Example: | |||
<nowiki>{{Nix Manual|name=Nix's Greatest Most OFFICIAL Manual}}</nowiki> | |||
Creates: {{Nix Manual|name=Nix's Greatest Most OFFICIAL Manual}} | |||
=== Add an anchor link === | |||
Example: | |||
<nowiki>{{Nix Manual|name=Nix Manual: Chapter - Main Commands|anchor=#ch-main-commands}}</nowiki> | |||
Creates: {{Nix Manual|name=Nix Manual: Chapter - Main Commands|anchor=#ch-main-commands}} | |||
</noinclude> | </noinclude> | ||
<includeonly>[https://nixos.org/manual/nix/stable/ Nix Manual]</includeonly> | <includeonly>[https://nixos.org/manual/nix/stable/{{{anchor|}}} {{{name|Nix Manual}}}]</includeonly> |