Template:Nixpkgs Manual: Difference between revisions
[feat] Add parameter to link to unstable version |
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 | <nowiki>{{Nixpkgs Manual|name=The official Nixpkgs manual}}</nowiki> | ||
Creates: {{Nixpkgs Manual|name=Nixpkgs | 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> | |||