Template:temp

Definition from Wiktionary, the free dictionary
Jump to: navigation, search

{{}}


The following documentation is located at Template:temp/documentation. [edit]


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-top }}

{{checktrans-top}}

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.
    1. Use = to code the character.
    2. Wrap the parameter assignment in <nowiki> tags.
    3. Make numeral assignments corresponding with numbered parameters starting from 2.
  • Use =subst: or subst=... to reflect the parser function subst: 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 the prefix=... parameter.

Examples

{{ temp | trad | it | [[it:Roma | Roma]] }}

{{ temp | trad- | | ''translation'' }}

{{trad|it|}}

{{trad-||translation}}

{{ temp | wikipedia | lang&#61;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 }}

{{subst:notEnglish}}

{{subst:nolang}}

{{ temp | =: | MediaWiki:Noexactmatch }}

{{:MediaWiki:Noexactmatch}}

{{ temp | subst=: | prefix=w: | afd }}

{{ temp | =w:en: | afd | 2=nosubst=yes }}

{{subst:afd}}

{{afd|nosubst=yes}}

{{ temp | =fr: | supprimer }} = [[:fr:Modèle:supprimer]]

{{ temp | =fr:w: | suppression }} = [[w:fr:Modèle:suppression]]

{{supprimer}} = fr:Modèle:supprimer

{{suppression}} = w:fr:Modèle:suppression

See also