Wikificator is a utility that converts HTML text inputs to wikitext. Documentation is available on Meta. Please note that currently Wikificator works only for "Source editor" (see Preference / Editing / Preferred editor option); "Visual editor" and "Visual editor - source mode" are not supported.
Installation
- Importing multiple scripts? This quick guide shows how to combine the imports.
- For site-wide use, an administrator can add the line below to the wiki's MediaWiki:ImportJS page.
dev:Wikificator.js
- For personal use, add the code snippet below to your global.js page (for use on all wikis) or your common.js page on your wiki (for use on a single wiki). Note that personal JS must be enabled for your account.
importArticles({
type: 'script',
articles: [
'u:dev:MediaWiki:Wikificator.js',
]
});
Lorem ipsum
You can change text below to check more wikificator wikifications.
==header1== Lorem ipsum dolor sit amet, consec'tetur <i>adipiscing</i> elit.Duis <b>vel</b> "dolor ut" turpis pretium suscipit. =='''header2'''== <hr> Donec at nulla ac risus sollicitudin euismod. Suspendisse in dui sed orci ultricies lobortis. Pellentesque a nulla in ex tincidunt faucibus. Aenean et neque felis. Sed eleifend posuere sem. ==external links== Donec dignissim aliquam egestas. Sed quis nisi dui. Vivamus finibus ultricies elit. In hac habitasse platea dictumst.
Tips&tricks
- Via CSS, one can set custom image or even text for the «wikify» button:
- custom image:
.toolbar .wikify img {display:none}
.toolbar .wikify {
background-image: url(https://slot1-images.wikia.nocookie.net/__cb7990017990012/common/skins/shared/images/sprite.png);
background-position: -1192px -80px;
height: 16px;
width: 16px}
- custom text:
.toolbar .wikify img{width:0px}
.toolbar .wikify:before{content:"\"/«"}