Template:Nix Manual: Difference between revisions

Sdht0 (talk | contribs)
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 ==
This is the template which is used to easily link out to the official stable Nix Manual.
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's Greatest Most OFFICIAL Manual}}</nowiki>
   <nowiki>{{Nix Manual|name=The official Nix manual}}</nowiki>


Creates: {{Nix Manual|name=Nix's Greatest Most OFFICIAL Manual}}
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>