Difference between revisions of "Template:Tutorial"
From ONELAB
Line 1: | Line 1: | ||
− | + | <includeonly>{{#if: {{{height|}}} | <div style="margin:.3em 0 1em; overflow:auto; height:{{{height|20em}}}; | |
− | |||
− | |||
− | |||
− | |||
− | <includeonly> | ||
− | {{#if: {{{height|}}} | <div style="margin:.3em 0 1em; overflow:auto; height:{{{height|20em}}}; | ||
width:{{{width|100%}}}; -moz-border-radius-topleft:0.5em; | width:{{{width|100%}}}; -moz-border-radius-topleft:0.5em; | ||
border:1px solid #AAA; padding-left:0.5em; background:transparent;"> }} | border:1px solid #AAA; padding-left:0.5em; background:transparent;"> }} | ||
Line 30: | Line 24: | ||
</noinclude> | </noinclude> | ||
+ | |||
+ | <!-- | ||
+ | we cannot use xml tags directly for the "include" extension because it prevents | ||
+ | parameter expansion, so we use the #tag parser function | ||
+ | --> |
Revision as of 22:44, 20 March 2011
Help
Ce template permet d'inclure simplement un fichier de tutorial pour onelab
Afficher le fichier complet:
{{tutorial|nom_de_fichier}}
Afficher seulement une partie:
{{tutorial|nom_de_fichier|height=22em}}