Difference between revisions of "User:Wantok/sandbox"
(revise loadout syntax) |
(add test cases for #ifexist) |
||
| Line 1: | Line 1: | ||
| − | + | '''Test case for [[Template:Infobox Aircraft]]''' | |
| − | |||
| − | |||
| − | |||
| − | Test case for [[Template:Infobox Aircraft]] | ||
{{Infobox Aircraft | {{Infobox Aircraft | ||
| Line 33: | Line 29: | ||
|carrier =no | |carrier =no | ||
}} | }} | ||
| + | |||
| + | '''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="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> | ||
| + | |||
| + | |||
| + | '''test cases for #ifexist:''' | ||
| + | |||
| + | *ifexist 1|Documentation/docname....{{#ifexist: {{{1|{{Documentation/docname}}}}}|EXISTS|no dice}} | ||
| + | *ifexist Documentation/docname....{{#ifexist: {{Documentation/docname}}|EXISTS|no dice}} | ||
| + | *ifexist Template:Infobox Aircraft/doc....{{#ifexist: Template:Infobox Aircraft/doc|EXISTS|no dice}} | ||
| + | *ifexist Template:Infobox Aircraft....{{#ifexist: Template:Infobox Aircraft|EXISTS|no dice}} | ||
| + | *ifexist Culture.... {{#ifexist:Culture|EXISTS|no dice}} | ||
| + | *if: 0 {{ #if: 0 | true | false }} | ||
| + | *if: {{ #if: | true | false }} | ||
Revision as of 07:12, 22 April 2008
Test case for Template:Infobox Aircraft
| World War 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 |
| 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: 0 true
- if: false