Page.content_model was only implemented for 1.21+, using the API result.
.css and .js pages, typically used in MediaWiki: and User: namespaces, could return a different content_model pre 1.21
Description
Details
| Subject | Repo | Branch | Lines +/- | |
|---|---|---|---|---|
| [IMPR] rewrite Revision class | pywikibot/core | master | +233 -203 |
Related Objects
- Mentioned In
- rPWBC43dca2afc8a2: [IMPR] rewrite Revision class
Event Timeline
Wasn't contentmodel introduced in 1.22 for 'info' and in 1.21 for 'revisions'?
Is it returned in some other way?
I miss what this means then:
".css and .js pages, typically used in MediaWiki: and User: namespaces, could return a different content_model pre 1.21"
I was hoping that we could detect that Page( enwp, 'User:Foo/common.js' ) on pre 1.21 is 'javascript' instead of 'wikitext'.
Change 291605 had a related patch set uploaded (by xqt):
[pywikibot/core] [IMPR] rewrite Revision class
Change 341342 had a related patch set uploaded (by xqt):
[pywikibot/core] [IMPR] rewrite Revision class
@Xqt: Hi! This task has been assigned to you a while ago, and related patches have not seen updates recently. Do you still plan to work on this task? Thanks!
Change 341342 merged by jenkins-bot:
[pywikibot/core@master] [IMPR] rewrite Revision class