On 28 April 2014 01:55, S Page <spage(a)wikimedia.org> wrote:
On Tue, Apr 22, 2014 at 11:28 AM, Trevor Parscal
<tparscal(a)wikimedia.org
wrote:
I don't quite understand your question
[linking templatedata easily to
Wikidata], sorry. I'm talking about adding fields to TemplateData which
VisualEditor uses to build a user interface around templates.
TemplateData
is defined on-wiki as a JSON blob.
It confused me too at first, since Wikidata is envisioned as a way to
supply data to infobox templates. Maybe call it a TemplateSpec.
Yeah, there's no neat way in TemplateData to tie parameters to Wikidata
items or properties, which might be a useful improvement. Something to
think about.
I was also confused by its [Manage template
documentation] button, I
thought at first clicking it would let you edit the /doc subpage of a
template,
Yeah; we could improve this language to make it more obvious. OTOH there's
likely to be some big opportunities available when the outcome of the
"associated
namespaces<https://www.mediawiki.org/wiki/Requests_for_comment/Associate…
RfC lands, letting us have a "Data" and "Documentation" tab for each
template – an improvement now should mesh with that outcome.
but it brings up the interface for editing the
<templatedata>
block. The block does replace a lot of hand-written template
documentation; might <templatedata> be internationalized some day?
The data definition JSON blob supports multiple languages per value for
the appropriate values, but not the GUI editor yet – that's the next thing
we want to add to it.
It's a really cool feature! It saves me opening
"Templates used on this
page" to open a template in a new tab just to remind me of its parameters.
Thanks. :-)
J.
--
James D. Forrester
Product Manager, VisualEditor
Wikimedia Foundation, Inc.
jforrester(a)wikimedia.org | @jdforrester