Template:Documentation subpage/doc

From TF Library

Revision as of 23:11, 15 November 2015 by Jaydon TaVolarian (Talk | contribs)
(diff) ← Older revision | Current revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Contents

Usage

  1. REDIRECT Delete 24
or
  1. REDIRECT Delete 24

Userbox documentation

To set this template to use "userbox" and "userbox page" rather than "template" and "template page" or "user template" and "user template page", use:

  1. REDIRECT Delete 24
or
  1. REDIRECT Delete 24

Text customization

The parameters == Usage == This 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

  1. REDIRECT Delete 24 parameter is empty) an unnamed example parameter.

Examples

  1.   
  2. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
  3.   
  4. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
  5.   
  6. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
    (for unnamed parameters in the example code; note the empty first parameter in the
  7. REDIRECT Delete 24 template)
  8.   
  9. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para

When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4). and/or == Usage == This 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

  1. REDIRECT Delete 24 parameter is empty) an unnamed example parameter.

Examples

  1.   
  2. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
  3.   
  4. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
  5.   
  6. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para
    (for unnamed parameters in the example code; note the empty first parameter in the
  7. REDIRECT Delete 24 template)
  8.   
  9. REDIRECT Delete 24
    renders as
    Template loop detected: Template:Para

When using literal, pre-specified values, simply provide the value (appearance as in example 3). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 2), and the same should be done for non-literal, example parameters (as in example 4). can be used to set the text of, respectively, the template's first and second lines. If text1 is set but not text2, both lines' text will derive from text1: Template:Hidden begin {{Documentation subpage |text1='''''text1 appears here''''' |text2='''''text2 appears here'''''}} Template:Documentation subpage Template:Hidden end Template:Hidden begin {{Documentation subpage |text2='''''text2 appears here'''''}} Template:Documentation subpage Template:Hidden end Template:Hidden begin {{Documentation subpage |text1='''''text1 appears here'''''}} Template:Documentation subpage Template:Hidden end

Personal tools
TOOLBOX
LANGUAGES