Template:MapCell

From The Urban Dead Wiki
Jump to navigationJump to search

style="border:solid 5px {{{OutColor}}}; background:{{{InColor}}}"|[[{{{Link}}}|{{{Text}}}]]

Usage:

This is one map cell of a suburb weather report. Call MapCell from inside the cell (after the vertical bar), sending it info about building name, colors to use, and text to insert.

Link= exact name (or coordinates) of the building (for location link)

OutColor= color to be used as 5px border (e.g., color indicating building type)

InColor= color to be used as background (e.g., color indicating barricade level)

Text= text to be used inside cell (e.g., zombie count for that block)


Hence, the weather report page will look something like this:

{| border="1" cellpadding="1"
| {{MapCell|OutColor=Pink|Link= Catherine General Hospital (Yagoton) |InColor= Yellow |Text= 1 }}
| {{MapCell|OutColor=DimGray|Link= Pikes Towers                      |InColor= Tomato |Text= (3) 5 }}
|-
| {{MapCell|OutColor=Cyan|Link= Tayler Lane Police Department        |InColor= LimeGreen |Text= 0/0 }}
| {{MapCell|OutColor=silver|Link= Whetcombe Park (Stanbury Village)  |InColor= silver |Text= 1338 }}
|}

which looks like this:

1 (3) 5
0/0 1338