Template:Nixpkgs Manual: Difference between revisions

imported>Nix
m fix example
DoggoBit (talk | contribs)
No edit summary
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
{{Template}}
{{Template}}
This is the template which is used to easily link out to the official stable Nixpkgs Manual.
 
== About ==
Creates a link to the official stable Nixpkgs manual.


== Basic use ==
== Basic use ==
Line 10: Line 12:


== Advanced use ==
== Advanced use ==
=== Link to the unstable version ===
Example:
  <nowiki>{{Nixpkgs Manual|ver=unstable}}</nowiki>
Creates: {{Nixpkgs Manual|ver=unstable}}


=== Rename the link ===
=== Rename the link ===
Example:
Example:
   <nowiki>{{Nixpkgs Manual|name=Nixpkgs's Greatest Most OFFICIAL Manual}}</nowiki>
   <nowiki>{{Nixpkgs Manual|name=The official Nixpkgs manual}}</nowiki>


Creates: {{Nixpkgs Manual|name=Nixpkgs's Greatest Most OFFICIAL Manual}}
Creates: {{Nixpkgs Manual|name=The official Nixpkgs manual}}


=== Add an anchor link ===
=== Add an anchor link ===
Line 23: Line 31:
Creates: {{Nixpkgs Manual|name=Nixpkgs Manual: Chapter - The Standard Environment|anchor=#chap-stdenv}}
Creates: {{Nixpkgs Manual|name=Nixpkgs Manual: Chapter - The Standard Environment|anchor=#chap-stdenv}}


</noinclude>
</noinclude><includeonly>[https://nixos.org/manual/nixpkgs/{{{ver|stable}}}/{{{anchor|}}} {{{name|Nixpkgs Manual}}}]</includeonly>
<includeonly>[https://nixos.org/manual/nixpkgs/stable/{{{anchor|}}} {{{name|Nixpkgs Manual}}}]</includeonly>