Difference between revisions of "User:Wantok/sandbox"

From AHWiki
Jump to: navigation, search
(sandbox for building templates etc)
 
(update template name)
 
(11 intermediate revisions by the same user not shown)
Line 1: Line 1:
−
Beginnings of a template for aircraft:
+
<div style="text-align:right">'''Test case for [[Template:Infobox AH Aircraft]]'''</div>
  
−
{| align="right" style="border:1px solid #B5BFA7"
+
{{Infobox AH Aircraft
−
|-
+
|name        =P38-L
−
| colspan="2" style="font-size:86%;font-weight:normal;text-align:center" | Aces High II aircraft
+
|image        =P38l.jpg
−
|-
+
|type        =Fighter/attacker
−
| colspan="2" style="font-weight:bold;text-align:center;background-color:#C0AD7F" | P-38 Lightning
+
|variantof    =[[P-38 Lightning]]
−
|-
+
|country      =USA
−
| Country of origin:|| USA
+
|manufacturer =Lockheed
−
|-
+
|crew        =Single-seat
−
| align="right" | Crew:|| Single-seat  
+
|wingspan    =52'
−
|-
+
|length      =37'10"
−
| align="right" |Type:|| Fighter/attacker
+
|height      =9'10"
−
|-
+
|internalfuel =410 gallons
−
| align="right" |Dimensions:|| Wing span 52'
+
|loadout1-1   =4x [[M2 Browning machine gun|.50 Cal M2]] 500 rpg
−
|-
+
|loadout1-2  =1x 20 mm M2 150 rpg
−
| ||Length 37'10"
+
|loadout2-1  =4x [[M2 Browning machine gun|.50 Cal M2]] 200 rpg
−
|-
+
|loadout2-2  =1x 20 mm M2 150 rpg
−
| ||Height 9'10"
+
|options1    =10x HVAR 5" Rockets
−
|-
+
|options2    =2x 250 lb bombs  
−
| ||Internal fuel: 410 gallons
+
|options3    =2x 500 lb bombs
−
|-
+
|options4    =2x 1,000 lb bombs
−
| align="right" |Armament:|| 4x [[M2 Browning machine gun|.50 Cal M2]]
+
|options5    =2x 150 gallon drop tanks
−
|-
+
|options6    =1x 150 gallon drop tank
−
| ||1 20mm M2
+
|options7    =1x 1K bomb + 1 drop tank
−
|-
+
|earliestMA  =[[Late war]]
−
| align="center" colspan="2" style="background-color:#B5BFA7" | AH Loadout options
+
|perkcost    =0
−
|-
+
|LWENY        =20
−
| align="right" | Package 1 || 4x [[M2 Browning machine gun|.50 Cal M2]] 500 rpg
+
|carrier      =no
−
|-
+
}}
−
| || 1x 20 mm M2 150 rpg
+
 
−
|-
+
'''Link colours:'''
−
| align="right" | Package 2 || 4x [[M2 Browning machine gun|.50 Cal M2]] 200 rpg
+
 
−
|-
+
<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.
−
| || 1x 20 mm M2 150 rpg
+
 
−
|-
+
<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>
−
| align="right" | Options || 10x HVAR 5" Rockets
+
</div>
−
|-
+
 
−
| ||2 250 lb bombs  
+
 
−
|-
+
'''Test cases for #ifexist:'''
−
| ||2 500 lb bombs
+
 
−
|-
+
*ifexist 1|Documentation/docname....{{#ifexist: {{{1|{{Documentation/docname}}}}}|EXISTS|no dice}}
−
| ||2 1,000 lb bombs
+
*ifexist Documentation/docname....{{#ifexist: {{Documentation/docname}}|EXISTS|no dice}}
−
|-
+
*ifexist Template:Infobox Aircraft/doc....{{#ifexist: Template:Infobox Aircraft/doc|EXISTS|no dice}}
−
| ||2 150 gallon drop tanks
+
*ifexist Template:Infobox Aircraft....{{#ifexist: Template:Infobox Aircraft|EXISTS|no dice}}
−
|-
+
*ifexist Culture.... {{#ifexist:Culture|EXISTS|no dice}}
−
| ||1 150 gallon drop tank
+
*if: 1 {{ #if: 1 | true | false }} (should be true)
−
|-
+
*if: 0 {{ #if: 0 | true | false }} (should be true)
−
| ||1 1K bomb + 1 drop tank
+
*if: {{ #if:  | true | false }} (should be false)
−
|}
 

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)