Hi everyone!
I'm using VisualEditor and TemplateData to insert template calls in the wiki page. My users find it prerrty hard to understand the Add a template Dialog: you should first find a template, then add all its fields to the call and only after that place some value in each of the fields. Is it possible to automatically add all the fields to the template call once the template is selected?
Cheers, ----- Yury Katkov
We are introducing recommended fields which will be automatically added when the template is added. We already support required fields which are automatically added, but we are adding recommended fields so that required can be reserved for actually required fields. In time, we expect required will be enforced as well, but are still researching the impact of that.
- Trevor
On Tue, Apr 22, 2014 at 8:31 AM, Yury Katkov katkov.juriy@gmail.com wrote:
Hi everyone!
I'm using VisualEditor and TemplateData to insert template calls in the wiki page. My users find it prerrty hard to understand the Add a template Dialog: you should first find a template, then add all its fields to the call and only after that place some value in each of the fields. Is it possible to automatically add all the fields to the template call once the template is selected?
Cheers,
Yury Katkov
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Hoi, Is there a way to link such templates easily to Wikidata? Thanks, GerardM Op 22 apr. 2014 17:51 schreef "Trevor Parscal" tparscal@wikimedia.org:
We are introducing recommended fields which will be automatically added when the template is added. We already support required fields which are automatically added, but we are adding recommended fields so that required can be reserved for actually required fields. In time, we expect required will be enforced as well, but are still researching the impact of that.
- Trevor
On Tue, Apr 22, 2014 at 8:31 AM, Yury Katkov katkov.juriy@gmail.com wrote:
Hi everyone!
I'm using VisualEditor and TemplateData to insert template calls in the wiki page. My users find it prerrty hard to understand the Add a template Dialog: you should first find a template, then add all its fields to the call and only after that place some value in each of the fields. Is it possible to automatically add all the fields to the template call once the template is selected?
Cheers,
Yury Katkov
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
I don't quite understand your question, 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.
- Trevor
On Tue, Apr 22, 2014 at 11:07 AM, Gerard Meijssen <gerard.meijssen@gmail.com
wrote:
Hoi, Is there a way to link such templates easily to Wikidata? Thanks, GerardM Op 22 apr. 2014 17:51 schreef "Trevor Parscal" tparscal@wikimedia.org:
We are introducing recommended fields which will be automatically added when the template is added. We already support required fields which are automatically added, but we are adding recommended fields so that
required
can be reserved for actually required fields. In time, we expect required will be enforced as well, but are still researching the impact of that.
- Trevor
On Tue, Apr 22, 2014 at 8:31 AM, Yury Katkov katkov.juriy@gmail.com wrote:
Hi everyone!
I'm using VisualEditor and TemplateData to insert template calls in the wiki page. My users find it prerrty hard to understand the Add a template Dialog: you should first find a template, then add all its fields to the call and only after that place some value in each of the fields. Is it possible to automatically add all the fields to the template call once the template is selected?
Cheers,
Yury Katkov
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
On Tue, Apr 22, 2014 at 11:28 AM, Trevor Parscal tparscal@wikimedia.orgwrote:
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.
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, 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?
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.
On 28 April 2014 01:55, S Page spage@wikimedia.org wrote:
On Tue, Apr 22, 2014 at 11:28 AM, Trevor Parscal <tparscal@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 namespaceshttps://www.mediawiki.org/wiki/Requests_for_comment/Associated_namespaces" 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.
Thanks Trevor!
When will such 'recommended fields' be available to use? ----- Yury Katkov
On Tue, Apr 22, 2014 at 7:51 PM, Trevor Parscal tparscal@wikimedia.org wrote:
We are introducing recommended fields which will be automatically added when the template is added. We already support required fields which are automatically added, but we are adding recommended fields so that required can be reserved for actually required fields. In time, we expect required will be enforced as well, but are still researching the impact of that.
- Trevor
On Tue, Apr 22, 2014 at 8:31 AM, Yury Katkov katkov.juriy@gmail.com wrote:
Hi everyone!
I'm using VisualEditor and TemplateData to insert template calls in the wiki page. My users find it prerrty hard to understand the Add a template Dialog: you should first find a template, then add all its fields to the call and only after that place some value in each of the fields. Is it possible to automatically add all the fields to the template call once the template is selected?
Cheers,
Yury Katkov
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
Wikitech-l mailing list Wikitech-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/wikitech-l
wikitech-l@lists.wikimedia.org