Last modified: 2014-05-20 18:44:38 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 T57331, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 55331 - TemplateData: Add parameter type for boolean
TemplateData: Add parameter type for boolean
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
TemplateData (Other open bugs)
master
All All
: Normal enhancement (vote)
: ---
Assigned To: James Forrester
:
Depends on:
Blocks: td-param-type
  Show dependency treegraph
 
Reported: 2013-10-05 06:47 UTC by Matthew Flaschen
Modified: 2014-05-20 18:44 UTC (History)
5 users (show)

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


Attachments

Description Matthew Flaschen 2013-10-05 06:47:32 UTC
Some template parameters are essentially boolean.  These include 'deadurl' and 'nopp', both used by [[Template:cite web]] (and others in the family).

With 'deadurl', "no" is the only real "false" value; everything else is true/default behavior. For 'nopp', if it is set to anything, it suppresses "p." and "pp." before page numbers.

In these examples, often the parameter is just omitted for the default behavior (i.e. instead of deadurl=yes it can just be left out).

I think that is common with such parameters, but there may be examples where it doesn't hold up (e.g. omitted is an undesirable case, and it's better that the parameter explicitly be set true or false).
Comment 1 Helder 2014-05-09 16:57:31 UTC
See also:
https://en.wikipedia.org/wiki/Module:Yesno
Comment 2 Gerrit Notification Bot 2014-05-09 17:44:39 UTC
Change 132469 had a related patch set uploaded by Jforrester:
Add 'boolean' type support

https://gerrit.wikimedia.org/r/132469
Comment 3 Gerrit Notification Bot 2014-05-20 18:43:32 UTC
Change 132469 merged by jenkins-bot:
Add 'boolean' type support

https://gerrit.wikimedia.org/r/132469
Comment 4 James Forrester 2014-05-20 18:44:38 UTC
Done.

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


Navigation
Links