Difference between revisions of "Template:Expensive"
Jump to navigation
Jump to search
imported>Davidwr (→top: reword template -> template or module; clarify that the 500-expensive-parser-limit limit is on the CALLING PAGE not on this template or module) |
imported>Davidwr (+<small>''(further information)''</small>) |
||
| Line 2: | Line 2: | ||
| type = style | | type = style | ||
| image = [[Image:Ambox warning yellow.svg|40x40px]] | | image = [[Image:Ambox warning yellow.svg|40x40px]] | ||
| − | | text = Due to a server limit of '''500''' "expensive parser function" calls <small>([[mw:Help:Extension:ParserFunctions##ifexist|#ifexist:]], [[mw:Help:Magic words#Technical metadata|PAGESIZE:]], and [[mw:Help:Magic words#Statistics|PAGESINCATEGORY:]])</small>, this template or module will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised [[:Category:Pages with too many expensive parser function calls]]. | + | | text = Due to a server limit of '''500''' "expensive parser function" calls <small>([[mw:Help:Extension:ParserFunctions##ifexist|#ifexist:]], [[mw:Help:Magic words#Technical metadata|PAGESIZE:]], and [[mw:Help:Magic words#Statistics|PAGESINCATEGORY:]])</small>, this template or module will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised [[:Category:Pages with too many expensive parser function calls]]. <small>''([[Template:Expensive|further information]])''</small> |
}}<noinclude> | }}<noinclude> | ||
Latest revision as of 18:01, 14 August 2020
| Due to a server limit of 500 "expensive parser function" calls (#ifexist:, PAGESIZE:, and PAGESINCATEGORY:), this template or module will only work properly if the page using it has not already exceeded the limit. When the limit is exceeded, the page using this template or module is categorised Category:Pages with too many expensive parser function calls. (further information) |
Usage
- {{Expensive}}
Place this at the top of documentation sub-pages of templates or modules which MAY call one or more "expensive parser functions." Include specific details, such as what parameters trigger expensive parser function usage, in the body of the template's documentation.
- Special case
- Templates unlikely to ever be the major reason a page reaches the 500-call limit
- Use your best judgment about using this at the top of the template's documentation page, but DO document the expensive parser function usage somewhere in the template's documentation.
See also
- Category:Pages with too many expensive parser function calls
- Special:TrackingCategories
- Wikipedia:Template limits#Expensive parser function calls
| The above documentation is transcluded from Template:Expensive/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |