GithubHelp home page GithubHelp logo

wikimedia / mediawiki-extensions-multiboilerplate Goto Github PK

View Code? Open in Web Editor NEW
0.0 15.0 2.0 688 KB

Github mirror of MediaWiki extension MultiBoilerplate - our actual code is hosted with Gerrit (please see https://www.mediawiki.org/wiki/Developer_access for contributing

License: Other

PHP 96.92% JavaScript 3.08%

mediawiki-extensions-multiboilerplate's Introduction

MultiBoilerplate extension for MediaWiki

The MultiBoilerplate extension allows a boilerplate to be selected from a drop down box located above the edit form. By default, this shows only on creation of new pages. When loading a boilerplate, it will completely replace whatever text is already in the edit form.

Dependencies

Version 2.2.0 and later requires MediaWiki >= 1.35.

Installation

See the regular installation instructions for MediaWiki extensions: https://www.mediawiki.org/wiki/Manual:Extensions#Installing_an_extension

Configuration

Main configuration

The main configuration is of the available boilerplates; this is done either:

  • through $wgMultiBoilerplateOptions in LocalSettings.php, by filling the $wgMultiBoilerplateOptions array with a list of boilerplate names that correspond to templates, like so:
    $wgMultiBoilerplateOptions[ "My Boilerplate" ] = "Template:My Boilerplate";
  • Or through system message MediaWiki:Multiboilerplate, which uses the following format:
    My Boilerplate|Template:My Boilerplate
    • You can also create headers to separate boilerplates, which will be transformed to option groups in the edit form drop down. For example:

      == Pretty Templates ==

      • My Boilerplate|Template:My Boilerplate == Ugly Templates ==
        • Their Boilerplate|Template:Their Boilerplate
    • The template pages may also be represented by links, just for convenience, e.g.: * My Boilerplate|[[Template:My Boilerplate]]

Additional configuration options

  • $wgMultiBoilerplateOverwrite: false by default. If true, shows the boilerplates dropdown even on pre-existing page. The selected boilerplate will completed overwrite the current contents.

Usage

  • Select a boilerplate from a dropdown above the edit form
  • View the configured boilerplates at Special:MultiBoilerplates

Change log

See CHANGELOG.md for a complete change log.

Credits

Originally by Robert Leverington (minuteelectron), with additional contributions by Al Maghi, Dror S [FFS] and Jhf2442. See the commit log for a full list of contributers.

mediawiki-extensions-multiboilerplate's People

Contributors

dannys712 avatar drorsnir avatar ladsgroup avatar lakejason0 avatar legoktm avatar lunartwilight avatar paladox avatar siebrand avatar somechris avatar translatewiki avatar umherirrender avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Forkers

kolzchut jmnote

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.