View previous topic :: View next topic |
Author |
Message |
midnite Guru
Joined: 09 Apr 2006 Posts: 449 Location: Hong Kong
|
|
Back to top |
|
|
grknight Retired Dev
Joined: 20 Feb 2015 Posts: 1953
|
Posted: Sat Nov 18, 2023 3:19 am Post subject: |
|
|
midnite wrote: | https://www.mediawiki.org/wiki/Extension:Variables
It seems {{#vardefine:variablename|specifiedvalue}} and {{#var:variablename}} do not define and retrieving variablename in the Gentoo Wiki User Page.
|
The Gentoo wiki does not have this extra extension installed. I would not suggest adding it with that big warning on the top of the help page either.
#set and #show Parser Functions are part of Semantic MediaWiki and need a SMW property created to save its data.
This is only truly worth the effort to reuse those values over other pages, and really, many of them.
The Handbook is a bit special. It uses various inclusion features to not repeat itself over and over.
With a major benefits of ease of most changes and translations only have to be done once for all arches. |
|
Back to top |
|
|
midnite Guru
Joined: 09 Apr 2006 Posts: 449 Location: Hong Kong
|
Posted: Sat Nov 18, 2023 9:26 am Post subject: |
|
|
Hi grknight,
Thank you for reply and explanation.
May I ask as the SMW is set up in the Handbook namespace, it is possible to reuse the #set and #show Parser Functions in the User namespace?
On the other hand, I have studies the ParserFunctions below. They work in the User namespace. But it seems that there is no syntax to set and get a variable. Without variable, their functions are quite limited.
https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions _________________ - midnite. |
|
Back to top |
|
|
NeddySeagoon Administrator
Joined: 05 Jul 2003 Posts: 54629 Location: 56N 3W
|
Posted: Sat Nov 18, 2023 10:46 am Post subject: |
|
|
midnite,
Its worth asking/discussing in #gentoo-wiki on libera IRC too. _________________ Regards,
NeddySeagoon
Computer users fall into two groups:-
those that do backups
those that have never had a hard drive fail. |
|
Back to top |
|
|
|