Practical Semantic Mediawiki: Difference between revisions

Line 172: Line 172:
* Like a page link, for the first instance just enter a template placeholder, using two curly brackets instead of square. <nowiki>{{My template}}</nowiki>
* Like a page link, for the first instance just enter a template placeholder, using two curly brackets instead of square. <nowiki>{{My template}}</nowiki>
* Then follow the red link to fill in the template, and use it on other pages.
* Then follow the red link to fill in the template, and use it on other pages.
* Templates can accept parameters, separated by the pipe symbol. <nowiki>{{{Template|Parameter1|Parameter2|...}}</nowiki> Parameters are available in the template as <nowiki>{{{1}}}, {{{2}}}</nowiki>, etc.


* [[Template example]]
* [[Template example]]