Changes

Jump to navigation Jump to search

Template:Param

577 bytes added, 18:00, 7 March 2016
Template formatting improvements, and enforcement of spacing around the equals sign.
'''<!-- Formatting.-->{{#ifeqif:{{Yesno{1|}}} |{{{nested|no}1}}}}|yes||<!-- The parameter. -->{{#if: {{tag{2|code}}} |<nowiki></nowiki>}}&#123;&#12361;&#123;{{{1<noincludenowiki>|foo</noincludenowiki><!-- The equals sign. --> }} }}{{#ifeq:<!---->{{{2|}}}<!-- The value.-->'''<!-- Formatting.--><noinclude> {{Informative template|1=== Goal == To provide consistent template parameter formatting for template documentation. == Usage ==  {{obr}}param {{!}} ''parameter'' {{2|!}}''value'' {{cbr} } All parameters are optional. ; {{param|&#124parameter}}: The parameter name. ;{{param|value}}: The parameter value. == Example == {{obr}}param {{2|!}}}&#125;&#125;&#125;type {{#ifeq:cbr}}{{Yesnoparam |type}}  {{obr}}param {nested|no{!}}type {{!}} x {{cbr}}{{param |yestype ||</x}}  {{obr}}param {tag|code{!}}{{!}>} x {{cbr}}<noinclude>{{Documentationparam | | x}}<!-- PLEASE ADD CATEGORIES AND INTERWIKIS TO THE /doc SUBPAGE, THANKS-->}}</noinclude>
Trusted, Bureaucrats
4,228

edits

Navigation menu