Module:Transclusion count/doc: Difference between revisions

From Good Old TV Fan Wiki
(Created page with "{{Module rating |beta}} Fetches usage data for highly-transcluded templates. Uses bot-updated values from Special:PrefixIndex/Module:Transclusion_count/data/|subpages of Mo...")
 
m (1 revision imported)
 
(One intermediate revision by one other user not shown)
Line 10: Line 10:
* <code>demo=''Template_name''</code>: will use the transclusion count for the template at [[Template:Template_name]] instead of detecting what template it is being used on. Capitalization must exactly match the value used in [[Special:PrefixIndex/Module:Transclusion_count/data/]].
* <code>demo=''Template_name''</code>: will use the transclusion count for the template at [[Template:Template_name]] instead of detecting what template it is being used on. Capitalization must exactly match the value used in [[Special:PrefixIndex/Module:Transclusion_count/data/]].


<code><nowiki>{{</nowiki>#invoke:{{BASEPAGENAME}}|tabulate}}</code>
* Used to generate [[Wikipedia:Database reports/Templates transcluded on the most pages]].


<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |
<includeonly>{{#ifeq:{{SUBPAGENAME}}|sandbox | |

Latest revision as of 12:50, 30 May 2022

Fetches usage data for highly-transcluded templates. Uses bot-updated values from subpages of Module:Transclusion_count/data/ when available.

Usage[edit]

{{#invoke:Transclusion count|fetch|number of transclusions|use + notation|all-pages=|demo=}}

  • number of transclusions: is a static number of times the template has been transcluded, to use when values cannot be read from the database. This value will be ignored if transclusion data is available for the current page.
  • demo=Template_name: will use the transclusion count for the template at Template:Template_name instead of detecting what template it is being used on. Capitalization must exactly match the value used in Special:PrefixIndex/Module:Transclusion_count/data/.

{{#invoke:Transclusion count|tabulate}}