User:Lariat2301/SandPit: Difference between revisions
From The Urban Dead Wiki
Jump to navigationJump to search
Lariat2301 (talk | contribs) No edit summary |
Lariat2301 (talk | contribs) No edit summary |
||
Line 61: | Line 61: | ||
{{User:DangerReport/The Nix Building}} | {{User:DangerReport/The Nix Building}} | ||
But those | But those should be turned into very different colors: | ||
{| | {| | ||
| style="width:75px; height:50px; background:green" | safe | | style="width:75px; height:50px; background:green" | safe | ||
Line 73: | Line 73: | ||
| style="width:75px; height:50px; background:gray" | unknown | | style="width:75px; height:50px; background:gray" | unknown | ||
|} | |} | ||
Unfortunately, the #color format breaks the template. '''(Why?)''' So I've substituted: | |||
{| | |||
| style="width:75px; height:50px; background:green" | green | |||
| style="width:75px; height:50px; background:yellow" | yellow | |||
| style="width:75px; height:50px; background:orange" | orange | |||
| style="width:75px; height:50px; background:DarkSlateGray" | DarkSlateGray | |||
| style="width:75px; height:50px; background:DarkSlateGray" | DarkSlateGray | |||
| style="width:75px; height:50px; background:red" | red | |||
| style="width:75px; height:50px; background:lime" | lime | |||
| style="width:75px; height:50px; background:DarkOliveGreen" | DarkOliveGreen | |||
| style="width:75px; height:50px; background:gray" | gray | |||
|} | |||
So using the alter-templated DangerResports, we get: | So using the alter-templated DangerResports, we get: |
Revision as of 17:57, 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
Heckworthy Towers unknown |
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 unknown |
- under attack = #EE0
St. Wilfrid's Hospital "... flying over Barrville ... can't see a single ruined building" |
- under siege = #F80
The Dewes Building "... the Dewes Building is operational ..." (10 August 2021) Soccerfan667 (talk) 09:49, 13 August 2021 (UTC)
|
- ransacked = #BE3939
Calvert Mall "... Calvert Mall is operational ..." BoogieDinosaur (talk) 16:24, 15 June 2023 (UTC)
|
- ruined = #BE3939
Gerrish Place Police Department Last update January 2022 |
- in zombie hands = red
The Eagan Building Last update October 2021 |
- rebuilding = #60BF60
The Woolsett Building "... lights are on in the Woolsett Building ..." |
- rot revive = #630
The Greatorex Building "... lights are on in the Greatorex Building ..." |
- unknown = gray
The Nix Building "... the Nix Building is operational ..." |
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 | DarkSlateGray | DarkSlateGray | red | lime | DarkOliveGreen | gray |
So using the alter-templated DangerResports, we get:
Studying ifdef and ifndef
1: {{{test1Result}}}
2:
ifdef: 1: {{{test1test{{{test1test|}}}|{{{test1Result}}}}}} ifndef: 2: {{{test2Result{{{test2test|}}}|}}}