User:I-ghost/Ecount: Difference between revisions

From the Portal Wiki
Jump to navigation Jump to search
m (link param?)
m (doc fix)
 
(7 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={{{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={{{link|}}}]]}}
| danbooru = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|2|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|2|1}}.png|{{{size|20px}}}|link={{{link|}}}]]}}
| shimmie = shimmie
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|3|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|3|1}}.png|{{{size|20px}}}|link={{{link|}}}]]}}
| #default = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|4|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|4|1}}.png|{{{size|20px}}}|link={{{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={{{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={{{link|}}}]]}}
| danbooru = danbooru
{{#if:{{#substring:{{NUMBEROFEDITS:R}}|7|1}}|[[File:Chamber number {{#substring:{{NUMBEROFEDITS:R}}|7|1}}.png|{{{size|20px}}}|link={{{link|}}}]]}}
| shimmie = shimmie
<noinclude>{{Doc begin}}Places an image counter on the page<br/>
| #default = danbooru
Should match: {{NUMBEROFEDITS:R}}
}} {{#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|}}}]]}}|}}
Length: {{#strlen:{{NUMBEROFEDITS:R}}}}</noinclude>
{{#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|}}}
| 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>

Latest revision as of 01:10, 17 August 2011

Chamber number 7.png Chamber number 9.png Chamber number 8.png Chamber number 2.png Chamber number 8.png Chamber number 5.png

The template above may be partially or fully invisible or glitched due to the respected strings aren't entered.
This is normal.

Documentation for I-ghost/Ecount

Places an image-based edit counter on the page


Parameters:
ext Specify a custom extension. Example ext=gif. Required if using the danbooru or shimmie styles.
size Specify size; include px. Example: size=20px
link Specify what the counter should link to. Do not include link brackets.
custom Specify a custom image path. Don't include the numbers or a space at the end. Example: custom=User Nope Counter. Upload your images as User Nope Counter #.png. This setting will override the style option.
style Specify style. Valid options are danbooru and shimmie. If anything else is specified with this parameter, it will default to danbooru. Omitting this option will display the portal numbers.


Styles:
danbooru will produce User I-ghost Counter danbooru 7.gif User I-ghost Counter danbooru 9.gif User I-ghost Counter danbooru 8.gif User I-ghost Counter danbooru 2.gif User I-ghost Counter danbooru 8.gif User I-ghost Counter danbooru 5.gif

shimmie will produce User I-ghost Counter shimmie 7.gif User I-ghost Counter shimmie 9.gif User I-ghost Counter shimmie 8.gif User I-ghost Counter shimmie 2.gif User I-ghost Counter shimmie 8.gif User I-ghost Counter shimmie 5.gif


Should match: 7982851 String length: 7