User:Crabbe/Documentation/DangerMap

From The Urban Dead Wiki
Jump to navigationJump to search

Top Level:

To produce the danger map using Template:DangerMap:

{{DangerMap}}

To produce the map key using Template:MapColors:

{{MapColors}}

Called by DangerMap

DangerMap is a table with styles provided by templates, for example User:DangerReport/Havercroft

{{User:DangerReport/Havercroft}}

one template for each suburb.

Returned by User:DangerReport/Suburb

This is a template.

Include:

{{{{{template|DangerMapFormat}}}|Notoriety=normal|Danger=dangerous}}

The above code returns:
background:#FD9;border:solid 2px #EA0
while

{{DangerMapFormat|Notoriety=normal|Danger=dangerous}}

produces
background:#FD9;border:solid 2px #EA0
as well. I don't know why they use the more complicated template call here.

Noinclude:

{{DangerMapInstructions}}

Template:DangerMapFormat

with parameters Notoriety and Danger produces a template call to the template named Template:DangerMapnotorietydanger where notoriety is the string passed as Notoriety and danger is the string passed to Danger.

For example the template

Template:DangerMapnormaldangerous

returns the style string
background:#FD9;border:solid 2px #EA0