Template:Decorate item

From GodWiki
Revision as of 18:53, 7 December 2018 by FeRDNYC (talk | contribs) (FeRDNYC moved page Template:Decorate artifact to Template:Decorate item: We'll be using this for more than just artifacts, looks like)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

⚠️Example 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