Sidebar tinkering: Difference between revisions

From MWStake
Jump to navigation Jump to search
(Created page with "The MediaWiki:Sidebar can be changed following the [https://www.mediawiki.org/wiki/Manual:Interface/Sidebar sidebar manual]. The general form looks like: : <SyntaxHighlig...")
 
No edit summary
 
Line 23: Line 23:
#* Note: This should have created a link on the sidebar with the proper link text.
#* Note: This should have created a link on the sidebar with the proper link text.
# To create a [https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Tooltips_and_Accesskey tooltip], create a page in the form <code>MediaWiki:Tooltip-n-{{Font color|blue|<id of the item>}}</code> (for example: '''MediaWiki:Tooltip-n-Contribution-scores''') with the contents the way the tooltip should read (for example: '''Find user Contribution Scores''')
# To create a [https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Tooltips_and_Accesskey tooltip], create a page in the form <code>MediaWiki:Tooltip-n-{{Font color|blue|<id of the item>}}</code> (for example: '''MediaWiki:Tooltip-n-Contribution-scores''') with the contents the way the tooltip should read (for example: '''Find user Contribution Scores''')
[[Category:Wiki Moment]]

Latest revision as of 19:09, 1 May 2019

The MediaWiki:Sidebar can be changed following the sidebar manual.

The general form looks like:

* navigation
** mainpage|mainpage-description
** recentchanges-url|recentchanges
** randompage-url|randompage
** Help:Contents|help
* SEARCH
* TOOLBOX
* LANGUAGES

To add a new section with a new link, do the following:

  1. Modify MediaWiki:Sidebar to include a new section and link:
    * Special
    ** Special:Contributionscores|Contribution-scores
    
  2. The link will read as Contribution-scores, to include the space and proper capitalization (Contribution Scores), do the following:
    • Note: You can just add the space (and capitalization) in the step above, however it will break the ability to add a Tooltips and Accesskey (described below).
  3. Create a system message in the form MediaWiki:Link-description (for example: MediaWiki:Contribution-scores) with the contents the way the link should read (for example: Contribution Scores)
    • Note: This should have created a link on the sidebar with the proper link text.
  4. To create a tooltip, create a page in the form MediaWiki:Tooltip-n-<id of the item> (for example: MediaWiki:Tooltip-n-Contribution-scores) with the contents the way the tooltip should read (for example: Find user Contribution Scores)