Jump to content

ထႅမ်းပလဵတ်ႉ:para

လုၵ်ႉတီႈ ဝိၵ်ႇသျိၼ်ႇၼရီႇ မႃး

|{{{1}}}={{{2}}}


လွင်ႈၸႂ်ႉတိုဝ်း

[မႄးထတ်း]

This template simply displays a parameter name between a vertical line and an equal sign, as is seen in template calls. (This is useful in template documentation and in talk page discussions of templates.)

To display a parameter name surrounded by {{{triple-braces}}} (as would appear in template code), use Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table)..

ပႃႇရႃႇမီႇတႃႇ

[မႄးထတ်း]

This template takes the following parameters:

  • |1= (may be empty if second parameter is present): the name of the parameter
  • |2= (optional if first parameter is present): a corresponding value for the parameter
  • |3= (optional): additional usage text
  • |req=1: indicate that the parameter is required
  • |opt=1: indicate that the parameter is optional

တူဝ်ယၢင်ႇ

[မႄးထတ်း]
  1. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |name=
  2. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |name= (required)
  3. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |name= (optional)
  4. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |opt=1
  5. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |title=book title
  6. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |section. This is useful for referring to values of unnamed parameters; note the empty first parameter in the template call.
  7. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |parameter=value
  8. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |=foo
  9. Lua error in မေႃႇၵျူး:template_parser at line 1031: bad argument #1 to 'find' (string expected, got table).
    Result: |2= (optional if first parameter is present)

When using literal, pre-specified values, simply provide the value (appearance as in example 6). When illustrating hypothetical, variable or user-definable values, use <var>value</var> (appearance as in example 5), and the same should be done for non-literal, example parameters (as in example 7).