More actions
clarify parameters because I got it wrong last time and broke it |
m →General: code appears on the background of template:documentation so I might as well put it in. |
||
| Line 9: | Line 9: | ||
:<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt> | :<tt><nowiki>{{navbar|{{subst:PAGENAME}}|fontstyle=color:green}}</nowiki></tt> | ||
The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. For example, <code><nowiki>{{navbar|{{subst:PAGENAME}}}}</nowiki></code> gives: <code><nowiki>{{navbar|navbar/doc}}</nowiki></code> – note that the wikispace, while nominally in the URL, is not included in the substituted pagename. And thus, the final output is:{{navbar|navbar/doc}} | The <code><nowiki>{{subst:PAGENAME}}</nowiki></code> will be substituted with the template's name when parsed by the servers. For example, <code><nowiki>{{navbar|{{subst:PAGENAME}}}}</nowiki></code> gives: <code><nowiki>{{navbar|navbar/doc}}</nowiki></code> – note that the wikispace, while nominally in the URL, is not included in the substituted pagename. And thus, the final output is:<code>{{navbar|navbar/doc}}</code> | ||
===Font-size=== | ===Font-size=== | ||