VassarWiki:Templates: Difference between revisions
link to Special:AllPages/Templates |
wording/syntax |
||
| Line 6: | Line 6: | ||
In the Source Editor, you will have to type the syntax manually: | In the Source Editor, you will have to type the syntax manually: | ||
<nowiki>{{Name | <nowiki>{{Name | ||
|parameter1 = value1 | |||
|parameter2 = value2 | |||
}}</nowiki> | }}</nowiki> | ||
Take a look at the desired template's documentation, where there may be example syntax that you can adapt. | Take a look at the desired template's documentation, where there may be example syntax that you can adapt. | ||
If you insert a template with the prefix "subst:" before it (e.g. <code><nowiki>{{subst:Name}}</nowiki></code>), it will substitute the template code into the page and it will longer be editable as a template. You shouldn't do this unless specified on the template documentation. | If you insert a template with the prefix "subst:" before it (e.g. <code><nowiki>{{subst:Name}}</nowiki></code>), it will substitute the template code into the page and it will longer be editable as a template. You generally shouldn't do this unless specified on the template documentation. | ||
== Making a template == | == Making a template == | ||