Realiza una donación a la Enciclopedia Colchagüina para poder preservarla
Realiza una donación a la Enciclopedia Colchagüina para poder preservarla

Ayuda:Transclusión

De la Enciclopedia Colchagüina
(Redirigido desde «Ayuda:Transclusion»)
PD Nota: Los contenidos de esta página se encuentran bajo la licencia CC0, y han sido importados desde MediaWiki.org. Estas páginas están disponibles aquí a modo informativo, y puede que algunas se encuentren en el idioma inglés. PD

<translate> Transclusion is a general MediaWiki term for including things into a page using double-brace "<tvar name=1>{{}}</tvar>" markup.</translate> <translate> This includes [[<tvar name=templates>Special:MyLanguage/Help:Templates</tvar>|templates]], pages in other namespaces, [[<tvar name=mg-wrds>Special:MyLanguage/Help:Magic words</tvar>|magic words]], output of [[<tvar name=pr-fns>Special:MyLanguage/Help:Parser function</tvar>|parser functions]], some [[<tvar name=sp-pgs>Special:MyLanguage/Help:Special pages</tvar>|Special pages]], [[<tvar name=iw-pgs>Special:MyLanguage/Manual:Interwiki</tvar>|interwiki pages]], and more.</translate>

<translate>

Target page syntax

Basic use

To transclude a page, include both the namespace and the page name (separated with a colon) within the double-brace: </translate>

{{Help:Transclusion}}

<translate> When transcluding a [[<tvar name=1>Special:MyLanguage/Help:Templates</tvar>|template]], you may omit the namespace and colon: </translate>

{{infobox}}

<translate> When transcluding an article in the Main namespace, you may omit the namespace: </translate>

{{:Transclusion}}

<translate> When transcluding a subpage of the target page, you may use the subpage name by itself: </translate>

{{/doc}}

<translate>

Parameters

Transcluded templates and <tvar name=1>special pages </tvar> may accept parameters: </translate>

{{note|inline|This is a note.}}

<translate>

Source page syntax

Three tags (<tvar name=1><noinclude></tvar>, <tvar name=2><includeonly></tvar>, and <tvar name=3><onlyinclude></tvar>) control which content appears in the target page. </translate>

<noinclude>
<translate> Content within the <tvar name=1><noinclude>...</noinclude></tvar> tags is excluded from transclusion on the target page. This content still appears on the source page. </translate>
<translate> Source page wikitext</translate> <translate> What appears on the source page</translate> <translate> What appears on the target page</translate>
Hello <noinclude>world</noinclude> Hello world Hello
<includeonly>
<translate> Content within the <tvar name=1><includeonly>...</includeonly></tvar> tags is transcluded on the target page, but does not appear on the source page. </translate>
<translate> Source page wikitext</translate> <translate> What appears on the source page</translate> <translate> What appears on the target page</translate>
Hello <includeonly>world</includeonly> Hello Hello world
<onlyinclude>
<translate> Content within the <tvar name=1><onlyinclude>...</onlyinclude></tvar> tags is transcluded on the target page, and also appears on the source page. </translate>
<translate> Source page wikitext</translate> <translate> What appears on the source page</translate> <translate> What appears on the target page</translate>
Hello <onlyinclude>world</onlyinclude> Hello world world

<translate>

See also

</translate>

  • Transclusion - <translate> A more in-depth explanation</translate>