Last modified: 2014-07-22 07:13:59 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 T49566, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 47566 - Install "HTML-Tags" on de.wikiversity
Install "HTML-Tags" on de.wikiversity
Status: NEW
Product: Wikimedia
Classification: Unclassified
Extension setup (Other open bugs)
wmf-deployment
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks: 31235
  Show dependency treegraph
 
Reported: 2013-04-23 19:50 UTC by Jan Luca
Modified: 2014-07-22 07:13 UTC (History)
10 users (show)

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


Attachments

Description Jan Luca 2013-04-23 19:50:44 UTC
Please install the extension "HTML-Tags" (https://www.mediawiki.org/wiki/Extension:HTML_Tags) on de.wikiversity.

You can find the local discussion here: https://de.wikiversity.org/wiki/Wikiversity:Cafeteria#Metadaten

Thank you
Comment 1 Alex Monk 2013-04-23 19:54:26 UTC
What HTML tags/attributes would be allowed?
Comment 2 Dereckson 2013-04-23 20:10:37 UTC
According https://en.wikiversity.org/wiki/Wikiversity:Colloquium#Adding_metadata_to_Wikiversity they would want to add LRMI stuff.

This feature is described on the following page:
https://www.mediawiki.org/wiki/Extension:HTML_Tags/Implementing_LRMI

[ Adding Yaron as CC. ]
Comment 3 Sam Reed (reedy) 2013-04-23 22:37:32 UTC
Note this extension isn't deployed anywhere so it isn't currently reviewed. Granted, it's only a relatively small amount of code
Comment 4 Chris Steipp 2013-04-23 23:57:20 UTC
I don't see the exact $wgHTMLTagsAttributes that would need to be defined, without tracing through all the templates. Can someone specify the exact tags and attributes that are needed?
Comment 5 Dereckson 2013-04-24 00:21:04 UTC
[ Adding Max Klein as CC. ]

Chris, I guess, it's mainly <meta> stuff to add in head.

Max, could you give us more information about required tags?
Comment 6 Max Klein 2013-04-24 16:08:10 UTC
To use HTMLTags for LRMI both <meta> and <span> are needed.

So I believe the required added lines will be 

$wgHTMLTagsAttributes['meta'] = array( 'itemprop', 'content' );
$wgHTMLTagsAttributes['span'] = array( 'itemprop', 'itemtype', 'contents' );

Yaron, can you confirm this matches the configuration at 
http://lrmi-demo.referata.com/wiki/Main_Page ?
Comment 7 Yaron Koren 2013-04-24 16:18:04 UTC
Hi Max,

Close - the lines are:

$gHTMLTagsAttributes['meta'] = array( 'itemprop', 'content' );
$wgHTMLTagsAttributes['span'] = array( 'itemprop', 'itemscope', 'itemtype' );
Comment 8 Greg Grossmeier 2013-05-15 17:23:11 UTC
Personally: This is a pretty neat project, ahem, so, I support getting this reviewed and deployed. I know this is a long time coming, as well.

Is this something you want to/can review, Chris? Since it is modifying html tags?
Comment 9 MZMcBride 2014-07-22 04:38:32 UTC
For the span attributes, is there a reason we can't modify MediaWiki core to allow itemprop, itemscope, and itemtype HTML attributes?

Currently "<span itemprop="name">Blend-O-Matic</span>" is sanitized(?) to "<span>Blend-O-Matic</span>" (might be core's includes/Sanitizer.php, might be something crazy like HTMLTidy). If we're considering these attributes generally safe, why not allow them in core? I'm not sure we need another extension to support this particular functionality.

For the meta tags, they probably need to go into the <head> and I'm not sure the extension can currently do that... you'd probably want a parser function, no?
Comment 10 MZMcBride 2014-07-22 04:45:22 UTC
(In reply to MZMcBride from comment #9)
> For the span attributes, is there a reason we can't modify MediaWiki core to
> allow itemprop, itemscope, and itemtype HTML attributes?

Right, so MediaWiki core already supports these attributes, they're just intentionally disabled... cf. r61985. It probably makes sense to re-visit and re-evaluate this decision. If nothing else, we could just set [[mw:Manual:$wgAllowMicrodataAttributes]] to true on Wikimedia wikis, but correcting the default behavior is also an option, if apparent consensus has changed from 2010.
Comment 11 MZMcBride 2014-07-22 04:52:00 UTC
http://lists.wikimedia.org/pipermail/wikitech-l/2010-January/046367.html is the referenced mailing list discussion.
Comment 12 Juergen Fenn 2014-07-22 05:17:27 UTC
I've just seen in my mail that you are still active on this bug. So, I'd like to point out that HTML tags integration in German Wikiversity (which initially aimed at integrating Wikiversity into the educational bookmarking service Edutags) has been stalled due to the end in the Wikiversity relaunch over a year ago. All sysops that were engaged in this project have by now become inactive (Jan Luca) or (Aschmidt and Wvk) have renounced their sysop rights and quit the project. This is why I cannot say whether anyone still needs the extension there at all. I suggest you ask on Wikiversity:Cafeteria before proceeding.
Comment 13 Nemo 2014-07-22 07:13:59 UTC
"Another potential usage of HTML Tags is to embed microdata (especially the kind that can't be embedded already using $wgAllowMicrodataAttributes)." Would be useful to document such kind of microdata, on [[mw:Manual:$wgAllowMicrodataAttributes]]. Wikisource adds all sort of microdata by template, for what it's worth.

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


Navigation
Links