From GodWiki
Jump to navigation Jump to search

๐ŸŽ‰Example party-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


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