Mediawiki - a quick link to template editor

烈酒焚心 提交于 2019-12-13 01:49:24

问题


Wikipedia's navbox templates have v·t·e (view, talk, edit) links in upper left corner.

Now I have my own MediaWiki installation and want to be able to edit templates quickly (to have an edit link near each template or more advanced - near each template of certain type).

How to do this?

P.S. I am not sure whether this is the right place to ask such questions, but saw mediawiki tag on stackoverflow.


回答1:


The links in navboxes are there, because a navbox template is created using Template:Navbox, which in turn uses Template:Navbar, which actually creates the links.

If you want something similar on your wiki, you can copy Navbar from Wikipedia, create your own version of Navbox (or whatever) and then use that in the specific templates that you create.



来源:https://stackoverflow.com/questions/24408629/mediawiki-a-quick-link-to-template-editor

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!