Difference between revisions of "MediaWiki:Sidebar"

From Open Food Facts wiki
Jump to navigation Jump to search
m
(Test switch fr/en)
Line 8: Line 8:
 
** mainpage|mainpage-description
 
** mainpage|mainpage-description
 
** {{#ifeq:{{NAMESPACE}}|FR|FR:Accueil{{!}}Accueil}}
 
** {{#ifeq:{{NAMESPACE}}|FR|FR:Accueil{{!}}Accueil}}
** recentchanges-url|recentchanges
+
** {{#switch: {{NAMESPACE}}|FR = https://wiki.openfoodfacts.org/Special:RecentChanges?hidebots=1&namespace=600%3B601&limit=500&days=90&enhanced=1&urlversion=2{{!}}Changements récents|recentchanges-url{{!}}recentchanges}}
 
** randompage-url|randompage
 
** randompage-url|randompage
 
* Open Beauty Facts wiki
 
* Open Beauty Facts wiki
Line 27: Line 27:
 
To personalize namespaces, see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Parser_functions_in_sidebar
 
To personalize namespaces, see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Parser_functions_in_sidebar
 
Example: ** {{#ifeq:{{NAMESPACE}}|User|Page-to-link-to{{!}}text-to-show-on-user-page}}
 
Example: ** {{#ifeq:{{NAMESPACE}}|User|Page-to-link-to{{!}}text-to-show-on-user-page}}
 +
{{#switch: {{NAMESPACE}}|FR = FR:Accueil{{!}}Accueil|mainpage{{!}}mainpage-description }}
 +
** recentchanges-url|recentchanges
 
</noinclude>
 
</noinclude>

Revision as of 14:26, 24 June 2020

  • navigation
  • Open Food Facts galaxy
  • Open Food Facts wiki
    • mainpage|mainpage-description
    • recentchanges-url|recentchanges
    • randompage-url|randompage
  • Open Beauty Facts wiki
    • OBF:Main_Page|Main page
  • Whole wiki
    • helppage|help-mediawiki
  • SEARCH
  • TOOLBOX
  • LANGUAGES
  • Admins
    • MediaWiki:Sidebar|Edit sidebar
    • MediaWiki:Vector.css|Styling
    • Special:ReplaceText|Replace text

Every link has to be in the format: Page|name https://www.mediawiki.org/wiki/Manual:Interface/Sidebar To personalize namespaces, see https://www.mediawiki.org/wiki/Manual:Interface/Sidebar#Parser_functions_in_sidebar Example: ** mainpage|mainpage-description

    • recentchanges-url|recentchanges