Template:MediaColour

From Lolitics Wiki
Jump to navigationJump to search

A parser that takes a media company name and returns the fainter company colour for use in table cells, etc.

Template Usage[edit source]

MediaColour takes a single parameter, a company name, and returns the html colour code for that company's colour.

For instance,

{{MediaColour|The BBC}}

gives you

#F08484

This is pretty useless on its own, but handy for setting backgrounds on table cells:

{| class="paddedcell bumpytable"
|- style="background:{{MediaColour|The BBC}};"
| The BBC
|}
The BBC

Parameter values must be taken from this arbitrary list with absolute precision, otherwise the parser will return the colour code for grey.

  • The BBC
  • Sky News
  • Channel 4
  • The Guardian
  • The Times
  • The Daily Mail
  • The Independent
  • The Telegraph
  • The Sun