Template talk:File:nixos: Difference between revisions

From NixOS Wiki
Latest comment: 8 April by Sdht0 in topic Template naming issue
mNo edit summary
Sdht0 (talk | contribs)
 
(2 intermediate revisions by 2 users not shown)
Line 25: Line 25:


[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 01:34, 8 April 2024 (UTC)
[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 01:34, 8 April 2024 (UTC)
Okay. Is there a central place where such discussion and coordination is happening? For instance, I was thinking of a standard way for each article about a package to mention how to install that package, either using systemPackages or config.<>.enable = true, similar to how the Archwiki does it.
[[User:Sdht0|Sdht0]] ([[User talk:Sdht0|talk]]) 01:46, 8 April 2024 (UTC)
Not exactly. The only communication that exists for the Wiki is currently the [https://matrix.to/#/#wiki:nixos.org Matrix room], but otherwise larger longer effort discussions might be on the discourse. I personally think talk pages kinda suck.
[[User:Samueldr|samueldr]] ([[User talk:Samueldr|talk]]) 02:05, 8 April 2024 (UTC)
Thanks I joined the room. Talk pages are definitely bad, something like https://www.mediawiki.org/wiki/Extension:DiscussionTools makes it slightly better.
[[User:Sdht0|Sdht0]] ([[User talk:Sdht0|talk]]) 02:25, 8 April 2024 (UTC)

Latest revision as of 02:25, 8 April 2024

Template naming issue

Hi! 👋 Just a note, this template doesn't work since the colon is being taken as you specifying a full page name, rather than a template-based wiki page name. So it's looking to transclude File:nixos.

I think the solution would be to rename the template. Already File:nixos seems awkward to me. If it is thought to be desirable to have this specialisation, I think nixos-configuration as the template name would better represent what this is meant to be used for.

samueldr (talk) 00:56, 7 April 2024 (UTC)Reply

Thanks for taking a look. I'm not sure why this doesn't work when say Template:Nixos:option works. Renaming it is a good suggestion, but I was thinking of creating other wrappers over the file template such as file:flake for /etc/nixos/flake.nix and local config at ~/.config/nix/config.nix etc.

Sdht0 (talk) 00:00, 8 April 2024 (UTC)Reply

The reason it doesn't work (AFAIUI) is that File: is a valid namespace, meanwhile NixOS: isn't.

To be fair, I don't think this is needed. Adding too much specific templating magic isn't great. I think that using the {{file}} template and letting users conscientiously type the filename is better than hoping they pick the right pre-baked template here.

samueldr (talk) 01:16, 8 April 2024 (UTC)Reply

Alright makes sense. How about I just rename this to nixos-config then, because this is a common enough that I expect will be used on most articles?

Sdht0 (talk) 01:23, 8 April 2024 (UTC)Reply

Let's wait a while and work on higher specialization templates once all templates are overall reviewed in full, including seeing what new needs there might be. I think your efforts on other templates was good, and more of what is needed at this moment. I'm keeping tabs on template edits and talk pages, so if you have questions or want to suggest deletion or re-organization of templates, please do.

samueldr (talk) 01:34, 8 April 2024 (UTC)Reply

Okay. Is there a central place where such discussion and coordination is happening? For instance, I was thinking of a standard way for each article about a package to mention how to install that package, either using systemPackages or config.<>.enable = true, similar to how the Archwiki does it.

Sdht0 (talk) 01:46, 8 April 2024 (UTC)Reply

Not exactly. The only communication that exists for the Wiki is currently the Matrix room, but otherwise larger longer effort discussions might be on the discourse. I personally think talk pages kinda suck.

samueldr (talk) 02:05, 8 April 2024 (UTC)Reply

Thanks I joined the room. Talk pages are definitely bad, something like https://www.mediawiki.org/wiki/Extension:DiscussionTools makes it slightly better.

Sdht0 (talk) 02:25, 8 April 2024 (UTC)Reply