Template:Nix Manual: Difference between revisions
Add proper sections |
m Change flavour of the example text |
||
(One intermediate revision by one other user not shown) | |||
Line 3: | Line 3: | ||
== About == | == About == | ||
Create a link to the official Nix Manual. | |||
== Basic use == | == Basic use == | ||
Line 12: | Line 12: | ||
== Advanced use == | == Advanced use == | ||
=== Link to the unstable version === | |||
Example: | |||
<nowiki>{{Nix Manual|ver=unstable}}</nowiki> | |||
Creates: {{Nix Manual|ver=unstable}} | |||
=== Rename the link === | === Rename the link === | ||
Example: | Example: | ||
<nowiki>{{Nix Manual|name=Nix | <nowiki>{{Nix Manual|name=The official Nix manual}}</nowiki> | ||
Creates: {{Nix Manual|name=Nix | Creates: {{Nix Manual|name=The official Nix manual}} | ||
=== Add an anchor link === | === Add an anchor link === | ||
Line 26: | Line 32: | ||
</noinclude> | </noinclude> | ||
<includeonly>[https://nixos.org/manual/nix/stable/{{{anchor|}}} {{{name|Nix Manual}}}]</includeonly> | <includeonly>[https://nixos.org/manual/nix/{{{ver|stable}}}/{{{anchor|}}} {{{name|Nix Manual}}}]</includeonly> |