More actions
m →General: code appears on the background of template:documentation so I might as well put it in. |
→General: Oops. Removed code (font is weird, only backgrounds the text and not the whole thing) and replaced with table. |
||
| 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: | 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: | ||
{|style="background:#000000" | |||
|{{navbar|navbar/doc}} | |||
|} | |||
===Font-size=== | ===Font-size=== | ||