Difference between revisions of "CharInsertList"
From Wiki4Intranet
Line 13: | Line 13: | ||
Insert the following tag to [[MediaWiki:Edittools]] (or, with [[UserMessage]] extension, to a personal [[MediaWiki:Edittools@{{USERNAME}}]]). | Insert the following tag to [[MediaWiki:Edittools]] (or, with [[UserMessage]] extension, to a personal [[MediaWiki:Edittools@{{USERNAME}}]]). | ||
+ | |||
+ | * 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. | ||
<pre> | <pre> | ||
− | <listinsert [attributes]> | + | <listinsert [type=links|dropdown] [attributes]> |
Item Name = Item Text | Item Name = Item Text | ||
Item Name = Long and multiline \ | Item Name = Long and multiline \ |
Latest revision as of 16:39, 12 July 2013
CharInsertList is a MediaWiki extension.
- Main purpose: Similar to CharInsert, but inserts drop-down lists instead of links (used to insert predefined text during edit).
- Repository: https://github.com/mediawiki4intranet/CharInsertList
- Homepage: http://wiki.4intra.net/CharInsertList
- License: GPLv2.0+
- Created: 2010-04-05
- Our rating: Likely useful (4)
Status for Mediawiki4Intranet distribution:
- Inclusion date: 2010-04-05
- Included version: newest available
- Improvement status: Created by MediaWiki4Intranet project
Usage
Insert the following tag to MediaWiki:Edittools (or, with UserMessage extension, to a personal MediaWiki:Edittools@18.226.226.151).
- 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";