Ajuda: Transcrição
| Nota: Quando modificais esta página, estais a aceitar que a vossa contribuição se publique no marco de CC0. Olhem Páginas de ajuda de domínio público para mais informação. |
Transcrição é um termo geral do MediaWiki para incluir conteúdo numa página utilizando a marcação chaveta dupla "{{}}". Isto inclui os modelos, páginas noutros espaços nominais, palavras mágicas, saída das funções do analisador, algumas páginas especiais, páginas interwiki e muito mais.
Sintaxe da página de destino
Utilização Básica
Para transcrever uma página, inclua ambos, espaço nominal e o nome da página (separados por dois pontos) dentro da chaveta dupla:
{{Help:Transclusion}}
Quando transcrever um modelo, pode omitir o espaço nominal e os dois pontos (isto transcreve um modelo guardado em Modelo: Infobox):
{{infobox}}
When transcluding an article in the Main namespace, you must use a colon before the article title (this transcludes the article having the title Transclusion):
{{:Transclusion}}
When transcluding a subpage of the target page, you may use the subpage name by itself (this is often done to display template documentation on the page for the template itself):
{{/doc}}
Parâmetros
Transcluded templates and special pages may accept parameters:
{{note|inline|This is a note.}}
Sintaxe da página fonte
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.Source page wikitext What appears on the source page What appears on the target page 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. Other content is also transcluded.Source page wikitext What appears on the source page What appears on the target page 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. Other content is not transcluded.Source page wikitext What appears on the source page What appears on the target page Hello <onlyinclude>world</onlyinclude>Hello world world
Consultar também
- Transcrição - Uma explicação mais aprofundada