Help:Templates: Difference between revisions

Jump to navigation Jump to search
m
no edit summary
(Extending, mostly related to editing + Links to advanced editing help)
mNo edit summary
Line 37: Line 37:
In some of the template documentation the following convention is used to illustrate how parameters can be used:
In some of the template documentation the following convention is used to illustrate how parameters can be used:


  <nowiki>{{</nowiki>'''template name'''<nowiki>|</nowiki>mandatory unnamed parameter<nowiki>|</nowiki>''optional unnamed parameter''<nowiki>|</nowiki>mandatory named parameter=<nowiki>|</nowiki>''optional named parameter=''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''template name'''<nowiki>|</nowiki>mandatory unnamed parameter<nowiki>|</nowiki>''optional unnamed parameter'' <nowiki>|</nowiki>mandatory named parameter= <nowiki>|</nowiki>''optional named parameter=''<nowiki>}}</nowiki>


In most cases it is possible to use any kind of wiki markup in the parameters, for example wiki links.
In most cases it is possible to use any kind of wiki markup in the parameters, for example wiki links.
Line 48: Line 48:
The template documentation contains a list of the parameters the template uses that can be copied and pasted to the page you are editing, sometimes even with some of the parameters filled in, like for example this template:
The template documentation contains a list of the parameters the template uses that can be copied and pasted to the page you are editing, sometimes even with some of the parameters filled in, like for example this template:


  <nowiki>{{</nowiki>'''splitapart'''<nowiki>|</nowiki>''Discussion page section''<nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}''<nowiki>}}</nowiki>
  <nowiki>{{</nowiki>'''splitapart'''<nowiki>|</nowiki>''Discussion page section'' <nowiki>|</nowiki>''date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}''<nowiki>}}</nowiki>


In the template documentation there is also a list of the parameters and how they are supposed to be used and there are often examples to illustrate how it they be used in different ways.
In the template documentation there is also a list of the parameters and how they are supposed to be used and there are often examples to illustrate how it they be used in different ways.

Navigation menu