Difference between revisions of "Template:Param"

From relax wiki
Jump to navigation Jump to search
m (1 revision imported: The current Wikipedia Template:key press template.)
 
(Switch from the imported {{informative template}} to the relax {{template info}} template)
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{#ifeq:{{Yesno|{{{nested|no}}}}}|yes||<{{{tag|code}}}>}}&#123;&#123;&#123;{{{1<noinclude>|foo</noinclude>}}}{{#ifeq:{{{2}}}|{{{2|}}} |&#124;}}{{{2|}}}&#125;&#125;&#125;{{#ifeq:{{Yesno|{{{nested|no}}}}}|yes||</{{{tag|code}}}>}}<noinclude>
+
'''<!--                                                Formatting.
{{Documentation}}
+
-->{{#if: {{{1|}}}
<!--
+
    | {{{1}}}<!--                                    The parameter.
  PLEASE ADD CATEGORIES AND INTERWIKIS
+
  -->{{#if: {{{2|}}}
  TO THE /doc SUBPAGE, THANKS
+
      |<nowiki></nowiki> &#61; <nowiki></nowiki><!--  The equals sign. -->
-->
+
    }}
</noinclude>
+
  }}<!--
 +
-->{{{2|}}}<!--                                        The value.
 +
-->'''<!--                                            Formatting.
 +
--><noinclude>
 +
 
 +
{{template info|1=
 +
== Goal ==
 +
 
 +
To provide consistent template parameter formatting for template documentation.
 +
 
 +
== Usage ==
 +
 
 +
{{obr}}param
 +
{{!}} ''parameter''
 +
{{!}} ''value''
 +
{{cbr}}
 +
 
 +
All parameters are optional.
 +
 
 +
; {{param|parameter}}:  The parameter name.
 +
 
 +
; {{param|value}}:  The parameter value.
 +
 
 +
== Example ==
 +
{{obr}}param {{!}} type {{cbr}}
 +
{{param | type}}
 +
 
 +
{{obr}}param {{!}} type {{!}} x {{cbr}}
 +
{{param | type | x}}
 +
 
 +
{{obr}}param {{!}} {{!}} x {{cbr}}
 +
{{param | | x}}
 +
 
 +
}}</noinclude>

Latest revision as of 13:52, 23 October 2020

'

Template documentation

Goal

To provide consistent template parameter formatting for template documentation.

Usage

{{param
| parameter
| value
}}

All parameters are optional.

parameter
The parameter name.
value
The parameter value.

Example

{{param | type }}

type

{{param | type | x }}

type = x

{{param | | x }}

x