Jump to content

Ta‌̱mpi‌̱let:paramref

Neet di̱ Swánga̱lyiatwuki

This template displays a parameter name surrounded by Script error: No such module "template parser/templates"., as one would see in MediaWiki template code. Note that this is useful when discussing the coding of templates (e.g., on template talk pages), but not so much when discussing how to use templates (e.g., in template documentation or on entry talk pages). For the latter usage, please see {{para}}.

Usage

[jhyuk]

This template may be added anywhere outside of the main (dictionary) namespace to display a parameter as it would appear inside template code.

Parameters

[jhyuk]

This template uses one or two unnamed (positional) parameters:

  • |1= (required) The parameter name to be shown. This can be empty, but must be given.
  • |2= (optional) The text that appears after the parameter name and a pipe. This can be empty.

Examples

[jhyuk]
  • {{paramref|1}} returns:
    Script error: No such module "template parser/templates".
  • {{paramref|foo}} returns:
    Script error: No such module "template parser/templates".
  • {{paramref|bar|}} returns:
    Script error: No such module "template parser/templates".
  • {{paramref|salt|pepper}} returns:
    Script error: No such module "template parser/templates".
  • {{paramref||Tweedle-dee}} returns:
    Script error: No such module "template parser/templates".

See also

[jhyuk]