Diferencia entre revisiones de «Curso Python DGA 2011/Codigo fuente»
De WikiEducator
(Página creada con '<includeonly> <!--<div style="margin-left: 0px; margin-top: {{{TopMargin|-30px}}}; margin-bottom: {{{BottomMargin|-15px}}}; border-style: solid; border-width:1px; border-color:…') |
|||
| (11 revisiones intermedias por el mismo usuario no mostrado) | |||
| Línea 1: | Línea 1: | ||
<includeonly> | <includeonly> | ||
| + | <div class="codigofuente"> | ||
| + | <h3>{{{titulo}}}</h3> | ||
| + | <source lang="python" > | ||
| + | {{{codigo}}} | ||
| + | </source> | ||
| + | </div> | ||
| + | </includeonly> | ||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
<noinclude> | <noinclude> | ||
| Línea 22: | Línea 16: | ||
== Modo de usar esta Plantilla == | == Modo de usar esta Plantilla == | ||
Para no ser listado en la tabla de contenido (TOC) usar: | Para no ser listado en la tabla de contenido (TOC) usar: | ||
| + | line="GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS" line start="1" | ||
:{{:Curso_Python_DGA_2011/Codigo_fuente | :{{:Curso_Python_DGA_2011/Codigo_fuente | ||
| − | :| | + | :|titulo=Ejemplo código |
| + | :|codigo=for x in range(100): | ||
| + | print x | ||
:}} | :}} | ||
| − | {{:Curso_Python_DGA_2011/Codigo_fuente| | + | {{:Curso_Python_DGA_2011/Codigo_fuente |
| − | for x in range( | + | |titulo=Ejemplo código |
| − | + | |codigo=for x in range(100): | |
| + | print x | ||
}} | }} | ||
| + | {{:Curso_Python_DGA_2011/fuenteabre}} | ||
| + | for x in range(100): | ||
| + | print x | ||
| + | {{:Curso Python DGA 2011/fuentecierra}} | ||
| − | |||
[[Categoría:Plantillas]] | [[Categoría:Plantillas]] | ||
Última revisión de 19:44 31 jul 2011
| Trabajo en proceso, espera cambios frecuentes. Tu ayuda y retroalimentación son bienvenidos. Ver página de charlas. |
Modo de usar esta Plantilla
Para no ser listado en la tabla de contenido (TOC) usar: line="GESHI_NORMAL_LINE_NUMBERS|GESHI_FANCY_LINE_NUMBERS" line start="1"
- {{:Curso_Python_DGA_2011/Codigo_fuente
- |titulo=Ejemplo código
- |codigo=for x in range(100):
print x
- }}
Ejemplo código
{{{codigo}}}
for x in range(100):
print x
</source>