Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:I-ghost/Ecount: Difference between revisions

From the Portal Wiki
m +size param, I think...
m doc fix
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|0|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|0|1}}.png|{{{size|20px}}}|link=]]}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|0|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|0|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|1|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|1|1}}.png|{{{size|20px}}}|link=]]}}
| danbooru = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|2|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.png|{{{size|20px}}}|link=]]}}
| shimmie = shimmie
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|3|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.png|{{{size|20px}}}|link=]]}}
| #default = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|4|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.png|{{{size|20px}}}|link=]]}}
}} {{#substring:{{NUMBEROFEDITS:R}}|0|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|0|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|0|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|0|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|5|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|5|1}}.png|{{{size|20px}}}|link=]]}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|1|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|1|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|6|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|6|1}}.png|{{{size|20px}}}|link=]]}}
| danbooru = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|7|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|7|1}}.png|{{{size|20px}}}|link=]]}}
| shimmie = shimmie
{{Doc begin}}
| #default = danbooru
<noinclude>Places an image counter on the page<br/>
}} {{#substring:{{NUMBEROFEDITS:R}}|1|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|1|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|1|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|1|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
Should match: {{NUMBEROFEDITS:R}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|2|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
Length: {{#strlen:{{NUMBEROFEDITS:R}}}}</noinclude>
| danbooru = danbooru
| shimmie = shimmie
| #default = danbooru
}} {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|2|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|3|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
| danbooru = danbooru
| shimmie = shimmie
| #default = danbooru
}} {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|3|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|4|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
| danbooru = danbooru
| shimmie = shimmie
| #default = danbooru
}} {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|4|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|5|1}}|{{#if:{{{custom|}}}|[[File:{{{custom|}}} {{#substring:{{NUMBEROFEDITS:R}}|5|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|{{#if:{{{style|}}}|[[File:User I-ghost Counter {{#switch: {{{style|}}}
| danbooru = danbooru
| shimmie = shimmie
| #default = danbooru
}} {{#substring:{{NUMBEROFEDITS:R}}|5|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|5|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}}}|{{#if:{{#substring:{{NUMBEROFEDITS:R}}|5|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|5|1}}.{{{ext|png}}}|{{{size|20px}}}|link={{{link|}}}]]}}|}}
<noinclude>{{Doc begin}}Places an image-based edit counter on the page<br/>
<hr/>
Parameters:<br/>
{{code|ext}} Specify a custom extension. Example {{code|<nowiki>ext=gif</nowiki>}}. '''Required if using the danbooru or shimmie styles'''.<br/>
{{code|size}} Specify size; include px. Example: {{code|<nowiki>size=20px</nowiki>}}<br/>
{{code|link}} Specify what the counter should link to. Do not include link brackets.<br/>
{{code|custom}} Specify a custom image path. Don't include the numbers or a space at the end. Example: {{code|<nowiki>custom=User Nope Counter</nowiki>}}. Upload your images as {{code|User Nope Counter #.png}}. This setting will override the {{code|style}} option.<br/>
{{code|style}} Specify style. Valid options are {{code|danbooru}} and {{code|shimmie}}. If anything else is specified with this parameter, it will default to danbooru. Omitting this option will display the portal numbers.<br/>
<hr/>
Styles:<br/>
{{code|danbooru}} will produce {{../Ecount|style=danbooru|ext=gif}}
{{code|shimmie}} will produce {{../Ecount|style=shimmie|ext=gif}}
<hr/>
Should match: '''{{NUMBEROFEDITS:R}}'''
String length: '''{{#strlen:{{NUMBEROFEDITS:R}}}}'''</noinclude>