Diferencia entre revisiones de «Vaqalado»
m |
|
(No se muestran 6 ediciones intermedias del mismo usuario) | |
(Sin diferencias)
|
Revisión actual del 20:22 7 nov 2014
Contenido
CHEAT SHEET
Magic words
vid. Help:Magic_words
- {{NAMESPACE}} Usuario discusión
- {{PAGENAME}} Vaqalado
- {{FULLPAGENAME}} Usuario discusión:Vaqalado
- {{TALKPAGENAME}} Usuario discusión:Vaqalado
- {{TALKSPACE}} Usuario discusión
- {{BASEPAGENAME}} Vaqalado ..."igual que {{PAGENAME}}, pero sin la última /Sub_pagina"
- {{SUBPAGENAME}} Vaqalado ..."última /Sub_pagina de la ruta de la página"
- {{SUBJECTPAGENAME}} Usuario:Vaqalado ..."Ruta completa de la página de contenidos asociada"
- {{ARTICLEPAGENAME}} Usuario:Vaqalado ..."Si se está en página de discusión, devuelve la ruta de la página principal"
- {{SUBJECTSPACE}} Usuario ..."Nombre del namespace de la página de contenidos asociada a la página"
- {{ARTICLESPACE}} Usuario ..."Si se está en página de discusión, devuelve en namespace de la página principal"
Transclusion
- <includeonly> ... el anfitrión recibe este texto, mas no lo muestre el huesped
- <noinclude> ... el anfitrión no recibe este texto, mas sí lo muestre el huesped
- <onlyinclude> ... el anfitrión tan sólo recibe este texto
Inclusión
- {{subst:}} ... el anfitrión incluye al huesped
- {{subst:{{subst:SUBJECTPAGENAME}}}} ... el anfitrión incluye como huesped a su raíz inmediata
- {{subst:{{subst:ARTICLEPAGENAME}}}} ... la discusión anfitrión incluye como huesped a su artículo asociado
Instant Commons
https://www.mediawiki.org/wiki/InstantCommons
Parser functions
- #if
- {{#if: | yes | no}} → no
- {{#if: string | yes | no}} → yes
- #ifeq
- {{#ifeq: 01 | 1 | yes | no}} → yes
- {{#ifeq: 0 | -0 | yes | no}} → yes
- {{#ifeq: "01" | "1" | yes | no}} → no
- #if
Tables
Hiding rows
- {|
- |-
- {{#if:{{{Parámetro|}}} |
- {{!}} yes |
- {{!}} no}}
- |-
- |}
- {|
no |
- {|
- |-
- {{#if:{{{Parámetro|}}} |
- {{!}} yes |
- {{!}}- no}}
- |-
- |}
- {|
_ _ _
Query result as value for property
vid. Plain (unformatted) printouts
- En huesped: [[Property::Property value]]
- En anfitrión: [[Property 2::{{#show:Huesped|?Property value#-}}]]
- nota. "Huesped" en [[Property 2::{{#show:Huesped|?Property value#-}}]] bien puede cambiarse por magicwords como: {{FULLPAGENAME}}
Tabs
This is the simplest togglebox, with just a tab tag without any attributes, surrounding this text.
Its label will switch between the value of MediaWiki:tabs-toggle-open-placeholder and MediaWiki:tabs-toggle-close-placeholder.
Tab 1 is a named tab without specified index.
Tab 2 is a named tab, but with a specified index equal to the default 2.
Tab 3 is an unnamed tab, with a specified index (4) of higher than the default (3), which makes it fall back to the name attribute's value. Its name attribute, even though it's defined, is left blank though, so it will fall back to the default, defined in MediaWiki:tabs-tab-label-placeholder.
This is another tab tag, but has a specified index of 1, so this shows when tab 1 is selected
This is another tab tag, but has a specified name of equal to the third tab's ("Tab 3", the default value). This still shows when tab 3 is selected, even though tab 3 had no name specified itself.
This bottom text always shows, since it's not placed within a tab tag. This parent tabs tag is also a demonstration of the style, class and id attributes.
And this part will only show for tab 3.
Look, it's multiline!
This also demonstrates that tab contents use the display:inline-block;
style, which can be changed by either adding the inline or block attribute, and not setting its value to "false" or "0".
This part also only shows for tab 3, but this has a block attribute that's not set to "false" or "0".
Note that the third tab has the default tab label. This is because a tab tag without defined name was used first, and then only after that the name was defined. It is important to define the name in the first usage of the tab, because only the name assigned to the first usage will be used.
This togglebox demonstrates the use of openname and closename attributes, and has a collapsed attribute that's not set to "false" or "0".
It also has a defined name attribute, which is not used, since the open/closename attributes are defined.
This tabsbox has a list of tabs with a name defined earlier at the top of this tab. This is useful when making templates that might want to use tabs to switch at multiple locations within its body. Referring to the tabs can then be done simply via assigning the index attribute to it.
This text has
#if:
to be usedThis tabs tag is left without any <tab> tags in it. No tabs will be rendered, but the styling of the tab content will remain.
This is an example of a <tabs>
tag nested inside a <tab>
tag.
<tab>
tag within another <tab>
tag within a <tabs>
tag: <tabs>
tags within each other, this will happen.