Template:PileOfCookies: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
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>{{FlagboxDoc3|1|your username|2|the receiving user's username|reason|the reason|<nowiki>[[User:Example User|Example User]]</nowiki>|himself|the fun of it|[[User:Example User|Example User]]|himself|the fun of it}}[[Category:350px Flagboxes|{{PAGENAME}}]][[Category:Food Templates|{{PAGENAME}}]]</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&#61;}}<nowiki>[[User:Example User|Example User]]</nowiki><nowiki>|</nowiki>{{Switch|2|case: 2=|default=2&#61;}}himself<nowiki>|</nowiki>{{Switch|reason|case: 3=|default=reason&#61;}}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

PileOfCookies.jpg 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

PileOfCookies.jpg COOKIES!
Example User has given himself a pile of cookies for the fun of it