Movatterモバイル変換


[0]ホーム

URL:


Page MenuHomePhabricator
Log In
Create Task
Maniphest T53049

TemplateData: Provide property "example" for template parameters
Closed, ResolvedPublic

Description

From
https://www.mediawiki.org/wiki/Thread:VisualEditor/Feedback/About_TemplateData

'(...) would it be possible to add new parameter "example" (where is example text what should be added to the parameter) in addition "label", "description", "type" and "required"?'


Version: unspecified
Severity: enhancement

Event Timeline

bzimport raised the priority of this task from toHigh.Nov 22 2014, 2:04 AM
bzimport added a project:TemplateData.
bzimport set Reference to bz51049.
Jdforrester-WMF lowered the priority of this task fromHigh toMedium.Dec 2 2014, 9:16 PM
Jdforrester-WMF moved this task fromBacklog toNext-up on theTemplateData board.

Change 194386 had a related patch set uploaded (by Mooeypoo):
Add an example property to parameters

https://gerrit.wikimedia.org/r/194386

Change 194416 had a related patch set uploaded (by Mooeypoo):
Show the field's example if it exists

https://gerrit.wikimedia.org/r/194416

Change 194416 merged by jenkins-bot:
MWParameterPage: Show the field's example if it exists

https://gerrit.wikimedia.org/r/194416

The feature support in MWParameterPage is a bit presumptuous as the exact definition and property name are still being reviewed upstream in TemplateData.

Anyway, this feature seems useful, but I'd like to be more explicit about at least one use case before we land it. The talk thread that requests it didn't seem to note anything about the existing propertiesdescription,default andautofill which currently cover the use case of showing what a field is for and what kind of value it should have.

I take it it will be used as placeholder in a user interface. However in VisualEditor thedefault is currently also displayed in theplaceholder attribute. And the (already merged) conditional implementation of that does indeed ignore theexample value if there is adefault. And it seems there is no difference communicated to the user visually to distinguish example from default.

If the user won't be able to tell the difference, can authors?

I feel like the feature would be useful, but it is imho not sufficiently clear in its specification, implementation and current use in VisualEditor to offset it from the other existing features. And I imagine this will lead to confusion or incorrect usage by authors and users.

Change 194386 merged by jenkins-bot:
Add an example property to parameters

https://gerrit.wikimedia.org/r/194386

Checked in betalabs - 'Example (en)' was added to Template documentation editor.

Change 207123 had a related patch set uploaded (by Krinkle):
Add example property to HTML rendering

https://gerrit.wikimedia.org/r/207123

Change 207123 merged by jenkins-bot:
Add example property to HTML rendering

https://gerrit.wikimedia.org/r/207123

Content licensed under Creative Commons Attribution-ShareAlike (CC BY-SA) 4.0 unless otherwise noted; code licensed under GNU General Public License (GPL) 2.0 or later and other open source licenses. By using this site, you agree to the Terms of Use, Privacy Policy, and Code of Conduct. ·Wikimedia Foundation ·Privacy Policy ·Code of Conduct ·Terms of Use ·Disclaimer ·CC-BY-SA ·GPL ·Credits

[8]ページ先頭

©2009-2025 Movatter.jp