Template:Nix Manual: Difference between revisions
Add proper sections |
[feat] Add parameter to link to unstable version |
||
Line 3: | Line 3: | ||
== About == | == About == | ||
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 === | ||
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> |
Revision as of 20:50, 6 April 2024
This page is a template. It should be used as part of other articles. For more information, see Help:Template.
Please do not experiment with this template; you could ruin all pages using this template. If you want to edit this template, copy the text to Template:Sandbox, edit and test it there, and copy it back when it works.
Feel free to discuss this template in the talk page.
If you wanted to create a new page instead, use the search box to search for the title of the new page you want to create and follow the linkCreate the page "XYZ" on this wiki!
in the results page. An alternative is to create a dangling link to the new page from an existing page. A final option is to directly visit the expected URL of the page.About
Create a link to the official Nix Manual.
Basic use
Example:
{{Nix Manual}}
Creates: Nix Manual
Advanced use
Link to the unstable version
Example:
{{Nix Manual|ver=unstable}}
Creates: Nix Manual
Rename the link
Example:
{{Nix Manual|name=Nix's Greatest Most OFFICIAL Manual}}
Creates: Nix's Greatest Most OFFICIAL Manual
Add an anchor link
Example:
{{Nix Manual|name=Nix Manual: Chapter - Main Commands|anchor=#ch-main-commands}}
Creates: Nix Manual: Chapter - Main Commands