Template:Nixpkgs Manual: Difference between revisions

Sdht0 (talk | contribs)
[feat] Add parameter to link to unstable version
DoggoBit (talk | contribs)
No edit summary
 
(One intermediate revision by one other user not shown)
Line 21: Line 21:
=== 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 31: 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/{{{ver|stable}}}/{{{anchor|}}} {{{name|Nixpkgs Manual}}}]</includeonly>