User:Lariat2301/SandPit: Difference between revisions

From The Urban Dead Wiki
Jump to navigationJump to search
No edit summary
No edit summary
 
(One intermediate revision by the same user not shown)
Line 79: Line 79:
| style="width:75px; height:50px; background:yellow" | yellow
| style="width:75px; height:50px; background:yellow" | yellow
| style="width:75px; height:50px; background:orange" | orange
| style="width:75px; height:50px; background:orange" | orange
| style="width:75px; height:50px; background:DarkSlateGray" | DarkSlateGray
| style="width:75px; height:50px; background:DarkRed" | DarkRed
| style="width:75px; height:50px; background:DarkSlateGray" | DarkSlateGray
| style="width:75px; height:50px; background:DarkRed" | DarkRed
| style="width:75px; height:50px; background:red" | red
| style="width:75px; height:50px; background:red" | red
| style="width:75px; height:50px; background:lime" | lime
| style="width:75px; height:50px; background:lime" | lime
Line 90: Line 90:
So using the alter-templated DangerResports, we get:
So using the alter-templated DangerResports, we get:
{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}{{User:DangerReport/St. Wilfrid's Hospital (Barrville)|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Dewes Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/Calvert Mall|template=User:Lariat2301/SandBox3}}{{User:DangerReport/Gerrish Place Police Department|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Eagan Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Woolsett Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Greatorex Building (Houldenbank)|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Nix Building|template=User:Lariat2301/SandBox3}}
{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}{{User:DangerReport/St. Wilfrid's Hospital (Barrville)|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Dewes Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/Calvert Mall|template=User:Lariat2301/SandBox3}}{{User:DangerReport/Gerrish Place Police Department|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Eagan Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Woolsett Building|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Greatorex Building (Houldenbank)|template=User:Lariat2301/SandBox3}}{{User:DangerReport/The Nix Building|template=User:Lariat2301/SandBox3}}
These are all slammed together on one long line. I don't know what is creating the <nowiki><br></nowiki> between the color boxes.
{|
|{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/St. Wilfrid's Hospital (Barrville)|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/The Dewes Building|template=User:Lariat2301/SandBox3}}
|-
|{{User:DangerReport/Calvert Mall|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/Gerrish Place Police Department|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/The Eagan Building|template=User:Lariat2301/SandBox3}}
|-
|{{User:DangerReport/The Woolsett Building|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/The Greatorex Building (Houldenbank)|template=User:Lariat2301/SandBox3}}
|{{User:DangerReport/The Nix Building|template=User:Lariat2301/SandBox3}}
|}
Or the spaces in the grid. But that's enough for now.


=Studying ifdef and ifndef=
=Studying ifdef and ifndef=

Latest revision as of 18:04, 11 June 2009

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;unknown;MR2Di4 (talk) 07:46, 21 July 2022 (UTC)##


{{User:DangerReport/Heckworthy Towers}}

produces

Mall-safe-small.jpg

Maltel-unknown-small.jpg

Heckworthy Towers
unknown
MR2Di4 (talk) 07:46, 21 July 2022 (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-unknown-small.jpg

Heckworthy Towers
unknown
MR2Di4 (talk) 07:46, 21 July 2022 (UTC)
under attack = #EE0

Mall-safe-small.jpg

St. Wilfrid's Hospital
"... flying over Barrville ... can't see a single ruined building"
Mallrat The Spanish Inquisition TSI The Kilt Store TKS Clubbed to Death CTD 10:02, 14 January 2023 (UTC)
under siege = #F80

Mall-safe-small.jpg

The Dewes Building
"... the Dewes Building is operational ..." (10 August 2021)
Soccerfan667 (talk) 09:49, 13 August 2021 (UTC)
ransacked = #BE3939

Mall-safe-small.jpg

[25,9] - [26,10] (bic) (statuses) (update)
Calvert Mall
"... Calvert Mall is operational ..."
BoogieDinosaur (talk) 16:24, 15 June 2023 (UTC)
ruined = #BE3939

Mall-unknown-small.jpg

Gerrish Place Police Department
Last update January 2022
Zashiya (talk) 20:01, 26 April 2023 (UTC)
in zombie hands = red

Mall-unknown-small.jpg

The Eagan Building
Last update October 2021
Zashiya (talk) 19:51, 26 April 2023 (UTC)
rebuilding = #60BF60

Mall-safe-small.jpg

The Woolsett Building
"... lights are on in the Woolsett Building ..."
--Mallrat The Spanish Inquisition TSI The Kilt Store TKS Clubbed to Death CTD 12:51, 27 June 2023 (UTC)
rot revive = #630

Mall-safe-small.jpg

The Greatorex Building
"... lights are on in the Greatorex Building ..."
Zashiya (talk) 17:12, 10 June 2023 (UTC)
unknown = gray

Mall-safe-small.jpg

The Nix Building
"... the Nix Building is operational ..."
--Mallrat The Spanish Inquisition TSI The Kilt Store TKS Clubbed to Death CTD 10:49, 22 June 2023 (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: {{{test1Result}}}

2:

ifdef:
1: {{{test1test{{{test1test|}}}|{{{test1Result}}}}}}

ifndef:
2: {{{test2Result{{{test2test|}}}|}}}