User:Lariat2301/SandBox

From The Urban Dead Wiki

Jump to: navigation, search

See: Sand Pit, Sand Box, SandBox2 and SandBox3.


Studying use of 'template' option in templates

Looking at one of User:The Rooster's templates

If {{User:MobilePhoneMastBot/DRDFormat}} is

{{{suburb|Havercroft}}};{{{mast_status}}};{{{user}}}##
then
{{User:DangerReport/Heckworthy Towers|template=User:MobilePhoneMastBot/DRDFormat|suburb=Santlerville}}
produces

Santlerville;nofuel;DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)##


{{User:DangerReport/Heckworthy Towers}}
produces

Mall-safe-small.jpg

Maltel-nofuel-small.jpg

Heckworthy Towers
vsb, unlit
DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)


At this editing, the key portion of [[User:DangerReport/Heckworthy Towers]] is:

|mast_status=unknown
|status=safe
|comment=Powered, and operating a radio.
|user={{User:The_Rooster/Sig}} 15:18, 24 May 2009 (BST)

Examining the StatusMap templates

So, playing with [], which is currently:

{| style="width:7px; height:7px; background:{{StatusMap {{{status|unknown}}}}}" | <!-- Hah! Nothing in the box! -->
|}

In which case

{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}
produces


Testing multiple experimental boxes

Looking for buildings that instantiate each of the colors (skimming the BICs in order):

safe = green

Mall-safe-small.jpg

Maltel-nofuel-small.jpg

Heckworthy Towers
vsb, unlit
DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)
under attack = #EE0

Mall-safe-small.jpg

St. Wilfrid's Hospital
EHB, lights are on
Danger Updater MDUDC 19:13, 19 February 2019 (UTC)
under siege = #F80

Mall-safe-small.jpg

The Dewes Building
Unlit, but safe.
DANCEDANCEREVOLUTION 01:10, 18 August 2019 (UTC)
ransacked = #BE3939

Mall-rebuilding-small.jpg

[25,9] - [26,10] (bic) (statuses) (update)
Calvert Mall
"... Calvert Mall is the only building with any lights on ..."
Bob Moncrief EBDW! 11:35, 17 October 2019 (UTC)
ruined = #BE3939

Mall-safe-small.jpg

Gerrish Place Police Department
EHB, unlit
Danger Updater MDUDC 13:28, 20 February 2019 (UTC)
in zombie hands = red

Mall-safe-small.jpg

The Eagan Building
"... the Eagan Building is being held ..."
Bob Moncrief EBDW! 01:39, 2 October 2019 (UTC)
rebuilding = #60BF60

Mall-ruined-small.jpg

The Woolsett Building
"... the Woolsett Building is out of action ..."
Bob Moncrief EBDW! 16:31, 15 November 2019 (UTC)
rot revive = #630

Mall-under attack-small.jpg

The Greatorex Building
EHB, unlit, a couple zombies outside
Danger Updater MDUDC 12:31, 23 December 2018 (UTC)
unknown = gray

Mall-safe-small.jpg

The Nix Building
"... the Nix Building is operational ..."
Bob Moncrief EBDW! 13:30, 26 October 2019 (UTC)


But those should be turned into very different colors:

safe under attack under siege ransacked ruined in zombie hands rebuilding rot revive unknown

Unfortunately, the #color format breaks the template. (Why?) So I've substituted:

green yellow orange DarkRed DarkRed red lime DarkOliveGreen gray


So using the alter-templated DangerResports, we get:


These are all slammed together on one long line. I don't know what is creating the <br> between the color boxes.

Or the spaces in the grid. But that's enough for now.

Studying ifdef and ifndef

1: mainTestTrue

2: notDefined


Should be from:
{{ User:Lariat2301/SandPit | test1test=true | test1Result=mainTestTrue | test2test= | test2Result=notDefined }}


Studying use of 'template' option in templates

