Template:Nixpkgs Manual: Difference between revisions

Sdht0 (talk | contribs)
About: Reword
DoggoBit (talk | contribs)
No edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 12: 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 25: 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>