Difference between revisions of "Template:Tutorial"

From ONELAB
Jump to: navigation, search
 
(35 intermediate revisions by 3 users not shown)
Line 1: Line 1:
 
+
<includeonly>[[Category:Tutorial]]{{#if:{{{height|}}}|<div class="tex2jax_ignore" style="margin:1em 0em 0em 0em; overflow:auto; height:{{{height|20em}}}; width:{{{width|98%}}}; -moz-border-radius-topleft:0.5em; border:1px solid #AAA; padding-left:0.5em; padding-right:0.5em; background:transparent;">}}{{#tag:include||src="/onelab_files/{{{1}}}"}}{{#if:{{{height|}}}|</div>}}<p align="right"><small>[http://onelab.info/files/{{{1}}} Direct link to file `{{{1}}}']</small></p></includeonly><noinclude>
<includeonly>
 
 
 
{{#if: {{{1|}}} | Hooray...! | Darn...! }}
 
 
 
<!-- we cannot use xml tags directly for the "include" extension because it prevents
 
    parameter expansion, so we use the #tag parser function
 
 
 
 
 
<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"}}
 
 
 
</div>
 
 
 
[http://ace.montefiore.ulg.ac.be/onelab_files/{{{1}}} Direct link to file `{{{1}}}' ]
 
 
 
-->
 
 
 
 
 
</includeonly>
 
 
 
<noinclude>
 
  
 
==Help==
 
==Help==
Line 29: Line 5:
 
Ce template permet d'inclure simplement un fichier de tutorial pour onelab
 
Ce template permet d'inclure simplement un fichier de tutorial pour onelab
  
Utilisation:
+
Afficher le fichier complet:
  
 
<pre>
 
<pre>
 
{{tutorial|nom_de_fichier}}
 
{{tutorial|nom_de_fichier}}
 +
</pre>
 +
 +
Afficher seulement une partie:
 +
<pre>
 +
{{tutorial|nom_de_fichier|height=22em}}
 
</pre>
 
</pre>
  
 
</noinclude>
 
</noinclude>
 +
 +
<!--
 +
  we cannot use xml tags directly for the "include" extension because it prevents
 +
  parameter expansion, so we use the #tag parser function
 +
 +
  we use class="tex2jac_ignore" to prevent MathJax to interpret $$ in included files
 +
  as inline equations
 +
-->

Latest revision as of 15:39, 6 November 2016


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}}