Template:Sigbox: Difference between revisions

From the Super Mario Wiki, the Mario encyclopedia
Jump to navigationJump to search
m (Text replacement - "sub-page" to "subpage")
mNo edit summary
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<includeonly><templatestyles src="Sigbox/styles.css"/><div class="sigbox">{{User:{{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}}/{{#if:{{{2|}}}|Sig|sig}}}}</div></includeonly><noinclude>
<includeonly><templatestyles src="Sigbox/styles.css"/><div class="sigbox">{{{raw|{{User:{{#if:{{{1|}}}|{{{1}}}|{{ROOTPAGENAME}}}}/{{#rmatch:{{{2}}}|^\d$|Sig|{{{2|sig}}}}}}}}}}</div></includeonly><noinclude>
Usage: <code><nowiki>{{sigbox}}</nowiki></code> to put <code><nowiki>{{User:USER/sig}}</nowiki></code> in a box, but with the user's name instead of "USER". One variable can be used to specify the user's name. Otherwise, not using a variable will simply display the signature of the user space it's applied on (i.e. a user talk page). If the user has a '/Sig' subpage instead of '/sig' use the second variable (i.e. <code><nowiki>{{sigbox||1}}</nowiki></code>, <code><nowiki>{{sigbox|username|1}}</nowiki></code>).
Use <code><nowiki>{{sigbox}}</nowiki></code> to put <code><nowiki>{{User:USERNAME/sig}}</nowiki></code> in a box, but with the current userspace owner's name.


To put text other than a template-sized sig inside the box, use {{tem|sigbox-raw}}.
To manually specify the username and signature subpage, use: <code><nowiki>{{sigbox|USERNAME|SUBPAGE}}</nowiki></code>


[[Category:Formatting templates]]</noinclude>
To put custom text inside the box, use: <code><nowiki>{{sigbox|raw=INSERT TEXT HERE}}</nowiki></code>
 
[[Category:Project templates]]</noinclude>

Latest revision as of 10:18, September 17, 2024

Use {{sigbox}} to put {{User:USERNAME/sig}} in a box, but with the current userspace owner's name.

To manually specify the username and signature subpage, use: {{sigbox|USERNAME|SUBPAGE}}

To put custom text inside the box, use: {{sigbox|raw=INSERT TEXT HERE}}