Difference between revisions of "User:Lariat2301/SandPit"

From The Urban Dead Wiki
Jump to navigationJump to search
 
(23 intermediate revisions by the same user not shown)
Line 1: Line 1:
{| style="border: solid #001100 2px; text-align: center; width: 500px" {{{pos|style="border: solid #001100 2px; text-align: center; width: 500px; margin: 0 2em 0 2em"}}}
<noinclude>See: [[User:Lariat2301/SandPit|Sand Pit]], [[User:Lariat2301/SandBox|Sand Box]], [[User:Lariat2301/SandBox2|SandBox2]] and [[User:Lariat2301/SandBox2|SandBox3]].
|rowspan=2|[[Image:cash.gif|Template created by Tohrurokuno 8 Jan 08|100px]]||style="background:#005500; color: white; width: 120%"|'''Proud Sponsor of Urban Dead!'''
__TOC__</noinclude>
 
=Studying use of 'template' option in templates=
==Looking at one of [[User:The Rooster]]'s templates==
If <nowiki>{{User:MobilePhoneMastBot/DRDFormat}}</nowiki> is
<pre>
{{{suburb|Havercroft}}};{{{mast_status}}};{{{user}}}##
</pre>then
<pre>
{{User:DangerReport/Heckworthy Towers|template=User:MobilePhoneMastBot/DRDFormat|suburb=Santlerville}}
</pre>produces
{{User:DangerReport/Heckworthy Towers|template=User:MobilePhoneMastBot/DRDFormat|suburb=Santlerville}}
 
<pre>
{{User:DangerReport/Heckworthy Towers}}
</pre>produces
{{User:DangerReport/Heckworthy Towers}}
 
 
At this editing, the key portion of <nowiki>[[User:DangerReport/Heckworthy Towers]]</nowiki> is:
<pre>
|mast_status=unknown
|status=safe
|comment=Powered, and operating a radio.
|user={{User:The_Rooster/Sig}} 15:18, 24 May 2009 (BST)
</pre>
 
==Examining the StatusMap templates==
So, playing with [], which is currently:
<pre>
{| style="width:7px; height:7px; background:{{StatusMap {{{status|unknown}}}}}" | <!-- Hah! Nothing in the box! -->
|}
</pre>
 
In which case
<pre>
{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}
</pre>produces
{{User:DangerReport/Heckworthy Towers|template=User:Lariat2301/SandBox3}}
 
==Testing multiple experimental boxes==
Looking for buildings that instantiate each of the colors (skimming the [[Bic#Suburb_Building_Information_Centers|BICs]] in order):
;safe = green
{{User:DangerReport/Heckworthy Towers}}
;under attack = #EE0
{{User:DangerReport/St. Wilfrid's Hospital (Barrville)}}
;under siege = #F80
{{User:DangerReport/The Dewes Building}}
;ransacked = #BE3939
{{User:DangerReport/Calvert Mall}}
;ruined = #BE3939
{{User:DangerReport/Gerrish Place Police Department}}
;in zombie hands = red
{{User:DangerReport/The Eagan Building}}
;rebuilding = #60BF60
{{User:DangerReport/The Woolsett Building}}
;rot revive = #630
{{User:DangerReport/The Greatorex Building (Houldenbank)}}
;unknown = gray
{{User:DangerReport/The Nix Building}}
 
But those should be turned into very different colors:
{|
| style="width:75px; height:50px; background:green" | safe
| style="width:75px; height:50px; background:#EE0" | under attack
| style="width:75px; height:50px; background:#F80" | under siege
| style="width:75px; height:50px; background:#BE3939" | ransacked
| style="width:75px; height:50px; background:#BE3939" | ruined
| style="width:75px; height:50px; background:red" | in zombie hands
| style="width:75px; height:50px; background:#60BF60" | rebuilding
| style="width:75px; height:50px; background:#630" | rot revive
| 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:DarkRed" | DarkRed
| style="width:75px; height:50px; background:DarkRed" | DarkRed
| 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:
{{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}}
|-
|-
|style="font-size: 100%; width: auto" | {{{1|This user or group}}} decided to stop being a cheapskate and [[donate|donated to Urban Dead]]. So what's your excuse?
|{{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=
1: {{{test1test{{{test1test|}}}|{{{test1Result}}}}}}
2: {{{test2Result{{{test2test|}}}|}}}
<noinclude><pre>
ifdef:
1: {{{test1test{{{test1test|}}}|{{{test1Result}}}}}}
ifndef:
2: {{{test2Result{{{test2test|}}}|}}}
</pre></noinclude>

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|}}}|}}}