This site is supported by donations to The OEIS Foundation.

Template:Para

From OeisWiki
Jump to: navigation, search

The {{para}} typing-aid template is for giving examples of template parameter source code (useful in template documentation and talk page discussions of template code). It must have one or two parameters itself. The first is the name of the example parameter to display (this may be empty, but it must be present), and the second (optional) one is a value for the first example parameter, or (if the first {{para}} parameter is empty) an unnamed example parameter.

Examples

  1.   {{para|name}}
    renders as
    |name=
  2.   {{para|title|''book title''}}
    renders as
    |title=book title
  3.   {{para|URL|''http://en.wikipedia.org/wiki/Uniform_resource_locator#Absolute_and_relative_URLs''}}
    renders as
    |URL=http://en.wikipedia.org/wiki/Uniform_resource_locator#Absolute_and_relative_URLs
  4.   {{para| |section}}
    renders as
    |section
    (for unnamed parameters in the example code; note the empty first parameter in the {{para}} template)
  5.   {{para|''parameter''|''value''}}
    renders as
    |parameter=value

When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use ''value'' (appearance as in example 2), and the same should be done for non-literal parameters (appearance as in example 4).

See also

  • {{tl}}Template Link, up to twelve parameters and interwiki links, uses a proportional font.
  • {{tlx}}Template Link eXpanded, up to twelve parameters and interwiki links, uses a monospaced non-proportional font.
  • {{tlb}} – Same as {{tl}}, but gives the template name in boldface type.
  • {{tlxb}} – Same as {{tlx}}, but gives the template name in boldface type.


  • {{tn}}Template Name (or No link,) up to twelve parameters, uses a proportional font.
  • {{tnx}}Template Name (or No link) eXpanded, up to twelve parameters, uses a monospaced non-proportional font.
  • {{tnb}} – Same as {{tn}}, but gives the template name in boldface type.
  • {{tnxb}} – Same as {{tnx}}, but gives the template name in boldface type.


  • {{para}} – Template parameters.