Difference between revisions of "Template:Pumpkins"

From GodWiki
Jump to: navigation, search
m (Fix up inner transclusion)
(Simplify (hopefully))
Line 1: Line 1:
βˆ’
{{decorate artifact|1=πŸŽƒ{{#if:{{{1|}}}|{{!}}2={{{1}}}}}}}<noinclude>
+
{{decorate artifact|1=πŸŽƒ|2={{{1|Example pumpkin-text}}}}}<noinclude>
 
{{doc|Template:Decorate artifact/Documentation}}
 
{{doc|Template:Decorate artifact/Documentation}}
 
[[Category:Templates|{{PAGENAME}}]] [[Category:Formatting templates|{{PAGENAME}}]]
 
[[Category:Templates|{{PAGENAME}}]] [[Category:Formatting templates|{{PAGENAME}}]]
 
</noinclude>
 
</noinclude>

Revision as of 15:22, 7 November 2018

πŸŽƒExample pumpkin-textπŸŽƒ

[view] [edit] [history] [refresh]
πŸ“š Documentation

{{Decorate item}} formats the text supplied in the |text= parameter or the second unnamed parameter, by placing the text from the first unnamed parameter next to it, offset by a small margin. Also sets the entire string no-wrap. The default is to decorate both sides of the string, |where= can be used to override that.

The default string is "Example text", and the default decoration is a warning-triangle emoji: ⚠️Example text⚠️

Convenience templates

It's usually simplest to use one of the convenience templates implemented using {{Decorate item}}, if possible:

Template Example use Example output
{{pumpkins}} {{pumpkins| [[cyclops eye drops]] }} πŸŽƒcyclops eye dropsπŸŽƒ
{{party}} {{party| [[3000-days gold coin]] }} πŸŽ‰3000-days gold coinπŸŽ‰
{{turkey}} {{turkey| [[roasted turkey]] }} πŸ¦ƒroasted turkey

Parameters

|where=
Optional -- set to control the placement of the decoration. Recognized values are:
  • before,start - Only place decoration before the string
  • after,end - Only place decoration after the string
  • both - Decorate both ends of the string (default)

Example of use

  • {{decorate item|πŸŽƒ|[[golden pumpkin]]}}
    produces: πŸŽƒgolden pumpkinπŸŽƒ
  • {{decorate item|text=<var>something special</var>|πŸŽ‰}}
    produces; πŸŽ‰something specialπŸŽ‰
  • {{decorate item|πŸ¦ƒ|[[roasted turkey]]|where=before}}
    produces; πŸ¦ƒroasted turkey