|
|
| Line 1: |
Line 1: |
| − | ==Referencias cruzadas entre Figuras, Tablas, etc==
| + | ~ Migrated |
| − | | |
| − | | |
| − | <br />
| |
| − | ===Extension CrossReference===
| |
| − | Para realizar referencias con links entre Figuras y Tablas de forma similar a Latex, vamos a usar la '''Extension:CrossReference''':
| |
| − | | |
| − | https://www.mediawiki.org/wiki/Extension:CrossReference
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | Shown in <xr id="fig:Market_Organization"/>.
| |
| − | | |
| − | <figure id="fig:Market_Organization">
| |
| − | [[File:Text_classification1.png|thumb|600px|thumb|center|<caption>The organizations and groups of a market-like community in Janus</caption>]]
| |
| − | </figure>
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | Shown in <xr noautocaption id="fig:Market_Organization"/>.
| |
| − | | |
| − | | |
| − | <figure id="fig:Market_Organization">
| |
| − | [[File:Text_classification1.png|thumb|600px|thumb|center|<caption>The organizations and groups of a market-like community in Janus</caption>]]
| |
| − | </figure>
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ===Extension Figures===
| |
| − | https://www.mediawiki.org/wiki/Extension:Figures
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | {{#figure: |label=Figure «prueba» |content=[[File:Text_classification1.png|thumb|600px|thumb|center|{{#xref: |page=Página de pruebas |label=Figure «prueba» }}: Este es una prueba]]}}
| |
| − | | |
| − | | |
| − | Aquí me refiero a la {{#xref: |page=Página de pruebas |label=Figure «prueba» }}
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | | |
| − | {{#figure: |label=Figure «prueba» |content=[[File:Text_classification1.png|thumb|600px|thumb|center|{{#xref: |page=Help MediaWiki |label=Figure «prueba» }}: Este es una prueba]]}}
| |
| − | | |
| − | | |
| − | Aquí me refiero a la {{#xref: |page=Help MediaWiki |label=Figure «prueba» }}
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ==Indent Sections==
| |
| − | '''Extension:IndentSections:''' https://www.mediawiki.org/wiki/Extension:IndentSections
| |
| − | | |
| − | The IndentSections extension causes all sections to be automatically indented as if they were inside nested blockquotes.
| |
| − | | |
| − | Utilizando esta extensión, cada subsección será generada con una sangría (Indentation). Esto es muy conveniente para que la página pueda ser leída con facilidad.
| |
| − | | |
| − | La extensión que se encuentra en la link de arriba no funciona correctamente, pues no general la indentation de manera automática, sino que <nowiki>Se debe colocar <blockquote> antes de la parte que queremos identar y cerramos el bloque identado con </blockquote></nowiki>
| |
| − | | |
| − | La solución se encuentra descrita en la página «talk» de esta extensión: https://www.mediawiki.org/wiki/Extension_talk:IndentSections
| |
| − | | |
| − | El código propuesto en dicha página lo hemos colocado en la carpeta de la extensión en un archivo que hemos llamado: IndentSections2.php
| |
| − | | |
| − | El código propone dos formas de hacer la indentation. Además, el código es tan corto que es fácil editarlo para cambiar, por ejemplo, el tamaño de la indentation.
| |
| − | | |
| − | Este código podría generar errores en el MediaWiki ya que no es una extensión mantenida y actualizada. Sin embargo, parece estar funcionando decentemente, a pesar de que ya me ha generado algunos errores:
| |
| − | * Cuando traté de colocar algunos ejemplos de los cuadros generados para las páginas bases de Ciencia, Política-Historia etc, la SideBar fue desplazada hacia la derecha.
| |
| − | * También cuando traté de generar líneas y áreas de colores entre nombres de secciones de la forma mostrada en el siguiente código, se desplazaron hacia la derecha los textos desplegados al final de cada págian:
| |
| − | | |
| − | // Texto que fue desplazado:
| |
| − | Esta página fue modificada por última vez el 31 ago 2017 a las 17:38.
| |
| − | Política de privacidad Acerca de Sinfronteras Aviso legal Versión para móvile
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | {| style="color: black; background-color: #9370DB; width: 100%;"
| |
| − | | colspan="2" |
| |
| − | |}
| |
| − | {| style="color: black; background-color: #D8BFD8; width: 100%;"
| |
| − | | colspan="2" |
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ==Líneas de división==
| |
| − | |}
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | For greater control over styling nested sections, see https://www.mediawiki.org/wiki/Extension:StyleByHeaderTree
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ==Extensión para definir variables==
| |
| − | The Variables extension allows you to define a variable on a page, use it later in that same page or included templates, change its value, possibly to a value given by an expression in terms of the old value, etc.
| |
| − | | |
| − | https://www.mediawiki.org/wiki/Extension:Variables
| |
| − | | |
| − | '''Assigning a value to a variable:'''
| |
| − | <syntaxhighlight lang="html">
| |
| − | #vardefine
| |
| − | | |
| − | {{#vardefine:variablename|specifiedvalue}}
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | Assigns the value specifiedvalue to the (already existing or hereby introduced) variable variablename:
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | Example:
| |
| − | {{#vardefine:iconwidth|25}} making iconwidth = 25
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | #vardefineecho
| |
| − | | |
| − | {{#vardefineecho:variablename|specifiedvalue}}
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | Works exactly as #vardefine, but the affected value is printed:
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | Example:
| |
| − | | |
| − | making iconwidth = <code>{{#vardefineecho:iconwidth|25}}</code>
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | | |
| − | '''Retrieving the value of a variable:'''
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | #var
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | The value of the variable variablename is produced by:
| |
| − | | |
| − | <syntaxhighlight lang="html">
| |
| − | {{#var:variablename}}
| |
| − | </syntaxhighlight>
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ==Transclusion: Inclusión de una parte del contenido (cualquier texto) de una página en otra página==
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ===A través de los template===
| |
| − | https://www.mediawiki.org/wiki/Transclusion
| |
| − | | |
| − | <nowiki> {{template name}} </nowiki>
| |
| − | | |
| − | | |
| − | <br />
| |
| − | ===Desde cualquier página - Extension:Labeled Section Transclusion===
| |
| − | https://www.mediawiki.org/wiki/Extension:Labeled_Section_Transclusion
| |
| − | | |
| − | <nowiki> {{#lst:Mis páginas|Idiomas}} </nowiki>
| |
| − | {{#lst:Mis páginas|Idiomas}}
| |
| − | <!-- -->
| |
| − | <section begin=Videos_MediaWiki />
| |
| − | | |
| − | | |
| − | <br />
| |