X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=docs%2Fcontenthandler.txt;h=5f9a0b039ea90344854d6d42f48619f2745dcdeb;hb=e144319440e41f4ccd214efd36b25865a91d5ab6;hp=899554af57e2812b881f5690e1df41c00410a682;hpb=29ab088e2fb938b0b3330bc4d4891a155e9420d2;p=lhc%2Fweb%2Fwiklou.git diff --git a/docs/contenthandler.txt b/docs/contenthandler.txt index 899554af57..5f9a0b039e 100644 --- a/docs/contenthandler.txt +++ b/docs/contenthandler.txt @@ -8,6 +8,7 @@ Built-in content types are: * wikitext - wikitext, as usual * javascript - user provided javascript code +* json - simple implementation for use by extensions, etc. * css - user provided css code * text - plain text @@ -18,7 +19,7 @@ ContentHandler::getDefaultModelFor($title) as follows: * The global setting $wgNamespaceContentModels specifies a content model for the given namespace. * The hook ContentHandlerDefaultModelFor may be used to override the page's default model. -* Pages in NS_MEDIAWIKI and NS_USER default to the CSS or JavaScript model if they end in .js or .css, respectively. +* Pages in NS_MEDIAWIKI and NS_USER default to the CSS or JavaScript model if they end in .css or .js, respectively. Pages in NS_MEDIAWIKI default to the wikitext model otherwise. * The hook TitleIsCssOrJsPage may be used to force a page to use the CSS or JavaScript model. This is a compatibility feature. The ContentHandlerDefaultModelFor hook should be used instead if possible.