Template:Nixos:option: Difference between revisions
imported>Samueldr Refer to a NixOS option, linking to the proper section |
Add another parameter to be able to render alternative text |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 1: | Line 1: | ||
<noinclude>{{template}}{{DISPLAYTITLE:Template:nixos:option}} | <noinclude>{{template}}{{DISPLAYTITLE:Template:nixos:option}} | ||
Refer to a NixOS option linking to the <em>options | == About == | ||
Refer to a NixOS option linking to the <em>https://search.nixos.org/options</em> page. | |||
== | == Usage == | ||
{{ic|<nowiki>{{nixos:option|powerManagement.resumeCommands}}</nowiki>}} | |||
{{ic|<nowiki>{{nixos:option|users.users.*.name|users.users.<name>.name}}</nowiki>}} | |||
</noinclude><includeonly><code>[https://nixos.org | == Example == | ||
{{nixos:option|powerManagement.resumeCommands}} | |||
{{nixos:option|users.users.*.name|users.users.<name>.name}} | |||
</noinclude><includeonly><code>[https://search.nixos.org/options?show={{{1}}} {{{2|{{{1}}}}}}]</code></includeonly> | |||