Help:Osadzanie
![]() |
Uwaga: Jeżeli edytujesz tę stronę, to umieszczając na niej treści wyrażasz nieodwołalną zgodę na udostępnianie Twojego materiału na podstawie wolnej licencji CC0. Aby uzyskać więcej informacji, przeczytaj Strony Pomocy w Domenie Publicznej.
|
![]() |
Osadzanie to w terminologii MediaWiki dołączanie elementów na stronie za pomocą znacznika podwójnego nawiasu klamrowego „{{}}”. Mogą to być szablony, strony z innych przestrzeni nazw, magiczne słowa, rezultat funkcji parsera, niektóre strony specjalne, strony interwiki itp. This includes templates, pages in other namespaces, magic words, output of parser functions, some Special pages, interwiki pages, and more.
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:
{{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}}
Parameters
Transcluded templates and Strony specjalne may accept parameters:
{{note|inline|This is a note.}}
Source page syntax
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.
- includeonly
- Content within the
<includeonly></includeonly>
tags is transcluded on the target page, but does not appear on the source page.
- onlyinclude
- Content within the
<onlyinclude></onlyinclude>
tags is transcluded on the target page, and also appears on the source page.
See also
- Transclusion: A more in-depth explanation