Difference between revisions of "Help:Templates"
From FamiLAB Wiki
m |
|||
Line 1: | Line 1: | ||
− | If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play. Templates are wiki pages which can be | + | If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play. Templates are wiki pages which can be used in other pages in three ways: |
− | * <code><nowiki>{{Name</nowiki></code>}} includes the content of the page "[[Template:Name]]" | + | * <code><nowiki>{{Name</nowiki></code>}} includes the current content of the page "[[Template:Name]]". |
− | * <code><nowiki>{{subst:Name</nowiki></code>}} inserts the content of the page "[[Template:Name]]" when you save your text | + | * <code><nowiki>{{subst:Name</nowiki></code>}} inserts the content of the page "[[Template:Name]]" when you save your text. |
− | * <code><nowiki>{{msgnw:Name</nowiki></code>}} | + | * <code><nowiki>{{msgnw:Name</nowiki></code>}} includes the template in raw wiki syntax, like <code><nowiki><nowiki></nowiki></code> does |
− | + | Templates must be prefixed with <code><nowiki>Template</nowiki></code>, you create them like any other wiki page. | |
− | |||
==Parameters== | ==Parameters== | ||
{{PD}} | {{PD}} |
Revision as of 08:23, 31 August 2005
If you have standard texts you want to include on several pages, the MediaWiki template feature comes into play. Templates are wiki pages which can be used in other pages in three ways:
-
{{Name
}} includes the current content of the page "Template:Name". -
{{subst:Name
}} inserts the content of the page "Template:Name" when you save your text. -
{{msgnw:Name
}} includes the template in raw wiki syntax, like<nowiki>
does
Templates must be prefixed with Template
, you create them like any other wiki page.