Difference between revisions of "User:Wantok/sandbox"

From AHWiki
Jump to: navigation, search
(expand template test data)
(update template name)
 
(5 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
Here's some text against the normal darker background that includes an [[Cloud Editor|unvisited link]] or [[Cloud Editor|two]] and also a link to a [[blah|non-existent page]] as well as a link to a [[Aircraft of Aces HighII|visited page]], and [[Aircraft of Aces HighII|another one]].  Oh, and don't forget the [http://www.hitechcreations.com/ external link] too.
+
<div style="text-align:right">'''Test case for [[Template:Infobox AH Aircraft]]'''</div>
  
−
<div style="background-color:#FFFFEA;border:1px solid #000000;padding:0.7em">Here's some text against the lighter background that includes an [[Cloud Editor|unvisited link]] or [[Cloud Editor|two]] and also a link to a [[blah|non-existent page]] as well as a link to a [[Aircraft of Aces HighII|visited page]], and [[Aircraft of Aces HighII|another one]].  Oh, and don't forget the [http://www.hitechcreations.com/ external link] too.</div>
+
{{Infobox AH Aircraft
 +
|name        =P38-L
 +
|image        =P38l.jpg
 +
|type        =Fighter/attacker
 +
|variantof    =[[P-38 Lightning]]
 +
|country      =USA
 +
|manufacturer =Lockheed
 +
|crew        =Single-seat
 +
|wingspan    =52'
 +
|length      =37'10"
 +
|height      =9'10"
 +
|internalfuel =410 gallons
 +
|loadout1-1  =4x [[M2 Browning machine gun|.50 Cal M2]] 500 rpg
 +
|loadout1-2  =1x 20 mm M2 150 rpg
 +
|loadout2-1  =4x [[M2 Browning machine gun|.50 Cal M2]] 200 rpg
 +
|loadout2-2  =1x 20 mm M2 150 rpg
 +
|options1    =10x HVAR 5" Rockets
 +
|options2    =2x 250 lb bombs
 +
|options3    =2x 500 lb bombs
 +
|options4    =2x 1,000 lb bombs
 +
|options5    =2x 150 gallon drop tanks
 +
|options6    =1x 150 gallon drop tank
 +
|options7    =1x 1K bomb + 1 drop tank
 +
|earliestMA  =[[Late war]]
 +
|perkcost    =0
 +
|LWENY        =20
 +
|carrier      =no
 +
}}
  
 +
'''Link colours:'''
  
−
Beginnings of a template for aircraft:
+
<div style="width:35em">Here's some text against the normal darker background that includes an [[Cloud Editor|unvisited link]] or [[Cloud Editor|two]] and also a link to a [[blah|non-existent page]] as well as a link to a [[Aircraft of Aces HighII|visited page]], and [[Aircraft of Aces HighII|another one]].  Oh, and don't forget the [http://www.hitechcreations.com/ external link] too.
  
−
{| align="right" style="border:1px solid #B5BFA7;margin-left:1em;background-color:#EFEFE0;font-size:0.9em;"
+
<div style="background-color:#FFFFEA;border:1px solid #000000;padding:0.7em">Here's some text against the lighter background that includes an [[Cloud Editor|unvisited link]] or [[Cloud Editor|two]] and also a link to a [[blah|non-existent page]] as well as a link to a [[Aircraft of Aces HighII|visited page]], and [[Aircraft of Aces HighII|another one]].  Oh, and don't forget the [http://www.hitechcreations.com/ external link] too.</div>
−
|-
+
</div>
−
| colspan="2" style="text-align:center;color:#9EA792" | Aces High II aircraft
 
−
|-
 
−
| colspan="2" style="text-align:center;background-color:#C0AD7F;font-size:1.2em;" | '''P-38L'''
 
−
|-
 
−
| colspan="2" style="text-align:center; |[[Image:P38l.jpg|225px|P-38L]]
 
−
|-
 
−
| align="right" |'''Variant of:'''|| [[P-38 Lightning]]
 
−
|-
 
−
| align="right" |'''Type:'''|| Fighter/attacker
 
−
|-
 
−
| align="right" |'''Manufacturer:'''|| Lockheed
 
−
|-
 
−
| align="right" |'''Country of origin:'''|| USA
 
−
|-
 
−
| align="right" |'''Crew:'''|| Single-seat
 
−
|-
 
−
| align="right" valign="top" |'''Dimensions:'''|| Wing span 52'<br/>Length 37'10"<br/>Height 9'10"
 
−
|-
 
−
| align="right" |'''Internal fuel:'''|| 410 gallons
 
−
|-
 
−
| align="right" |'''Armament:'''|| 4x [[M2 Browning machine gun|.50 Cal M2]]
 
−
|-
 
−
| ||1x 20mm M2
 
−
|-
 
−
| align="center" colspan="2" style="background-color:#B5BFA7" | Aces High II loadout options
 
−
|-
 
−
| align="right" valign="top" | Package 1 || 4x [[M2 Browning machine gun|.50 Cal M2]] 500 rpg
 
−
|-
 
−
| ||1x 20 mm M2 150 rpg
 
−
|-
 
−
| align="right" valign="top" | Package 2 || 4x [[M2 Browning machine gun|.50 Cal M2]] 200 rpg
 
−
|-
 
−
| ||1x 20 mm M2 150 rpg
 
−
|-
 
−
| align="right" valign="top" | Options || 10x HVAR 5" Rockets
 
−
|-
 
−
| ||2x 250 lb bombs
 
−
|-
 
−
| ||2x 500 lb bombs
 
−
|-
 
−
| ||2x 1,000 lb bombs
 
−
|-
 
−
| ||2x 150 gallon drop tanks
 
−
|-
 
−
| ||1x 150 gallon drop tank
 
−
|-
 
−
| ||1x 1K bomb + 1 drop tank
 
−
|-
 
−
| align="center" colspan="2" style="background-color:#B5BFA7" | Aces High II [[Main arenas]]
 
−
|-
 
−
| align="right" |Earliest [[MA]]: || [[Early war]]
 
−
|-
 
−
| align="right" |[[Perk points]] cost: || 0
 
−
|-
 
−
| align="right" |[[Late war]] [[ENY value]]: || 20 (typical)
 
−
|-
 
−
| align="right" |Available on carrier: || no
 
−
|}
 
  
  
−
testing Template:Infobox Aircraft:
+
'''Test cases for #ifexist:'''
  
−
{{Infobox Aircraft
+
*ifexist 1|Documentation/docname....{{#ifexist: {{{1|{{Documentation/docname}}}}}|EXISTS|no dice}}
−
|name=P38-L
+
*ifexist Documentation/docname....{{#ifexist: {{Documentation/docname}}|EXISTS|no dice}}
−
|image=Image:P38l.jpg
+
*ifexist Template:Infobox Aircraft/doc....{{#ifexist: Template:Infobox Aircraft/doc|EXISTS|no dice}}
−
|type=Fighter/attacker
+
*ifexist Template:Infobox Aircraft....{{#ifexist: Template:Infobox Aircraft|EXISTS|no dice}}
−
|variantof=[[P-38 Lightning]]
+
*ifexist Culture.... {{#ifexist:Culture|EXISTS|no dice}}
−
|country=USA
+
*if: 1 {{ #if: 1 | true | false }} (should be true)
−
|manufacturer=Lockheed
+
*if: 0 {{ #if: 0 | true | false }} (should be true)
−
|crew=Single-seat
+
*if: {{ #if:  | true | false }} (should be false)
−
|wingspan=52'
 
−
|length=37'10"
 
−
|height=9'10"
 
−
|internalfuel=410 gallons
 
−
|loadout1=4x [[M2 Browning machine gun|.50 Cal M2]] 500 rpg<br/>1x 20 mm M2 150 rpg
 
−
|loadout2=4x [[M2 Browning machine gun|.50 Cal M2]] 200 rpg<br/>1x 20 mm M2 150 rpg
 
−
|options1=10x HVAR 5" Rockets
 
−
|options2=2x 250 lb bombs
 
−
|options3=2x 500 lb bombs
 
−
|options4=2x 1,000 lb bombs
 
−
|options5=2x 150 gallon drop tanks
 
−
|options6=1x 150 gallon drop tank
 
−
|options7=1x 1K bomb + 1 drop tank
 
−
|earliestMA=[[Early war]]
 
−
|perkcost=0
 
−
|LWENY=20
 
−
|carrier=no
 
−
}}
 

Latest revision as of 11:19, 25 April 2008

Test case for Template:Infobox AH Aircraft
Aces High II aircraft
P38-L
P38-L
Variant of P-38 Lightning
Type Fighter/attacker
Country of origin USA
Manufacturer Lockheed
Crew Single-seat
Dimensions Wing span 52'
Length 37'10"
Height 9'10"
Internal fuel 410 gallons
Aces High II loadout options
Package 1 4x .50 Cal M2 500 rpg
1x 20 mm M2 150 rpg
Package 2 4x .50 Cal M2 200 rpg
1x 20 mm M2 150 rpg
Options 10x HVAR 5" Rockets
2x 250 lb bombs
2x 500 lb bombs
2x 1,000 lb bombs
2x 150 gallon drop tanks
1x 150 gallon drop tank
1x 1K bomb + 1 drop tank
Aces High II Main Arenas
Earliest MA Late War
Typical perk cost 0 (Late War)
ENY value 20 (Late War)
Available on carrier no
how to edit


Link colours:

Here's some text against the normal darker background that includes an unvisited link or two and also a link to a non-existent page as well as a link to a visited page, and another one. Oh, and don't forget the external link too.
Here's some text against the lighter background that includes an unvisited link or two and also a link to a non-existent page as well as a link to a visited page, and another one. Oh, and don't forget the external link too.


Test cases for #ifexist:

  • ifexist 1|Documentation/docname....no dice
  • ifexist Documentation/docname....no dice
  • ifexist Template:Infobox Aircraft/doc....EXISTS
  • ifexist Template:Infobox Aircraft....EXISTS
  • ifexist Culture.... EXISTS
  • if: 1 true (should be true)
  • if: 0 true (should be true)
  • if: false (should be false)