Toggle menu
15
236
70
27.5K
Kenshi Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Module:Preview expense/doc: Difference between revisions

From Kenshi Wiki
Created page with "{{module rating|alpha}}<!-- delete if this is not desirable --> {{transclusionless}} 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 blacklis..."
 
No edit summary
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{module rating|alpha}}<!-- delete if this is not desirable -->
{{doc sub}}
{{transclusionless}}
{{transclusionless}}
This module is weird: it's not meant to be ''used'', just ''previewed''.  The purpose is to find out how many [[mw:Manual:$wgExpensiveParserFunctionLimit|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.
This module is weird: it's not meant to be ''used'', just ''previewed''.  The purpose is to find out how many [[mw:Manual:$wgExpensiveParserFunctionLimit|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.
Line 15: Line 15:
== Simulated sample output ==
== Simulated sample output ==
<span style="color:yellow;background-color:red;">There are 31 expensive function calls before this point</span>
<span style="color:yellow;background-color:red;">There are 31 expensive function calls before this point</span>
<includeonly>
[[Category:Modules]]
</includeonly>
<noinclude>
[[Category:Module documents]]
</noinclude>

Latest revision as of 01:28, 10 March 2025

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

{{#invoke:Preview expense|main}} entered in the preview window.

Parameters

None

Simulated sample output

There are 31 expensive function calls before this point