Изменения

Перейти к: навигация, поиск

Справка:Функции парсера

49 байтов добавлено, 16:44, 23 января 2010
Нет описания правки
{{warning|Some expressions may invoke floating-point errors when used with very large or very small numbers:<br />
<tt><nowiki>{{#expr: 20060618093259 mod 10000}}</nowiki></tt> &rarr; '''{{#expr: 20060618093259 mod 10000}}''' in most cases, but may occasionally give '''-6357'''. This varies with the specification and configuration of the server running the wiki. See {{[https://bugzilla|.wikimedia.org/show_bug.cgi?id=6356}}bug 6356].
}}
:<tt><nowiki>{{#ifexist: MediaWiki:Copyright | exists | doesn't exist }}</nowiki></tt> &rarr; {{#ifexist: MediaWiki:Copyright | '''exists''' (because [[{{ns:8}}:Copyright]] has been customised) | '''doesn't exist''' (because [[{{ns:8}}:Copyright]] has not been customised) }}
<tt>#ifexist:</tt> is considered an "expensive parser function", only a limited number of which can be included on any one page (including functions inside transcluded templates). When this limit is exceeded, the page is categorised into [[:CategoryКатегория:{{MediaWiki:expensive-parserfunction-category}}]], and any further <tt>#ifexist:</tt> functions automatically return false, whether the target page exists or not.
{{admin tip|Configure the maximum number of allowed expensive parser functions using the {{mediawiki|Manual:$wgExpensiveParserFunctionLimit|$wgExpensiveParserFunctionLimit}} variable.}}
* [[mediawikiwiki:Extension:StringFunctions]]
[[CategoryКатегория:Extension help|ParserFunctionsСправка]]

Навигация