User:Lariat2301/SandBox
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;active;--User:Tobeon/Sig 12:05, 22nd October 2024 (UTC)##
{{User:DangerReport/Heckworthy Towers}}
produces
Heckworthy Towers --User:Tobeon/Sig 12:05, 22nd October 2024 (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
Heckworthy Towers --User:Tobeon/Sig 12:05, 22nd October 2024 (UTC)
|
- under attack = #EE0
St. Wilfrid's Hospital |
- under siege = #F80
The Dewes Building |
- ransacked = #BE3939
Calvert Mall EHB, lit. AndyMatthews (talk) 03:52, 25 October 2024 (UTC)
|
- ruined = #BE3939
Gerrish Place Police Department |
- in zombie hands = red
The Eagan Building |
- rebuilding = #60BF60
The Woolsett Building |
- rot revive = #630
The Greatorex Building "... lights are on in the Greatorex Building ..." |
- unknown = gray
The Nix Building |
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;active;--User:Tobeon/Sig 12:05, 22nd October 2024 (UTC)##
{{User:DangerReport/Heckworthy Towers}}
produces
Heckworthy Towers --User:Tobeon/Sig 12:05, 22nd October 2024 (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
Heckworthy Towers --User:Tobeon/Sig 12:05, 22nd October 2024 (UTC)
|
- under attack = #EE0
St. Wilfrid's Hospital |
- under siege = #F80
The Dewes Building |
- ransacked = #BE3939
Calvert Mall EHB, lit. AndyMatthews (talk) 03:52, 25 October 2024 (UTC)
|
- ruined = #BE3939
Gerrish Place Police Department |
- in zombie hands = red
The Eagan Building |
- rebuilding = #60BF60
The Woolsett Building |
- rot revive = #630
The Greatorex Building "... lights are on in the Greatorex Building ..." |
- unknown = gray
The Nix Building |
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|}}}|}}}