Difference between revisions of "Template:ContentHandler"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<languages/>" to "")
 
(4 intermediate revisions by the same user not shown)
Line 1: Line 1:
<languages/>
+
 
<onlyinclude>{{#switch:<translate></translate>
+
<onlyinclude>{{#switch:
 
| =
 
| =
 
{{ Sidebar
 
{{ Sidebar
Line 9: Line 9:
  
 
| name = ContentHandler
 
| name = ContentHandler
| title = <strong><translate><!--T:1--> Content Models and Handlers</translate></strong>
+
| title = <strong> Content Models and Handlers</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> 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=]] <translate><!--T:5--> About</translate>
+
| heading1 = [[File:OOjs UI icon information.svg|20px|link=]] About
 
| content1 =  
 
| content1 =  
* {{ll|Manual:ContentHandler|<translate><!--T:6--> About the ContentHandler</translate>}}
+
* {{ll|Manual:ContentHandler| About the ContentHandler}}
* {{ll|Content handlers|<translate><!--T:7--> Content handlers and their implementation</translate>}}
+
* {{ll|Content handlers| Content handlers and their implementation}}
  
| heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] <translate><!--T:8--> Usage</translate>
+
| heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] Usage
 
| content2 =  
 
| content2 =  
* {{ll|Help:ChangeContentModel|<translate><!--T:9--> Changing the content model of a page</translate>}}
+
* {{ll|Help:ChangeContentModel| Changing the content model of a page}}
* {{Manual|$wgNamespaceContentModels|<translate><!--T:10--> Changing the content model of a namespace</translate>}}
+
* {{Manual|$wgNamespaceContentModels| Changing the content model of a namespace}}
* {{ll|Category:ContentHandler extensions|<translate><!--T:11--> Extensions using the ContentHandler</translate>}}
+
* {{ll|Category:ContentHandler extensions| Extensions using the ContentHandler}}
* {{ll|Manual:Page content models|<translate><!--T:12--> Adding content models with an extension</translate>}}
+
* {{ll|Manual:Page content models| Adding content models with an extension}}
* <translate><!--T:13--> Examples:</translate>
+
* Examples:
** [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] ( 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=]] <translate><!--T:15--> Configuration settings</translate>
+
| 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}};"><translate><!--T:16--> Support and development</translate></div>
+
<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=<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= 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=
  
<translate>
+
 
<!--T:18-->
+
 
 
This template is used on all pages relating to Content Models.
 
This template is used on all pages relating to Content Models.
</translate>
+
 
  
 
[[Category:Navigation templates{{#translation:}}]]
 
[[Category:Navigation templates{{#translation:}}]]
  
 
}}
 
}}

Latest revision as of 16:12, 21 December 2019

Template documentation

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