Template:PileOfCookies: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
The Rooster (talk | contribs) No edit summary |
The Rooster (talk | contribs) mNo edit summary |
||
Line 4: | Line 4: | ||
|- | |- | ||
|style="font-size:x-small"|{{{1}}} has given {{{2}}} a pile of cookies for {{{reason}}} | |style="font-size:x-small"|{{{1}}} has given {{{2}}} a pile of cookies for {{{reason}}} | ||
|}<noinclude> | |}<noinclude> | ||
==Usage== | |||
===Variables=== | |||
This flagbox takes two variables: | |||
*"1" where you should enter your username. | |||
*"2" where you should enter the receiving user's username. | |||
*"reason" where you should enter the reason. | |||
For example, if you were to enter "'''<nowiki>[[User:Example User|Example User]]</nowiki>'''", "'''himself'''" and "'''the fun of it'''" using this code: | |||
{{CodeInline|<nowiki>{{</nowiki>'''{{PAGENAME}}<nowiki>|</nowiki>{{Switch|1|case: 1=|default=1=}}<nowiki>[[User:Example User|Example User]]</nowiki><nowiki>|</nowiki>{{Switch|2|case: 2=|default=2=}}himself<nowiki>|</nowiki>{{Switch|reason|case: 3=|default=reason=}}the fun of it'''<nowiki>}}</nowiki>}} | |||
this would produce | |||
{{ {{PAGENAME}}|1=[[User:Example User|Example User]]|2=himself|reason=the fun of it }} | |||
__NOEDITSECTION__ __NOTOC__[[Category:Flagboxes|{{PAGENAME}}]][[Category:350px Flagboxes|{{PAGENAME}}]][[Category:Food Templates|{{PAGENAME}}]]</noinclude> |
Revision as of 01:13, 22 November 2009
COOKIES! | |
{{{1}}} has given {{{2}}} a pile of cookies for {{{reason}}} |
Usage
Variables
This flagbox takes two variables:
- "1" where you should enter your username.
- "2" where you should enter the receiving user's username.
- "reason" where you should enter the reason.
For example, if you were to enter "[[User:Example User|Example User]]", "himself" and "the fun of it" using this code:
{{PileOfCookies|[[User:Example User|Example User]]|himself|reason=the fun of it}}
this would produce
COOKIES! | |
Example User has given himself a pile of cookies for the fun of it |