PostmarketOS:Templates

From postmarketOS

MediaWiki allows us to define custom templates, which can then be included in other wiki pages. When creating a new one, please add it below, and use the "Template:Template" at the top of the new template. Check existing templates for reference. An automatically generated list of templates can be found here.

Available templates

Wiki links

Main page

Repository links

Talk pages

  • Unsigned - template to sign other people's unsigned comments on talk pages

Page information

Section information

  • See also - "see also" note placed under section headers
  • Hint - Shows a highlighted box for hints
  • Note - Shows a highlighted box for notes
  • Notice - Shows a highlighted box for important notes
  • Warning - Shows a highlighted box for warnings

Device ownership

  • My devices - Show table of devices owned on your own page
  • Owns device - Adds a device to the ownership table
  • Device owners - Displays list of people owning the device to the device page

Package links

Userboxes

Userboxes are small boxes that can be included on a user page.

Adding userboxes

  • Userbox container - makes userboxes within it float to the right, and automatically fill all available space on mobile:
{{Userbox container|
  {{User ports|9001}}
  {{User main device|PINE64 PinePhone (pine64-pinephone)}}
}}

Available userboxes

Template Purpose Usage Preview
User main device Shows the user's main device {{User main device|Wiki link}}
📱 This user's main device is a PINE64 PinePhone (pine64-pinephone).
User ports Shows the amount of devices you ported {{User ports|amount}}
This user has ported postmarketOS to 2 devices.
User mainline Shows the amount of devices you mainlined {{User mainline|amount}}
This user mainlined 2 devices.
User mainline attempts "This user is currently trying to mainline a device." {{User mainline attempts}}
🐧 This user is currently trying to mainline a device.
User Matrix Links to the user's Matrix profile {{User Matrix|@username:homeserver.org}}
Element logo This user has a Matrix account.
User GitLab Links to the user's GitLab profile {{User GitLab|username}}
GitLab logo This user has a GitLab profile.
User SourceHut Links to the user's SourceHut profile {{User SourceHut|username}}
SourceHut logo This user has a SourceHut profile.
User OFTC Shows your IRC nick on OFTC {{User OFTC|nickname}}
OFTC logo This user is on OFTC IRC as nickname.

See also