Help:Transclusion/de

From mediawiki.org
This page is a translated version of the page Help:Transclusion and the translation is 59% complete.
PD Hinweis: Wenn Du diese Seite bearbeitest, stimmst Du zu, dass Dein Beitrag unter der [CC0] veröffentlicht wird. Mehr Informationen findest du auf der Public Domain Hilfeseite. PD

Transklusion ist eine allgemeine Bezeichnung in MediaWiki für das Einbinden von Inhalten durch Auszeichnung mit doppelten geschweiften Klammern {{}}. Die Inhalte können Dinge sein wie: Vorlagen, Seiten aus anderen Namensräumen, magische Wörter, die Ausgabe von Parserfunktionen, manche Spezialseiten, Interwiki-Seiten und mehr.

Zielseitensyntax

Basic use

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

{{Help:Transclusion}}

When transcluding a template, you may omit the namespace and colon:

{{infobox}}

When transcluding an article in the Main namespace, you may omit the namespace:

{{:Transclusion}}

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

{{/doc}}

Parameter

Transcluded templates and Spezialseiten may accept parameters:

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

Quellseitensyntax

Three tags (‎<noinclude>, ‎<includeonly>, and ‎<onlyinclude>) control which content appears in the target page.

‎<noinclude>

Content within the ‎<noinclude>...‎</noinclude> tags is excluded from transclusion on the target page. This content still appears on the source page.

Wikitext der Quellseite Was auf der Quellseite erscheint Was auf der Zielseite erscheint
Hello <noinclude>world</noinclude> Hello world Hello
‎<includeonly>

Content within the ‎<includeonly>...‎</includeonly> tags is transcluded on the target page, but does not appear on the source page.

Wikitext der Quellseite Was auf der Quellseite erscheint Was auf der Zielseite erscheint
Hello <includeonly>world</includeonly> Hello Hello world
‎<onlyinclude>

Content within the ‎<onlyinclude>...‎</onlyinclude> tags is transcluded on the target page, and also appears on the source page.

Wikitext der Quellseite Was auf der Quellseite erscheint Was auf der Zielseite erscheint
Hello <onlyinclude>world</onlyinclude> Hello world world

Siehe auch