Difference between revisions of "User:Lariat2301/SandPit"
Lariat2301 (talk | contribs) |
Lariat2301 (talk | contribs) |
||
(31 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
<noinclude>See: [[User:Lariat2301/SandPit|Sand Pit]], [[User:Lariat2301/SandBox|Sand Box]], [[User:Lariat2301/SandBox2|SandBox2]] and [[User:Lariat2301/SandBox2|SandBox3]]. | |||
__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> | |||
{| style=" | ==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}} | |||
|- | |- | ||
| | |{{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
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 | 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|}}}|}}}