Help talk:Magic words
From Gentoo Wiki
Note
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
Before creating a discussion or leaving a comment, please read about using talk pages. To create a new discussion, click here. Comments on an existing discussion should be signed using
~~~~
:
A comment [[User:Larry|Larry]] 13:52, 13 May 2024 (UTC) : A reply [[User:Sally|Sally]] 09:31, 5 November 2024 (UTC) :: Your reply ~~~~
Navigate to first
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)