Module:Params/doc: Difference between revisions

Content deleted Content added
Update doc
mNo edit summary
Line 23:
: Owlman: A giant owl-like creature<br />Beast of Bodmin: A large feline inhabiting Bodmin Moor<br />Morgawr: A sea serpent
 
We can also do more sophisticated things, and by exploiting the possibility to set a header (<code>h</code>) and a footer (<code>f</code>) we ancan transform the previous code into a generator of [https://html.spec.whatwg.org/multipage/grouping-content.html#the-dl-element definition lists],
 
<syntaxhighlight lang="wikitext">{{#invoke:params|setting|h/p/i/f|<dl><dt>|</dt><dd>|</dd><dt>|</dd></dl>|list}}</syntaxhighlight>
Line 61:
=== <code>count</code> ===
; Brief
: ''Count the number of parameters wherebywherewith a template was called''
; Syntax
: <syntaxhighlight lang="wikitext" inline>{{#invoke:params|count}}</syntaxhighlight>