https://bugzilla.wikimedia.org/show_bug.cgi?id=29935
Web browser: ---
Bug #: 29935
Summary: Display examples nicely in paraminfo
Product: MediaWiki
Version: 1.19-svn
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Unprioritized
Component: API
AssignedTo: [email protected]
ReportedBy: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected]
Classification: Unclassified
examples="Get data with content for the last revision of titles "API"
and "Main Page":
api.php?action=query&prop=revisions&titles=API|Main%20Page&rvprop=timestamp|user|comment|content Get
last 5 revisions of the "Main Page":
api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment Get
first 5 revisions of the "Main Page":
api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer Get
first 5 revisions of the "Main Page" made after 2006-05-01:
api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvdir=newer&rvstart=20060501000000 Get
first 5 revisions of the "Main Page" that were not made made by
anonymous user "127.0.0.1"
api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvexcludeuser=127.0.0.1 Get
first 5 revisions of the "Main Page" that were made by the user
"MediaWiki default"
api.php?action=query&prop=revisions&titles=Main%20Page&rvlimit=5&rvprop=timestamp|user|comment&rvuser=MediaWiki%20default"
Is not pretty. Using an encoded \n between a list of strings
As such, when implemeting help urls, I switched it to be like
<helpurls>
<helpurl>http://www.mediawiki.org/wiki/API:Properties#revisions_.2F_rv</helpurl>
</helpurls>
As such, I know changing from the (crappy) inline attribute, to a list of
elements is a "breaking change", how about doing both (?) for a while, and then
sometime in the future, drop the nasty way?
I know it's not so much of a breaking change, as it's not parameter renaming,
but it is a format change
--
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l