Where can I get templates for MediaWiki?

后端 未结 3 818
别那么骄傲
别那么骄傲 2021-02-05 07:53

I have noticed that a lot of mediawiki-based websites use such templates as Robelbox, Ambox etc. Where can I get them and how should they be installed?

3条回答
  •  [愿得一人]
    2021-02-05 08:38

    This task is a bit more involved than just exporting and importing.

    A "simple" overview can be found here -> How to add Wikipedia templates to your own Mediawiki

    • Upgrade our MediaWiki to the latest stable version, hoping to match Wikipedia’s one.

    • Install the Scribunto extension and properly configure it.

    • Export/Import the LUA modules used by the (meta)templates you want to use and import them in your MediaWiki.

    • Export/Import the Wikipedia templates you want to use, together with all the required metatemplates, and import them in your
      MediaWiki.

    • Copy the relevant CSS classes from the Wikipedia’s Common.css file and paste them in your MediaWiki’s Common.css.

    • Activate MediaWiki IstantCommons feature to automatically fetch the Template image files from the commons.wikipedia.com repository.

提交回复
热议问题