Line 1: |
Line 1: |
| <languages/> | | <languages/> |
− | <onlyinclude>{{#switch:<translate></translate> | + | <onlyinclude>{{#switch:</translate> |
| | = | | | = |
| {{ Sidebar | | {{ Sidebar |
Line 9: |
Line 9: |
| | | |
| | name = ContentHandler | | | name = ContentHandler |
− | | title = <strong><translate><!--T:1--> Content Models and Handlers</translate></strong> | + | | title = <strong><!--T:1--> Content Models and Handlers</translate></strong> |
− | | above = <em><translate><!--T:2--> MediaWiki allows for page content types other than wikitext.</translate> <translate><!--T:3--> It offers built-in support for JavaScript, CSS, JSON and plain text.</translate> <translate><!--T:4--> 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.</translate></em> | + | | above = <em><!--T:2--> MediaWiki allows for page content types other than wikitext.</translate> <!--T:3--> It offers built-in support for JavaScript, CSS, JSON and plain text.</translate> <!--T:4--> 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.</translate></em> |
| | | |
− | | heading1 = [[File:OOjs UI icon information.svg|20px|link=]] <translate><!--T:5--> About</translate> | + | | heading1 = [[File:OOjs UI icon information.svg|20px|link=]] <!--T:5--> About</translate> |
| | content1 = | | | content1 = |
− | * {{ll|Manual:ContentHandler|<translate><!--T:6--> About the ContentHandler</translate>}} | + | * {{ll|Manual:ContentHandler|<!--T:6--> About the ContentHandler</translate>}} |
− | * {{ll|Content handlers|<translate><!--T:7--> Content handlers and their implementation</translate>}} | + | * {{ll|Content handlers|<!--T:7--> Content handlers and their implementation</translate>}} |
| | | |
− | | heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] <translate><!--T:8--> Usage</translate> | + | | heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] <!--T:8--> Usage</translate> |
| | content2 = | | | content2 = |
− | * {{ll|Help:ChangeContentModel|<translate><!--T:9--> Changing the content model of a page</translate>}} | + | * {{ll|Help:ChangeContentModel|<!--T:9--> Changing the content model of a page</translate>}} |
− | * {{Manual|$wgNamespaceContentModels|<translate><!--T:10--> Changing the content model of a namespace</translate>}} | + | * {{Manual|$wgNamespaceContentModels|<!--T:10--> Changing the content model of a namespace</translate>}} |
− | * {{ll|Category:ContentHandler extensions|<translate><!--T:11--> Extensions using the ContentHandler</translate>}} | + | * {{ll|Category:ContentHandler extensions|<!--T:11--> Extensions using the ContentHandler</translate>}} |
− | * {{ll|Manual:Page content models|<translate><!--T:12--> Adding content models with an extension</translate>}} | + | * {{ll|Manual:Page content models|<!--T:12--> Adding content models with an extension</translate>}} |
− | * <translate><!--T:13--> Examples:</translate> | + | * <!--T:13--> Examples:</translate> |
− | ** [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/examples/+/master/includes/ includes] (<translate><!--T:14--> part of <tvar|ext>{{ll|Extension:Example|Example}}</></translate>) | + | ** [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/examples/+/master/includes/ includes] (<!--T:14--> part of <tvar|ext>{{ll|Extension:Example|Example}}</></translate>) |
| ** [https://github.com/brightbyte/MWExtension-Markdown Markdown] | | ** [https://github.com/brightbyte/MWExtension-Markdown Markdown] |
| | | |
− | | heading3 = [[File:OOjs UI icon advanced.svg|20px|link=]] <translate><!--T:15--> Configuration settings</translate> | + | | heading3 = [[File:OOjs UI icon advanced.svg|20px|link=]] <!--T:15--> Configuration settings</translate> |
| | 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}};"><translate><!--T:16--> Support and development</translate></div> | + | <div style="font-weight: 700; font-size: 16px; padding: .5em; text-align: {{dir|{{pagelang}}|right|left}};"><!--T:16--> Support and development</translate></div> |
− | * [[File:Git-logo.svg|30px|link=]] {{git file|project=mediawiki/core|branch=HEAD|file=docs/contenthandler.txt|text=<translate><!--T:17--> Latest technical documentation (Git)</translate>}} | + | * [[File:Git-logo.svg|30px|link=]] {{git file|project=mediawiki/core|branch=HEAD|file=docs/contenthandler.txt|text=<!--T:17--> Latest technical documentation (Git)</translate>}} |
| * [[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= |
| | | |
− | <translate>
| + | |
| <!--T:18--> | | <!--T:18--> |
| This template is used on all pages relating to Content Models. | | This template is used on all pages relating to Content Models. |