Template:Nixos:option: Difference between revisions
imported>Samueldr m Fix template for the new search URL scheme |
Add another parameter to be able to render alternative text |
||
| (2 intermediate revisions by 2 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://search.nixos.org/options? | == 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> | |||