Looking at one of User:The Rooster's templates

If {{User:MobilePhoneMastBot/DRDFormat}} is

{{{suburb|Havercroft}}};{{{mast_status}}};{{{user}}}##
then
{{User:DangerReport/Heckworthy Towers|template=User:MobilePhoneMastBot/DRDFormat|suburb=Santlerville}}
produces

Santlerville;nofuel;DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)##


{{User:DangerReport/Heckworthy Towers}}
produces

Mall-safe-small.jpg

Maltel-nofuel-small.jpg

Heckworthy Towers
vsb, unlit
DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)


At this editing, the key portion of [[User:DangerReport/Heckworthy Towers]] is:

|mast_status=unknown
|status=safe
|comment=Powered, and operating a radio.
|user={{User:The_Rooster/Sig}} 15:18, 24 May 2009 (BST)

Examining the StatusMap templates

So, playing with [], which is currently:

{| style="width:7px; height:7px; background:{{StatusMap {{{status|unknown}}}}}" | <!-- Hah! Nothing in the box! -->
|}

In which case

{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}
produces


Testing multiple experimental boxes

Looking for buildings that instantiate each of the colors (skimming the BICs in order):

safe = green

Mall-safe-small.jpg

Maltel-nofuel-small.jpg

Heckworthy Towers
vsb, unlit
DANCEDANCEREVOLUTION 01:13, 18 August 2019 (UTC)
under attack = #EE0

Mall-safe-small.jpg

St. Wilfrid's Hospital
EHB, lights are on
Danger Updater MDUDC 19:13, 19 February 2019 (UTC)
under siege = #F80

Mall-safe-small.jpg

The Dewes Building
Unlit, but safe.
DANCEDANCEREVOLUTION 01:10, 18 August 2019 (UTC)
ransacked = #BE3939

Mall-rebuilding-small.jpg

[25,9] - [26,10] (bic) (statuses) (update)
Calvert Mall
"... Calvert Mall is the only building with any lights on ..."
Bob Moncrief EBDW! 11:35, 17 October 2019 (UTC)
ruined = #BE3939

Mall-safe-small.jpg

Gerrish Place Police Department
EHB, unlit
Danger Updater MDUDC 13:28, 20 February 2019 (UTC)
in zombie hands = red

Mall-safe-small.jpg

The Eagan Building
"... the Eagan Building is being held ..."
Bob Moncrief EBDW! 01:39, 2 October 2019 (UTC)
rebuilding = #60BF60

Mall-ruined-small.jpg

The Woolsett Building
"... the Woolsett Building is out of action ..."
Bob Moncrief EBDW! 16:31, 15 November 2019 (UTC)
rot revive = #630

Mall-under attack-small.jpg

The Greatorex Building
EHB, unlit, a couple zombies outside
Danger Updater MDUDC 12:31, 23 December 2018 (UTC)
unknown = gray

Mall-safe-small.jpg

The Nix Building
"... the Nix Building is operational ..."
Bob Moncrief EBDW! 13:30, 26 October 2019 (UTC)


But those should be turned into very different colors:

safe under attack under siege ransacked ruined in zombie hands rebuilding rot revive unknown

Unfortunately, the #color format breaks the template. (Why?) So I've substituted:

green yellow orange DarkRed DarkRed red lime DarkOliveGreen gray


So using the alter-templated DangerResports, we get:


These are all slammed together on one long line. I don't know what is creating the <br> between the color boxes.

Or the spaces in the grid. But that's enough for now.

Studying ifdef and ifndef

1:

2:


Should be from:
{{ User:Lariat2301/SandPit | test1test= | test1Result=mainTestTrue | test2test=true | test2Result=notDefined }}
Using:
ifdef:
1: {{{test1test{{{test1test|}}}|{{{test1Result}}}}}}
ifndef:
2: {{{test2Result{{{test2test|}}}|}}}
Personal tools
project wonderful
column-okay