Module:Preview expense/doc
Appearance
![]() | This is a documentation subpage for Module:Preview expense. It may contain usage information, categories and other content that is not part of the original module page. |
![]() | This template may have no transclusions. This is because it is substituted by a tool or script, it is used as part of a short-term or less active Wikipedia process, or for some other reason. |
This module is weird: it's not meant to be used, just previewed. The purpose is to find out how many expensive function calls appear before a given point within a page. That helps people to examine where the problem is in long, complicated pages and tables.
To prevent saving this by accident, the module creates a link to a blacklisted site (one which no longer exists) which is not displayed, but trips the blacklist warning if Save is pressed. And if you manage to save it anyway, the count isn't accurate (usually 0) and the page shows up in Category:Pages with too many expensive parser function calls, so don't.
Usage
[edit]{{#invoke:Preview expense|main}}
entered in the preview window.
Parameters
[edit]None
Simulated sample output
[edit]There are 31 expensive function calls before this point