Help talk:Magic words
From Gentoo Wiki
Note
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
This is a Talk page - please see the documentation about using talk pages. Add newer comments below older ones, sign comments using four tildes (
~~~~
), and indent successive comments with colons (:
).
Add new sections at the bottom of the page, under a heading (== ==
). Please remember to mark sections as "open for discussion" using {{talk|open}}
, so they will show up in the list of open discussions.Declaring variables
Talk status
This discussion is done.
Is there a way to declare variables on the wiki similar to: {{#vardefine:variable|variable content}}? The use case I had in mind was setting something like kernelversion=6.1.46 so that updating it on a hardware table would only require changing one thing. https://www.mediawiki.org/wiki/Extension:Variables
JM01085758 (talk) 12:42, 23 August 2023 (UTC)
- Yes, you can do what the Handbook does with {{Handbook Variable}}. See the following links:
- Top of Handbook:Parts for variable definitions
- Implementation of Template:Handbook Variable
- ChatGPT might come in handy here.
- {{Handbook Variable}} for how variables are referenced.
- — Waldo Lemmer 07:31, 13 April 2024 (UTC)