Difference between revisions of "Template:Alg"

From Speedsolving.com Wiki
Line 2: Line 2:
 
| style="padding: 1px 5px; background: #FFFFFF; width: 18px; border: 1px solid #CCC;" | [[Image:Speedsolving Logo tiny.gif]]
 
| style="padding: 1px 5px; background: #FFFFFF; width: 18px; border: 1px solid #CCC;" | [[Image:Speedsolving Logo tiny.gif]]
 
| style="padding: 0px 5px; background: #F8F8F8; width: 30px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{2|Alg}}}}}}
 
| style="padding: 0px 5px; background: #F8F8F8; width: 30px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{2|Alg}}}}}}
| style="padding: 0px 5px; background: #F0F0F0; width: 400px; border: 1px solid #CCC;" | [http://alg.garron.us/?stage={{{stage|{{{2|full}}}}}}&animtype=solve&alg={{urlencode:{{{alg|{{{1|}}}}}}}} {{{alg|{{{1|Algorithm}}}}}}]
+
| style="padding: 0px 5px; background: #F0F0F0; width: 375px; border: 1px solid #CCC;" | [http://alg.garron.us/?stage={{{stage|{{{2|full}}}}}}&animtype=solve&alg={{urlencode:{{{alg|{{{1|}}}}}}}} {{{alg|{{{1|Algorithm}}}}}}]
 
| style="padding: 0px 5px; background: #E8E8E8; width: 55px; border: 1px solid #CCC;" | [[Image:Cube_Camera_Icon.png]] [{{{vidurl|X}}}]
 
| style="padding: 0px 5px; background: #E8E8E8; width: 55px; border: 1px solid #CCC;" | [[Image:Cube_Camera_Icon.png]] [{{{vidurl|X}}}]
 
|}<noinclude>
 
|}<noinclude>

Revision as of 16:43, 24 December 2009

Speedsolving Logo tiny.gif Alg Algorithm Cube Camera Icon.png [X]



This is an alg template that can be used to link algorithms to an animation and, optionally, a video. The template is very flexible, and its features and functions can be modified without changing the code of the algs on all the pages.

Examples:

Basic use:

{{Alg|RUR'URU2'R}}

Speedsolving Logo tiny.gif Alg RUR'URU2'R Cube Camera Icon.png [X]


If you want, you can specify that this is the alg. If not, the first parameter is assumed to be the alg.

{{Alg|alg=RUR'URU2'R}}

Speedsolving Logo tiny.gif Alg RUR'URU2'R Cube Camera Icon.png [X]


You can specify the stage of an alg, which is by default the second parameter:

{{Alg| R U' R' U2 R U' R' |stage=CLS}}

OR

{{Alg| R U' R' U2 R U' R' |CLS}}

Speedsolving Logo tiny.gif Alg RUR'URU2'R Cube Camera Icon.png [X]


Spacing in the alg does not matter:

{{Alg| R U R' U' R' F R2 U' R' U' R U R' F' | PLL}}

Speedsolving Logo tiny.gif PLL R U R' U' R' F R2 U' R' U' R U R' F' Cube Camera Icon.png [X]


You can link to a video (currently, only a single video):

{{Alg|R U R' U' R' F R2 U' R' U' R U R' F'|PLL|vidurl=http://www.youtube.com/watch?v=kD4SCn60jrc}}

Speedsolving Logo tiny.gif PLL R U R' U' R' F R2 U' R' U' R U R' F' Cube Camera Icon.png [1]