Wikipedia:TemplateData/Tutorial: Difference between revisions
Content deleted Content added
No edit summary |
|||
Line 29:
If the template has no parameters, you can complete its TemplateData block with a simple line of<code> "params": {}</code>. If you do not include this line, you will not be able to save the page. This completes the TemplateData for the template.
However, most templates have parameters, such as dates, URLs, article names, images, numbers or strings. Determine which parameters are or may be used in the template. Parameters may be passed by equal signs. For instance, the <code><nowiki>{{cite web}}</nowiki></code> template is passed values to complete a citation, such as <code>url=</code>, <code>title=</code>, <code>accessdate=</code>, ''etc.'' Other parameters may be used by their position instead. In this case, use numbers "<code>1</code>", "<code>2</code>", ''etc.'' instead of names for the parameters.
The template documentation on the main or sub-page may summarize which parameters can be set on a template, and what each parameter must include. ===Completing the TemplateData information===
|