Help:Semantic MediaWiki
From Gentoo Wiki
Wiki Help pages
Contributor's guide — Guidelines — Fixing errors howto
Editing pages — Talk pages — Formatting
Code of conduct — Wiki project page — About Gentoo wiki — Wiki FAQ
Help improve the documentation! — Contributing to Gentoo
Contributor's guide — Guidelines — Fixing errors howto
Editing pages — Talk pages — Formatting
Code of conduct — Wiki project page — About Gentoo wiki — Wiki FAQ
Help improve the documentation! — Contributing to Gentoo
This page covers ways the Semantic MediaWiki extension can be leveraged on the Gentoo wiki. The Semantic MediaWiki extension allows wiki pages to store information, as well as to query information on other pages.
Properties
Software
{{InfoBox homepage}} is used to display a link to a homepage in a right-floated box. It is typically used on software pages such as Plasma:
{{InfoBox stack |{{InfoBox project|KDE|header=true}} |{{InfoBox homepage|https://www.kde.org/}} |{{InfoBox package|kde-plasma/plasma-meta}} |{{InfoBox wikipedia}} }}
{{InfoBox homepage}} sets a property that can be queried using {{Homepage}}. For example, {{Homepage|Plasma}}
produces https://www.kde.org/ .
Users
{{InfoBox user}} is used to display information about a user on their user page. For example, User:Larry might have the following:
{{InfoBox stack | {{InfoBox user | name = Larry the cow | nickname = Larry | gpg_fingerprint = 13EBBDBEDE7A12775DFDB1BABB572E0E2D182910 }} }}
As of 2024-05-16, there are no templates to simplify querying these, so they need to be queried as follows:
{{#show: User:Larry | ?Has Name= }}
- Larry the cow
{{#show: User:Larry | ?Has Nickname= }}
- Larry
{{#show: User:Larry | ?GPG fingerprint= }}
- 13EBBDBEDE7A12775DFDB1BABB572E0E2D182910