Jump to content

Template:Pill/documentation

From Wiktionary, the free dictionary
Documentation for Template:Pill. [edit]
This page contains usage information, categories, interwiki links and other content describing the template.

This template produces a generic inline pill shape, optionally with some text inside. Primarily for User namespace.

The supported parameters are:

  • 1=: the text to display. For example, {{pill|text}} produces text. Defaults to  .
  • bg= and fg=: self-explanatory. {{pill|pink on blue|bg=blue|fg=pink}} produces pink on blue. Default to black and white, respectively.
  • html= and css=: additional HTML parameters and/or CSS rules. For example, you can use html=title='[non-abbreviated text]' for abbreviations, and css=font-family: "Comic Sans MS"; to change the look. Example. Note that the CSS is wrapped in apostrophes, so you should use double quotes in the corresponding parameter.