Difference between revisions of "Template:Grid/Crafting Square Slide"

From Craftland Minecraft Aether Server
Jump to: navigation, search
(Replaced content with "//deleted...")
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
//deleted...
+
<includeonly>{{#vardefine:SlidePos|{{#expr:{{#pos:{{{1}}}|,|{{#expr:{{#pos:{{{1}}}|,}}+1}}}}+1}}}}{{#vardefine:SlideLastPos|{{#expr:{{#rpos:{{{1}}}|,}}+1}}}}{{#vardefine:SlideStop|{{#ifeq:{{#var:SlidePos}}|{{#var:SlideLastPos}}||1}}}}{{#ifeq:{{#var:SlidePos|}}|1|{{#ifeq:{{#sub:{{{2|}}}|-7}}|numbers|{{Grid/Crafting Square Numbers|{{#sub:{{{1|}}}|0|-1}}|{{{4|}}}{{{6|}}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|<span class="grid-{{{2|}}}">[[File:Grid {{#sub:{{{1|}}}|0|-1}}{{{3|}}}.png{{!}}link={{{4|}}}{{#sub:{{{1|}}}|0|-1}}{{{5|}}}]]</span>}}|<!--
 +
*  1st Item:
 +
--><span class="grid-{{{2}}} active">{{#if:{{#vardefineecho:SlideNum|{{#ifeq:{{#sub:{{{2|}}}|-7}}|numbers|1}}}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|0}}|{{{4|}}}{{#explode:{{{6|}}}|,|0}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|0}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}</span><!--
 +
*  2nd Item:
 +
--><span class="grid-{{{2}}}">{{#if:{{#var:SlideNum}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|1}}|{{{4|}}}{{#explode:{{{6|}}}|,|1}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}
 +
|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|1}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}</span><!--
 +
*  3th Item:
 +
-->{{#if:{{#var:SlideStop}}|<span class="grid-{{{2}}}">{{#ifexpr:{{#var:SlidePos}}-{{#vardefineecho:SlidePos|{{#expr:{{#pos:{{{1}}}|,|{{#var:SlidePos}}}}+1}}}}<-1|
 +
{{#if:{{#var:SlideNum}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|2}}|{{{4|}}}{{#explode:{{{6|}}}|,|2}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|2}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}}}</span>{{#ifeq:{{#var:SlidePos}}|{{#var:SlideLastPos}}|{{#vardefine:SlideStop|}}}}<!--
 +
*  4th Item:
 +
-->{{#if:{{#var:SlideStop}}|<span class="grid-{{{2}}}">{{#ifexpr:{{#var:SlidePos}}-{{#vardefineecho:SlidePos|{{#expr:{{#pos:{{{1}}}|,|{{#var:SlidePos}}}}+1}}}}<-1|
 +
{{#if:{{#var:SlideNum}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|3}}|{{{4|}}}{{#explode:{{{6|}}}|,|3}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|3}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}}}</span>{{#ifeq:{{#var:SlidePos}}|{{#var:SlideLastPos}}|{{#vardefine:SlideStop|}}}}<!--
 +
*  5th Item:
 +
-->{{#if:{{#var:SlideStop}}|<span class="grid-{{{2}}}">{{#ifexpr:{{#var:SlidePos}}-{{#vardefineecho:SlidePos|{{#expr:{{#pos:{{{1}}}|,|{{#var:SlidePos}}}}+1}}}}<-1|
 +
{{#if:{{#var:SlideNum}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|4}}|{{{4|}}}{{#explode:{{{6|}}}|,|4}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|4}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}}}</span>{{#ifeq:{{#var:SlidePos}}|{{#var:SlideLastPos}}|{{#vardefine:SlideStop|}}}}<!--
 +
*  6th Item:
 +
-->{{#if:{{#var:SlideStop}}|<span class="grid-{{{2}}}">{{#ifexpr:{{#var:SlidePos}}-{{#vardefineecho:SlidePos|{{#expr:{{#pos:{{{1}}}|,|{{#var:SlidePos}}}}+1}}}}<-1|
 +
{{#if:{{#var:SlideNum}}|{{Grid/Crafting Square Numbers|{{#explode:{{{1}}}|,|5}}|{{{4|}}}{{#explode:{{{6|}}}|,|5}}{{{5|}}}|grid-{{#sub:{{{2|}}}|0|-1}}}}|{{#ifexpr:{{#len:{{#vardefineecho:slideExpld|{{#explode:{{{1}}}|,|5}}}}}}>0|[[File:Grid {{#var:slideExpld}}{{{3|}}}.png{{!}}link={{{4|}}}{{#var:slideExpld}}{{{5|}}}]]}}}}}}</span>{{#ifeq:{{#var:SlidePos}}|{{#var:SlideLastPos}}||[[Category:Image templates]]}}}}}}}}}}}}</includeonly><noinclude>
 +
{{/doc}}
 +
 
 +
[[Category:Image templates|C]]
 +
</noinclude>

Latest revision as of 23:56, 17 June 2012

Template:Doc/start To use, create a sub-page from the template called doc, put {{doc/start}} at the start of your documentation, and {{doc/end}} at the end.

Go back to your main template page and put <noinclude>{{/doc}}</noinclude> on a newline after the end of the template. /doc pages will automatically be added to Category:Documentation templates.

Optional parameters

clear

If your main template page has floating content and you would like to stop it going over the documentation, put {{doc/start}} instead of {{doc/start}} on your documentation page.
This is also useful for templates not using <includeonly>, as it will put some space between the template and the documentation box.

nodoc=1

If a template has no documentation and you don't know how to use it, put {{doc/start}} (or if the template needs clear as well, {{doc/start}}) instead of {{doc/start}} on your documentation page.
The documentation's background will become red to make it more noticeable, and the page will be added to Category:Templates with no documentation.

baddoc=1

Similar to nodoc, this is used to mark templates that do have documentation, but it isn't very good. This can mean it doesn't have enough examples, doesn't explain all the functions properly, or doesn't explain the point of the template properly.
The documentation's background will become yellow to make it more noticeable, and the page will be added to Category:Templates with bad documentation.

If both nodoc and baddoc are specified, baddoc will be ignored. </div>