Difference between revisions of "Template:Alg"
m (Added "link" options to the cube and camera images so that they no longer link to anything.) |
(some instructions) |
||
Line 4: | Line 4: | ||
| 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: #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|link=]] [{{{vidurl|X}}}] | | style="padding: 0px 5px; background: #E8E8E8; width: 55px; border: 1px solid #CCC;" | [[Image:Cube_Camera_Icon.png|link=]] [{{{vidurl|X}}}] | ||
− | |}<noinclude> | + | |} |
+ | <noinclude> | ||
− | + | ==How to add algorithms:== | |
+ | # Click the 'Edit' tab next to the case and you will have a editor for the wiki-code showing the text of the particular section you choosed. | ||
+ | # Copy-paste the last line that is an alg; <nowiki>{{Alg|R U R U}}</nowiki>, and change the alg to your one. | ||
+ | # Click 'Show preview' and check everything is ok. | ||
+ | # Click 'Save page' and you are done! | ||
+ | |||
+ | ==The template== | ||
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. | 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. | ||
Revision as of 06:36, 26 August 2010
Alg | Algorithm | [X] |
How to add algorithms:
- Click the 'Edit' tab next to the case and you will have a editor for the wiki-code showing the text of the particular section you choosed.
- Copy-paste the last line that is an alg; {{Alg|R U R U}}, and change the alg to your one.
- Click 'Show preview' and check everything is ok.
- Click 'Save page' and you are done!
The template
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}}
Alg | RUR'URU2'R | [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}}
Alg | RUR'URU2'R | [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}}
Alg | RUR'URU2'R | [X] |
Spacing in the alg does not matter:
{{Alg| R U R' U' R' F R2 U' R' U' R U R' F' | PLL}}
PLL | R U R' U' R' F R2 U' R' U' R U R' F' | [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}}
PLL | R U R' U' R' F R2 U' R' U' R U R' F' | [1] |