Difference between revisions of "Template:Alg4"

From Speedsolving.com Wiki
m
Line 2: Line 2:
 
| style="padding: 1px 5px; background: #FFFFFF; width: 18px; border: 1px solid #CCC;" | [[Image:Speedsolving Logo tiny.gif|link=]]
 
| style="padding: 1px 5px; background: #FFFFFF; width: 18px; border: 1px solid #CCC;" | [[Image:Speedsolving Logo tiny.gif|link=]]
 
| style="padding: 0px 5px; background: #F8F8F8; width: 30px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{3|Alg}}}}}}
 
| style="padding: 0px 5px; background: #F8F8F8; width: 30px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{3|Alg}}}}}}
| style="padding: 0px 5px; background: #F0F0F0; width: 830px; border: 1px solid #CCC;" | [http://alg.garron.us/?cube={{{cube|4x4x4}}}&animtype=solve&alg={{urlencode:{{{alg|{{{1|}}}}}}}} {{{alg|{{{1|Algorithm}}}}}}]
+
| style="padding: 0px 5px; background: #F0F0F0; width: 750px; border: 1px solid #CCC;" | [http://alg.garron.us/?cube={{{cube|4x4x4}}}&animtype=solve&alg={{urlencode:{{{alg|{{{1|}}}}}}}} {{{alg|{{{1|Algorithm}}}}}}]
 
| style="padding: 0px 5px; background: #F8F8F8; width: 40px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{2|(SQTM,STM)}}}}}}
 
| style="padding: 0px 5px; background: #F8F8F8; width: 40px; text-align: center; border: 1px solid #CCC;" | {{{stage|{{{2|(SQTM,STM)}}}}}}
| style="padding: 0px 5px; background: #E8E8E8; width: 55px; border: 1px solid #CCC;" | [[Image:Cube_Camera_Icon.png|link=]] [{{{vidurl|X}}}]
+
| style="padding: 0px 5px; background: #E8E8E8; width: 184px; border: 1px solid #CCC;" | [[Image:Cube_Camera_Icon.png|link=]] [{{{vidurl|X}}}]
 
|}
 
|}
 
<noinclude>
 
<noinclude>
Line 38: Line 38:
  
 
*For example, the code for sune on the 3x3x3 is the following, (code for width reduction has been included to reduce the length of the algorithm box.  
 
*For example, the code for sune on the 3x3x3 is the following, (code for width reduction has been included to reduce the length of the algorithm box.  
<span style="font-family: Courier;"><nowiki>{|width="30%"(enter){{Alg4|R U R' U R U2 R'|(8,7)|Sune|cube=3x3x3}}|}</nowiki>
+
<span style="font-family: Courier;"><nowiki>{|width="30%" |(enter)|{{Alg4|R U R' U R U2 R'|(8,7)|Sune|cube=3x3x3}}|}</nowiki>
  
{|width="30%"
+
{|width="30%" |
 
|{{Alg4|R U R' U R U2 R'|(8,7)|Sune|cube=3x3x3}}|}
 
|{{Alg4|R U R' U R U2 R'|(8,7)|Sune|cube=3x3x3}}|}

Revision as of 14:09, 6 April 2013

Speedsolving Logo tiny.gif Alg Algorithm (SQTM,STM) Cube Camera Icon.png [X]


The Template

This template is a derivative work/variation of "Template:Alg". It was specifically created for long algorithms for the 4x4x4 cube so that they wouldn't wrap to the next line and increase the length of the page unnecessarily. In addition, a new column for move count (SQTM,STM) has been added, and it is optional to add a name to an algorithm, should it have one.


Example Assuming that you already know the syntax for Template:Alg, then if you want to link the algorithm: r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2

to alg.garron.us using this template (in SiGN notation), then simply put a 4 next to Alg. {{Alg4|r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2}}

Speedsolving Logo tiny.gif Alg r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2 (SQTM,STM) Cube Camera Icon.png [X]


  • Notice that this template inserts an extra column not in alg template which displays "(SQTM,STM)".
  • I, cmowla, the creator of this alg template variation prefers to have the move count for 4x4x4 algorithms shown for convenience and organization. If you do not like this option, you may create a new template or just use Template:Alg.
  • To write the length of the example algorithm above (if you don't do this, then "(SQTM,STM)" will remain, which is an incentive to actually add the move count), which is 25 SQTM and 15 STM, simply add the following: {{Alg4|r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2|(25,15)}}
Speedsolving Logo tiny.gif Alg r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2 (25,15) Cube Camera Icon.png [X]


  • Some 4x4x4 algorithms have been named. Therefore I made it optional to add the name of an algorithm. Simply add the following:

{{Alg4|r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2|(25,15)|Algorithm Name}}

Speedsolving Logo tiny.gif Algorithm Name r2 B2 U2 l U2 r' U2 r U2 F2 r F2 l' B2 r2 (25,15) Cube Camera Icon.png [X]


  • You may use this template for any size cube, should you wish to have more space for the algorithm or inserting move counts (you can already name algorithms using Alg:Template by putting a "|(Algorithm Name" before the concluding }} code).


  • For example, the code for sune on the 3x3x3 is the following, (code for width reduction has been included to reduce the length of the algorithm box.

{|width="30%" |(enter)|{{Alg4|R U R' U R U2 R'|(8,7)|Sune|cube=3x3x3}}|}

Speedsolving Logo tiny.gif Sune R U R' U R U2 R' (8,7) Cube Camera Icon.png [X]