Wikipedia:TemplateData/Tutorial: Difference between revisions
Content deleted Content added
→Worked example: clarifying note |
→Completing the template data information: link to further info |
||
Line 101:
<nowiki> </nowiki>Where more than one parameter sub-blocks is passed to the template, you must add a comma after the close brace, <code>},</code>, between the sub-blocks. Do not place a comma after the last sub-block in your set, but do make sure that there is a final close brace, <code>}</code>.
A further option, <code>"format"</code>, determines how the wikitext code for the template will be formatted when it is saved by the VisualEditor.
<pre>{{Infobox television
| show_name = Father Ted
Line 107:
}}</pre>
This option may be preferable for very complex templates like infoboxes which have multiple parameters. The documentation page indicated the format with the line {{small|"This template prefers inline formatting of parameters."}} or {{small|"This template prefers block formatting of parameters."}}
For more complex parameter formatting options, see [[:mw:Help:TemplateData#Custom_formats]].
==== Save ====
|