Difference between revisions of "User:Wantok/sandbox"
(add test cases for #ifexist) |
(update template name) |
||
| Line 1: | Line 1: | ||
| − | '''Test case for [[Template:Infobox Aircraft]]''' | + | <div style="text-align:right">'''Test case for [[Template:Infobox AH Aircraft]]'''</div> |
| − | {{Infobox Aircraft | + | {{Infobox AH Aircraft |
|name =P38-L | |name =P38-L | ||
|image =P38l.jpg | |image =P38l.jpg | ||
| Line 30: | Line 30: | ||
}} | }} | ||
| − | ''' | + | '''Link colours:''' |
<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. | <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. | ||
| Line 38: | Line 38: | ||
| − | ''' | + | '''Test cases for #ifexist:''' |
*ifexist 1|Documentation/docname....{{#ifexist: {{{1|{{Documentation/docname}}}}}|EXISTS|no dice}} | *ifexist 1|Documentation/docname....{{#ifexist: {{{1|{{Documentation/docname}}}}}|EXISTS|no dice}} | ||
| Line 45: | Line 45: | ||
*ifexist Template:Infobox Aircraft....{{#ifexist: Template:Infobox Aircraft|EXISTS|no dice}} | *ifexist Template:Infobox Aircraft....{{#ifexist: Template:Infobox Aircraft|EXISTS|no dice}} | ||
*ifexist Culture.... {{#ifexist:Culture|EXISTS|no dice}} | *ifexist Culture.... {{#ifexist:Culture|EXISTS|no dice}} | ||
| − | *if: 0 {{ #if: 0 | true | false }} | + | *if: 1 {{ #if: 1 | true | false }} (should be true) |
| − | *if: {{ #if: | true | false }} | + | *if: 0 {{ #if: 0 | true | false }} (should be true) |
| + | *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 | |
| 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)