dsbm49845 2013-10-25 07:31
浏览 182
已采纳

mediawiki页面的不同侧边栏

I have edited my sidebar as follows ,

*Navigation
** Projects|Projects
** Resources|Resources
** IRC Support|IRC Support
** Media Wiki Archive|Media Wiki Archeive
**Vote on What We Do|Vote on What We Do
* SEARCH
* TOOLBOX
* LANGUAGES 

i would like to have 3 different sidebar for 3 different pages ,my first page is http://www.hh.com/wiki/Main_Page

for this page i would like to have the sidebar as

*Navigation
**Hello|Hello
* SEARCH
* TOOLBOX
* LANGUAGES

for another i would like to have http://www.hh.com/wiki/Page1

*Navigation
**Page1|page1
* SEA1RCH
* TOOLBOX
* LANGUAGES

My Question is, is it possible to have different sidebar for differnt pages in media wiki

  • 写回答

1条回答 默认 最新

  • duandao7704 2013-10-25 20:28
    关注

    You need Extension:ParserFunctions.

    Create page (for example Sidebar1) with contents:

    *Navigation
    **Hello|Hello
    * SEARCH
    * TOOLBOX
    * LANGUAGES
    

    Create other page (for example Sidebar2) with contents:

    *Navigation
    **Page1|page1
    * SEA1RCH
    * TOOLBOX
    * LANGUAGES
    

    And in MediaWiki:Sidebar you can write something like:

    {{#ifeq: {{PAGENAME}} | Main_Page | {{:Sidebar1}} | 
        {{#ifeq: {{PAGENAME}} | Page1 | {{:Sidebar2}} |  }}
    }}
    

    Change {{PAGENAME}} if needed Magic words

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 对于相关问题的求解与代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 信号傅里叶变换在matlab上遇到的小问题请求帮助
  • ¥15 保护模式-系统加载-段寄存器
  • ¥15 电脑桌面设定一个区域禁止鼠标操作