Practical Semantic Mediawiki: Difference between revisions

Jump to navigation Jump to search
Line 118: Line 118:
* <nowiki>{{My Template}}</nowiki> — A template (reusable content, function or site value)
* <nowiki>{{My Template}}</nowiki> — A template (reusable content, function or site value)
** Don't Repeat Yourself
** Don't Repeat Yourself
** Pipe symbol is used to pass parameters — <nowiki>{{Show Something|Something}}</nowiki>
** Pipe symbol is used to pass parameters — <nowiki>{{Highlight|Anything}}</nowiki> can be used to consistently apply an appearance to anything passed as a parameter
* <nowiki>{{ #geocode: Montréal, Quebec}}</nowiki> — Template function, in this case geocode turns a place name into geographic coordinates
* <nowiki>{{ #geocode: Montréal, Quebec}}</nowiki> — Template function, in this case geocode turns a place name into geographic coordinates
* <nowiki>{{{1}}}</nowiki> — SMW variable, in this case the first value passed to a template
* <nowiki>{{{1}}}</nowiki> — SMW variable, in this case the first value passed to a template

Navigation menu