Difference between revisions of "Template:ContentHandler"
Jump to navigation
Jump to search
Template documentation
Joelmartin (talk | contribs) m (1 revision imported) |
Joelmartin (talk | contribs) m (Text replacement - "<languages/>" to "") |
||
(4 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | + | ||
− | <onlyinclude>{{#switch: | + | <onlyinclude>{{#switch: |
| = | | = | ||
{{ Sidebar | {{ Sidebar | ||
Line 9: | Line 9: | ||
| name = ContentHandler | | name = ContentHandler | ||
− | | title = <strong | + | | title = <strong> Content Models and Handlers</strong> |
− | | above = <em | + | | above = <em> MediaWiki allows for page content types other than wikitext. It offers built-in support for JavaScript, CSS, JSON and plain text. Extensions can use MediaWiki's ContentHandler mechanism to add new content models for accepting different formats and controlling how they are rendered, stored and edited.</em> |
− | | heading1 = [[File:OOjs UI icon information.svg|20px|link=]] | + | | heading1 = [[File:OOjs UI icon information.svg|20px|link=]] About |
| content1 = | | content1 = | ||
− | * {{ll|Manual:ContentHandler| | + | * {{ll|Manual:ContentHandler| About the ContentHandler}} |
− | * {{ll|Content handlers| | + | * {{ll|Content handlers| Content handlers and their implementation}} |
− | | heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] | + | | heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] Usage |
| content2 = | | content2 = | ||
− | * {{ll|Help:ChangeContentModel| | + | * {{ll|Help:ChangeContentModel| Changing the content model of a page}} |
− | * {{Manual|$wgNamespaceContentModels| | + | * {{Manual|$wgNamespaceContentModels| Changing the content model of a namespace}} |
− | * {{ll|Category:ContentHandler extensions| | + | * {{ll|Category:ContentHandler extensions| Extensions using the ContentHandler}} |
− | * {{ll|Manual:Page content models| | + | * {{ll|Manual:Page content models| Adding content models with an extension}} |
− | * | + | * Examples: |
− | ** [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/examples/+/master/includes/ includes] ( | + | ** [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/examples/+/master/includes/ includes] ( part of <tvar|ext>{{ll|Extension:Example|Example}}) |
** [https://github.com/brightbyte/MWExtension-Markdown Markdown] | ** [https://github.com/brightbyte/MWExtension-Markdown Markdown] | ||
− | | heading3 = [[File:OOjs UI icon advanced.svg|20px|link=]] | + | | heading3 = [[File:OOjs UI icon advanced.svg|20px|link=]] Configuration settings |
| content3 = | | content3 = | ||
* {{Manual|$wgContentHandlers}} | * {{Manual|$wgContentHandlers}} | ||
Line 35: | Line 35: | ||
| below = | | below = | ||
− | <div style="font-weight: 700; font-size: 16px; padding: .5em; text-align: {{dir|{{pagelang}}|right|left}};" | + | <div style="font-weight: 700; font-size: 16px; padding: .5em; text-align: {{dir|{{pagelang}}|right|left}};"> Support and development</div> |
− | * [[File:Git-logo.svg|30px|link=]] {{git file|project=mediawiki/core|branch=HEAD|file=docs/contenthandler.txt|text= | + | * [[File:Git-logo.svg|30px|link=]] {{git file|project=mediawiki/core|branch=HEAD|file=docs/contenthandler.txt|text= Latest technical documentation (Git)}} |
* [[File:Wikimedia Phabricator logo.svg|30px|link=phabricator:tag/mediawiki-contenthandler]] [[phabricator:tag/mediawiki-contenthandler|Phabricator]] | * [[File:Wikimedia Phabricator logo.svg|30px|link=phabricator:tag/mediawiki-contenthandler]] [[phabricator:tag/mediawiki-contenthandler|Phabricator]] | ||
Line 46: | Line 46: | ||
{{documentation|content= | {{documentation|content= | ||
− | + | ||
− | + | ||
This template is used on all pages relating to Content Models. | This template is used on all pages relating to Content Models. | ||
− | + | ||
[[Category:Navigation templates{{#translation:}}]] | [[Category:Navigation templates{{#translation:}}]] | ||
}} | }} |
Latest revision as of 16:12, 21 December 2019
Content Models and Handlers |
---|
MediaWiki allows for page content types other than wikitext. It offers built-in support for JavaScript, CSS, JSON and plain text. Extensions can use MediaWiki's ContentHandler mechanism to add new content models for accepting different formats and controlling how they are rendered, stored and edited. |
![]() |
![]() |
![]() |
Support and development
|

This template is used on all pages relating to Content Models.