DoggoBit (talk | contribs)
DoggoBit (talk | contribs)
 
Line 13: Line 13:
:I've been working on a new way to display commands or code blocks similar to the <strong>Commands template</strong>. The idea is to include a "Copy" button and a fixed <code>$</code> prompt that doesn't get copied when using the button. Line numbers are removed to keep things clean. If you like the idea, perhaps you could give it a try. [[User:Layer-09|Layer-09]] ([[User talk:Layer-09|talk]]) 09:47, 8 June 2025 (UTC)
:I've been working on a new way to display commands or code blocks similar to the <strong>Commands template</strong>. The idea is to include a "Copy" button and a fixed <code>$</code> prompt that doesn't get copied when using the button. Line numbers are removed to keep things clean. If you like the idea, perhaps you could give it a try. [[User:Layer-09|Layer-09]] ([[User talk:Layer-09|talk]]) 09:47, 8 June 2025 (UTC)
::Oh awesome, yeah, I agree on the infobox naming, I'll rename them shortly. For the commands, that would be super cool to have; I tried to do something similar but I couldn't figure out how to inject the prompt symbol. I did modify the {{tl|file}} to include {{tl|code}}, though (which is a wrapper around <code><nowiki><syntaxhighlight></nowiki></code>, in case either of them are useful to your {{tl|commands}} [[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 15:17, 8 June 2025 (UTC)
::Oh awesome, yeah, I agree on the infobox naming, I'll rename them shortly. For the commands, that would be super cool to have; I tried to do something similar but I couldn't figure out how to inject the prompt symbol. I did modify the {{tl|file}} to include {{tl|code}}, though (which is a wrapper around <code><nowiki><syntaxhighlight></nowiki></code>, in case either of them are useful to your {{tl|commands}} [[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 15:17, 8 June 2025 (UTC)
::By the way, I created a [[NixOS Wiki:WikiProject Templates]] to coordinate some of these efforts, in case anyone else wants to join in. [[User:DoggoBit|DoggoBit]] ([[User talk:DoggoBit|talk]]) 22:30, 8 June 2025 (UTC)