into Template:Cite_book
Forwarding to mobile-l in case it helps anyone else.
I used vagrant [1] which made this a lot easier after a failed attempt
on my local instance.
[1]
On Fri, May 16, 2014 at 2:08 AM, Ryan Kaldari <rkaldari(a)wikimedia.org> wrote:
Hey Jon,
There are two ways you can get citations working locally. Apparently there
is a Vagrant config you can use, or you can set it up manually:
1. Install the TemplateData extension and set it up according to the
installation instructions on
Mediawiki.org
2. Install the Scribunto extension and set it up according to the
installation instructions on
Mediawiki.org
3. Copy the main citation module from en.wiki to your local wiki:
https://en.wikipedia.org/wiki/Module:Citation/CS1
4. Create some citation templates. The easiest way to do this is to copy the
code from en.wiki, but delete everything in the noinclude sections
(otherwise you'll be in template dependancy hell)
5. Add templateData data to your template pages. See the TemplateData
documentation on
Mediawiki.org
6. Set up your cite group definition on your local wiki at
MediaWiki:Visualeditor-cite-tool-definition.json, for example:
[
{ "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" }
]
Good luck!
Ryan