ទំព័រគំរូ:temp/doc
Appearance
About
[កែប្រែ]This template is intended for use on talk pages and areas of Wiktionary that describe the markup language of wikitext. It simply displays the name of another template, linked for convenience. A simple example is coded below, followed by the resultant text:
{{ temp | checktrans }}
{{checktrans}}
Syntax
[កែប្រែ]{{ temp | name of template | optional argument | or arguments ... }}
{{ temp | =subst: | name of template }}
{{ temp | subst=subst: | name of template }}
{{ temp | =: | name space:page name }}
{{ temp | =project prefix: | name of template}}
{{ temp | prefix=project prefix: | name of template}}
- Only one parameter is required, the template name to display.
- Other informational parameters that don't use the equals sign
=
are also listed. - To display an equals sign, there are several work-arounds. See examples.
- Use
=
to code the character. - Wrap the parameter assignment in
<nowiki>
tags. - Make numeral assignments corresponding with numbered parameters starting from
2
.
- Use
- Use
=subst:
or
subst=...
to reflect the parser functionsubst:
for templates that must be substituted. - Examples of inclusion outside the “
Template:
” space use=:
as a parameter. - Links to templates in sister projects use a prefix such as
=w:
for Wikipedia, a language code such as=en:
for English, or a combination. These can also be specified with theprefix=...
parameter.
Examples
[កែប្រែ]
{{ temp | trad | it | [[it:Roma | Roma]] }}
{{ temp | trad- | | ''translation'' }}
{{trad|it|}}
{{trad-||translation}}
{{ temp | wikipedia | lang=it | Roma }}
{{ temp | wikipedia | <nowiki>lang=it</nowiki> | Roma }}
{{ temp | wikipedia | 2=lang=it | 3=Roma }}
{{wikipedia|lang=it|Roma}}
{{wikipedia|lang=it|Roma}}
{{wikipedia|lang=it|Roma}}
{{ temp | =subst: | notEnglish }}
{{ temp | subst=yes | nolang }}
{{notEnglish|=subst:}}
{{nolang|subst=yes}}
{{ temp | =: | MediaWiki:Noexactmatch }}
{{MediaWiki:Noexactmatch|=:}}
{{ temp | subst=: | prefix=w: | afd }}
{{ temp | =w:en: | afd | 2=nosubst=yes }}
{{afd|prefix=w:|subst=:}}
{{afd|nosubst=yes|=w:en:}}
{{ temp | =fr: | supprimer }} = [[:fr:Modèle:supprimer]]
{{ temp | =fr:w: | suppression }} = [[w:fr:Modèle:suppression]]
{{supprimer|=fr:}}
= fr:Modèle:supprimer
{{suppression|=fr:w:}}
= w:fr:Modèle:suppression
See also
[កែប្រែ]
- w:Template:tl on Wikipedia