Changes

Jump to navigation Jump to search
Updating to match new version of source page
<languages/>
<onlyinclude>{{#switch:
| =
{{ Sidebar
| style = text-align: {{dir|{{pagelang}}|right|left}}; padding: 1.5em; margin: {{dir|{{pagelang}}|0 2em 2em 0|0 0 2em 2em}}; min-width: 400px;
| titlestyle = font-size: 19px; font-weight: 700;
| abovestyle = font-weight: 400;
| headingstyle = font-size: 16px; font-weight: 700;

| name = ContentHandler
| title = <strong>Content Models and Handlers</strong>
| above = <em>MediaWiki umožňuje, aby stránka mohla mít jiný typ obsahu než wikitext. V základu má vestavěnou podporu pro JavaScript, CSS, JSON a 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=]] About
| content1 =
* {{ll|Manual:ContentHandler|About the ContentHandler}}
* {{ll|Content handlers|Content handlers and their implementation}}

| heading2 = [[File:Wrench_font_awesome.svg|20px|link=]] Použití
| content2 =
* {{ll|Help:ChangeContentModel|Změna modelu obsahu stránky}}
* {{Manual|$wgNamespaceContentModels|Změna modelu obsahu u jmenného prostoru}}
* {{ll|Category:ContentHandler extensions|Extensions using the ContentHandler}}
* {{ll|Manual:Page content models|Adding content models with an extension}}
* Příklady:
** [https://gerrit.wikimedia.org/r/plugins/gitiles/mediawiki/extensions/examples/+/master/includes/ includes] (part of {{ll|Extension:Example|Example}})
** [https://github.com/brightbyte/MWExtension-Markdown Markdown]

| heading3 = [[File:OOjs UI icon advanced.svg|20px|link=]] Configuration settings
| content3 =
* {{Manual|$wgContentHandlers}}
* {{Manual|$wgNamespaceContentModels}}
* {{Manual|$wgContentHandlerTextFallback}}
* {{Manual|$wgContentHandlerUseDB}}

| below =
<div style="font-weight: 700; font-size: 16px; padding: .5em; text-align: {{dir|{{pagelang}}|right|left}};">Podpora a vývoj</div>
* [[File:Git-logo.svg|30px|link=]] {{git file|project=mediawiki/core|branch=HEAD|file=docs/contenthandler.txt|text=Poslední technická dokumentace (Git)}}
* [[File:Wikimedia Phabricator logo.svg|30px|link=phabricator:tag/mediawiki-contenthandler]] [[phabricator:tag/mediawiki-contenthandler|Phabricator]]

}}

| #default=
{{#invoke:Template translation|renderTranslatedTemplate|template=Template:ContentHandler|noshift=1}}
}}</onlyinclude>
{{documentation|content=

Tato šablona je určena pro pšechny stránky, které se nějakým způsobem zaobírají modely obsahu stránky.

[[Category:Navigation templates{{#translation:}}]]

}}
Anonymous user

Navigation menu