Difference between revisions of "Template:High-use"
Jump to navigation
Jump to search
w>TheDragonFire m (Use toollabs interwiki code instead of an external link.) |
w>TheDragonFire m (Reverted edits by TheDragonFire (talk) to last version by Pppery) |
||
| Line 4: | Line 4: | ||
| image = [[File:Ambox warning yellow.svg|40px|alt=Warning|link=]] | | image = [[File:Ambox warning yellow.svg|40px|alt=Warning|link=]] | ||
| text = | | text = | ||
| − | '''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on [ | + | '''This {{#switch:{{NAMESPACE}}|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace={{NAMESPACENUMBER:{{FULLPAGENAME}}}}&name={{urlencode:{{ |
#switch: {{SUBPAGENAME}} | #switch: {{SUBPAGENAME}} | ||
| doc | sandbox = {{BASEPAGENAME}} | | doc | sandbox = {{BASEPAGENAME}} | ||
| #default = {{PAGENAME}} | | #default = {{PAGENAME}} | ||
| − | }}}} | + | }}}} {{High-use/num|1={{formatnum:{{#ifeq:{{str endswith|{{{1}}}|+}}|yes|{{str crop|{{{1}}}|1}}|{{{1}}}}}|R}}}} pages]''', so changes to it will be widely noticed. Please test any changes in the {{#switch:{{NAMESPACE}}|Module=module's|#default=template's}} [[{{#switch: {{SUBPAGENAME}} |
| doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}} | | doc | sandbox = {{SUBJECTSPACE}}:{{BASEPAGENAME}} | ||
| #default = {{SUBJECTPAGENAME}} | | #default = {{SUBJECTPAGENAME}} | ||
Revision as of 03:54, 12 May 2018
| 40px | This {{#switch:Template|Module=Lua module|#default=template}} is used on [https://tools.wmflabs.org/templatecount/index.php?lang=en&namespace=10&name=%7B%7B%0A%23switch%3A+High-use%0A%7C+doc+%7C+sandbox+%3D+High-use%0A%7C+%23default++++++%3D+High-use%0A%7D%7D {{#iferror:{{#expr:0+{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}*1}}|{{#ifeq:{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}|risk|a very large number of|many}}|{{#ifeq:|yes||approximately }}{{#ifeq:{{#expr:77 < 6}}|1|{{#ifeq:{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}|0
|0
|{{significant figures/{{#if:2
|rnd
|sum
}}
|1={{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}
|2=2
|3={{safesubst:#ifexpr:{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}=0
|{{safesubst:#ifexpr:abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}1=1
|0
|{{safesubst:#expr:floor((ln(abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}1)/ln10)+1)}}
}}
|{{#expr:floor((ln(abs({{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}) )/ln 10)+1E((abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}>1E100 or abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}<1E-100)-14))}}
}} }} }}|{{#ifeq:{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}|0 |0
|{{significant figures/{{#if:3
|rnd
|sum
}}
|1={{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}
|2=3
|3={{safesubst:#ifexpr:{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}=0
|{{safesubst:#ifexpr:abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}1=1
|0
|{{safesubst:#expr:floor((ln(abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}1)/ln10)+1)}}
}}
|{{#expr:floor((ln(abs({{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}) )/ln 10)+1E((abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}>1E100 or abs{{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}<1E-100)-14))}}
}} }} }}}}{{#ifeq:|yes|+}}{{#if:| pages, which is ≈{{#expr:({{#ifeq:{{#ifeq:{{{1}}}+|{{{1}}}+||yes}}|yes|Template:Str crop|{{{1}}}}}*100/598) round 0}}% of all}}}} pages], so changes to it will be widely noticed. Please test any changes in the {{#switch:Template|Module=module's|#default=template's}} [[{{#switch: High-use | doc | sandbox = Template:High-use
| #default = Template:High-use
}}/sandbox|/sandbox]] or [[{{#switch: High-use
| doc | sandbox = Template:High-use
| #default = Template:High-use
}}/testcases|/testcases]] subpages{{#switch:Template|Module=.|#default=, or in your own user subpage.}} Please consider discussing changes {{#if:|at [[{{{2}}}]]|on the [[{{#switch: High-use
| doc | sandbox = Template talk:High-use
| #default = Template talk:High-use
}}|talk page]]}} before implementing them. |
| 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. |