Last modified: 2013-08-27 17:54:04 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T54676, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 52676 - TemplateData: Param#deprecated field does not support boolean value
TemplateData: Param#deprecated field does not support boolean value
Status: RESOLVED WONTFIX
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
unspecified
All All
: Normal major (vote)
: ---
Assigned To: Krinkle
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2013-08-09 17:57 UTC by Woojin Kim
Modified: 2013-08-27 17:54 UTC (History)
5 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Woojin Kim 2013-08-09 17:57:45 UTC
I tried to add template data for <http://ko.wikipedia.org/w/index.php?title=%ED%8B%80:%EC%84%9C%EC%A0%81_%EC%9D%B8%EC%9A%A9/%EC%84%A4%EB%AA%85%EB%AC%B8%EC%84%9C&action=edit>, while I wrote following text via TemplateDataEditor:
...
		"확인연도": {
			"deprecated": true,
			"description": "(해당 항목을 확인한 해)",
			"aliases":["accessyear"]
		},
...
And then the MediaWiki engine printed the following message and the data cannot be saved:
Property "params.확인연도.deprecated" is expected to be of type "boolean|string".

It was valid on JSON Lint. However, system does not seem to recognize boolean variable correctly.
 
Note: When I tried to enter string value, no problems arised. Therefore, the problem is boolean recognition.
Comment 1 Krinkle 2013-08-27 17:51:12 UTC
Though I intend to change this and documentation is not excellent, this is expected behaviour.

Deprecated is either boolean false (default) indicating that it isn't deprecated, or a string indicating why it is deprecated.



> @property {boolean|string} [deprecated=false] Tooltip for the user
> detailing the intent for the deprecated parameters. [1]

[1] https://raw.github.com/wikimedia/mediawiki-extensions-TemplateData/master/spec.templatedata.json
Comment 2 Krinkle 2013-08-27 17:53:54 UTC
See also bug 53412.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links