mediawiki-extensions-Visual.../modules/ve-mw/ui/styles/images/icons
Trevor Parscal be199c0bf2 Ultra-mega-hyper-citation editing on crack
Objectives:
* Allow users on-wiki to create tools and dialogs for citation templates
of their choosing
* Allow editing of citation templates directly, without having to go
through the reference dialog
* Provide citation template tools within reference editing that use the
same titles and icons as the citation tools do, but don't wrap the
inserted content in a ref tag

Changes:

* Reference list was cloning the DOM element it was inserting into its
view before the generated content node could finish rendering, so it
never ended up showing the finished rendering in the reference list
* Documenting hack about use of reference list node's destroy method,
and how we are depending on destroy not canceling generated content
rendering
* Introduced reference model
* Added saving/updating method to transclusion model
* Added getPartsList method to dm transclusion node, which caches the
result and invalidates the cache on update
* Added citation dialog, which extends transclusion dialog
* Added cite group to toolbars, cite-template in reference dialog toolbar
* Factored out getting the node to edit and saving changes procedures in
transclusion dialog so they could be extended in citation dialog
* Updated uses of autoAdd as per changes in oojs-ui (Ic353f91)
* Renamed MWDialogTool file since there was only one tool in it
* Expanded TransclusionDialogTool file out since there is now more logic
to it
* Switched to using ve.dm.MWReferenceModel instead of plain objects in
reference search widget

Configuration:

If you add to MediaWiki:Visualeditor-cite-tool-definition.json the
following code you will magically be presented with a delightful array
of citation options:

[
    { "name": "web", "icon": "ref-cite-web", "template": "Cite web" },
    { "name": "book", "icon": "ref-cite-book", "template": "Cite book" },
    { "name": "news", "icon": "ref-cite-news", "template": "Cite news" },
    { "name": "journal", "icon": "ref-cite-journal", "template": "Cite journal" }
]

...or...

[
    {
         "name": "any-name",
         "icon": "any-ooui-icon",
         "template": "Any template",
         "title": "Any title text"
     }
]

The title text is derived either from the title property or from the name
property by pre-pending the string 'visualeditor-cite-tool-name-' to
generate a message key. Titles for 'web', 'book', 'news' and 'journal' are
provided. The icon is a normal oo-ui-icon name, and more icons can be
added, as usual, by adding a class called .oo-ui-icon-{icon name} to
MediaWiki:Common.css. 'ref-cite-web', 'ref-cite-book', 'ref-cite-news'
and 'ref-cite-journal' are provided. The template name is simply the name
of the template without its namespace prefix.

Depends on Ic353f91 in oojs-ui

Bug: 50110
Bug: 50768
Change-Id: Id401d973b8d5fe2faec481cc777c17a24fd19dd4
2014-03-24 19:24:38 +00:00
..
alienextension.png Alien extensions 2013-08-08 14:27:49 +08:00
alienextension.svg Alien extensions 2013-08-08 14:27:49 +08:00
gallery.png Fix png transparency on gallery.png 2014-01-16 11:45:32 +00:00
gallery.svg Ultra-basic gallery editing 2014-01-15 15:13:12 -08:00
hiero.png
hiero.svg
math.png
math.svg
parameter-set.png
parameter-set.svg
parameter.png Fix icon opacities 2013-11-22 13:47:20 +00:00
parameter.svg Fix icon opacities 2013-11-22 13:47:20 +00:00
ref-cite-book.png Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-book.svg Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-journal.png Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-journal.svg Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-news.png Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-news.svg Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-web.png Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
ref-cite-web.svg Ultra-mega-hyper-citation editing on crack 2014-03-24 19:24:38 +00:00
reference.png
reference.svg
references.png
references.svg
source.png
source.svg
template.png
template.svg