Follow up to T238300: 78: Show more info for edits
Parsed tags is declined, so I can either
- Manually query to get the parsed versions of the tags
- Show just the names
Follow up to T238300: 78: Show more info for edits
Parsed tags is declined, so I can either
Status | Subtype | Assigned | Task | ||
---|---|---|---|---|---|
Declined | DannyS712 | T236632 [Tracking] Newsletter | |||
Resolved | DannyS712 | T239450 84: Newsletter, issue #4 | |||
Resolved | DannyS712 | T239560 87: Show tags info | |||
Declined | None | T239410 API: Provide parsedtags information |
@Masumrezarock100 thoughts? Would parsing be helpful (at the cost of adding more api calls and slowing things down)?
How are you getting a tag info of a specific revision? I mean what is the API call url? I'd like to see how it's formatted.
As shown in https://commons.wikimedia.org/wiki/Special:Tags, OAuth CID: 67 tag appears as OAuth Uploader (with the hyperlink intact). So which one would be shown in the global watchlist? the tag name or how it currently appears in RC/Watchlist?
I don't think that would be helpful. For example, Cat-a-lot tag for Cat-a-lot would be fine and users would understand it since the "tag name" is identical to how it appears in the watchlist/RC feed. But users likely would not understand that OAuth CID: 67 stands for OAuth Uploader (unless they read Special:Tags).
You mean showing OAuth Uploader instead of OAuth CID: 67? If so, would you keep the hyperlink?
I mean like the script remembering that
OAuth CID:67 = OAuth Uploader
OAuth CID:Foo = Bar
rather than checking each time. No links would be included
I see. But what do you mean by "script remembers"? Where you would store it? In the script, or in a browser cookie?
If you are going to hard-code them in the script, it would take up some space and you'll have to update it everytime when someone adds a new OAuth application (kinda like the "adding new wikis to validation" situation).
So now you have two options. Fetch the versions of tags how it appears in RC/Watchlist feed, then
The watchlist API already returns the tag name - I'm not sure I understand what the first option is?
OAuth CID: 67 tag renders as [[Special:MyLanguage/Commons:OAuth_Uploader|OAuth Uploader]] (with the hyperlink intact) in the WL/RC feed page. By stripping off things, I mean remove the link and serve it as just OAuth Uploader.
Oh - querying to see what the tag actually means returns the html (see https://commons.wikimedia.org/w/api.php?action=query&list=tags&tgprop=displayname&tglimit=max) - no need to convert anything
Okay. I started working on this. At first it'll just be the tag name (i.e. OAuth CID: 67) and then I'll add the parsed result when I get a chance