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