CharInsertList

From Wiki4Intranet
Jump to: navigation, search

[[]] is a MediaWiki extension.

  • Improvement status: No changes

Usage

Insert the following tag to MediaWiki:Edittools (or, with UserMessage extension, to a personal MediaWiki:Edittools@18.117.131.69).

  • type=dropdown (default) generates <select>boxes.
  • type=links is similar to normal CharInsert output with hyperlinks, but Item Names will be used for link text.
<listinsert [type=links|dropdown] [attributes]>
Item Name = Item Text
Item Name = Long and multiline \
            Item Text
Item Name = What_is_inserted_before_cursor + What_is_inserted_after_cursor \
            CharInsert-like syntax
Item Name = This is a real \+ character, not cursor marker (with slash)
</listinsert>

[attributes] are copied to HTML <select> attributes without any change.

Installation

Add the following into your LocalSettings.php:

require_once "$IP/extensions/CharInsertList/CharInsertList.php";