Set $wgAllowMicrodataAttributes = true for all wikis by default.
The feature isn't harmful, does not break or even change anything, and is undoubtfully and unquestionably useful.
See also: T128829
Set $wgAllowMicrodataAttributes = true for all wikis by default.
The feature isn't harmful, does not break or even change anything, and is undoubtfully and unquestionably useful.
See also: T128829
| Status | Subtype | Assigned | Task | ||
|---|---|---|---|---|---|
| Resolved | Dereckson | T130034 Set $wgAllowMicrodataAttributes = true for all wikis by default | |||
| Resolved | Dereckson | T130040 Remove $wgAllowMicrodataAttributes and $wgAllowRdfaAttributes settings |
So, I've prepared e789f51 to apply this to MediaWiki core, instead of only WMF wikis. It has been merged today by Daniel.
@Johan This will be deployed as a part of 1.27.0-wmf.18 (excepted if we would like to deploy it sooner, but as we need to announce it, I don't think this is an interesting move), ie according our calendar:
What to announce?
MediaWiki markup now supports out of the box two standard of semantic web attributes: Microdata and RDFa 1.0.
Wikimedia projects can so use Microdata. Reference documents could be found at https://html.spec.whatwg.org/multipage/microdata.html and https://www.w3.org/TR/microdata/.
They can also consider to use RDFa, but in this case, they also should consider the opportunity to wait for an update of the MediaWiki core to support the last version RDFa 1.1.
Any project willing to use RDFa 1.0 also have to request a configuration change to set a $wgHtml5Version setting compatible with RDFa.
Hi, I'm trying to write the very short summary for Tech/News... Does this work?
"MediaWiki now supports the web standards of Microdata (by default) and RDFa 1.0 (wikis need to request a configuration change). [https://phabricator.wikimedia.org/T130034#2134865]"
Tweaks or alternatives would be appreciated. (It needs to be very short, and easily translatable).
Also, is there any onwiki documentation, that we could point to? Something that includes examples (including any examples of in-situ usage), and the details (above) about the need to request configuration changes for RDFa 1.0., would be perfect. - Then I could add "See [[foo|further information]]." - I searched mw.org but couldn't see anything uptodate and informative. Thanks!
Yes, that works if we add the keyword "semantic":
MediaWiki now supports the semantic web standards of Microdata (by default) and RDFa 1.0 (wikis need to request a configuration change). [https://phabricator.wikimedia.org/T130034#2134865]"
Rewritten as:
MediaWiki now supports the semantic web standards of Microdata and RDFa 1.0. On Wikimedia projects, a configuration change must be requested in order to enable RDFa 1.0.
per suggestion from @Hello71 (helping me avoid my addiction to parentheses).
If the onwiki documentation page is ready before ~24 hours from now, I'll add a link to it from now supports.
Thanks again, all. :-)