Difference between revisions of "Template:Location mark+/testcases"

From blackwiki
Jump to navigation Jump to search
imported>Droll
(tweaked)
 
imported>Droll
(updated)
Line 16: Line 16:
 
| caption = Some locations in the U.S.
 
| caption = Some locations in the U.S.
 
| alt = Map of the U.S.
 
| alt = Map of the U.S.
| thumb = 1
+
| type = thumb
 
| marks =
 
| marks =
 
   {{Location mark~
 
   {{Location mark~
Line 107: Line 107:
 
! Location mark<br />without border
 
! Location mark<br />without border
 
|-
 
|-
| {{Location mark+|width=120| image=Scottish infobox template map.png|border=1|caption=Scotland|float=left}}
+
| {{Location mark+|width=120| image=Scottish infobox template map.png|type=border|caption=Scotland|float=left}}
 
| {{Location mark+|width=120|image=Scottish infobox template map.png|caption=Scotland|width=120|float=left}}
 
| {{Location mark+|width=120|image=Scottish infobox template map.png|caption=Scotland|width=120|float=left}}
 
|}
 
|}
Line 124: Line 124:
 
! Location mark thumb<br />without caption
 
! Location mark thumb<br />without caption
 
|- valign="top"
 
|- valign="top"
| {{Location mark+ |width=120 |image=Scottish infobox template map.png |caption=Scotland |float=left |thumb=1 |marks =
+
| {{Location mark+ |width=120 |image=Scottish infobox template map.png |caption=Scotland |float=left |type=thumb |marks =
 
   {{Location mark~ |width=120 |position=top |label=Cape Wrath |mark_width=7 |x=391 |y=478 }}
 
   {{Location mark~ |width=120 |position=top |label=Cape Wrath |mark_width=7 |x=391 |y=478 }}
 
   }}
 
   }}
| {{Location mark+ |width=120 |image=Scottish infobox template map.png |alt=Scotland |float=left |thumb=1 |marks =
+
| {{Location mark+ |width=120 |image=Scottish infobox template map.png |alt=Scotland |float=left |type=thumb |marks =
 
   {{Location mark~ |width=120 |position=top |label=Cape Wrath |mark_width=7 |x=391 |y=478 }}
 
   {{Location mark~ |width=120 |position=top |label=Cape Wrath |mark_width=7 |x=391 |y=478 }}
 
   }}
 
   }}
Line 134: Line 134:
 
==Test float==
 
==Test float==
 
;default (right)
 
;default (right)
{{Location mark+ |image=Scottish infobox template map.png |thumb=1 |caption=Scotland |width=120}}
+
{{Location mark+ |image=Scottish infobox template map.png |type=thumb |caption=Scotland |width=120}}
 
{{clear}}
 
{{clear}}
  
 
;left
 
;left
{{Location mark+ |image=Scottish infobox template map.png |thumb=1 |caption=Scotland |width=120 |float=left}}
+
{{Location mark+ |image=Scottish infobox template map.png |type=thumb |caption=Scotland |width=120 |float=left}}
 
{{clear}}
 
{{clear}}
  
 
;right
 
;right
{{Location mark+ |image=Scottish infobox template map.png |thumb=1 |caption=Scotland |width=120 |float=right}}
+
{{Location mark+ |image=Scottish infobox template map.png |type=thumb |caption=Scotland |width=120 |float=right}}
 
{{clear}}
 
{{clear}}
  
 
;center
 
;center
{{Location mark+ |image=Scottish infobox template map.png |thumb=1 |caption=Scotland |width=120 |float=center}}
+
{{Location mark+ |image=Scottish infobox template map.png |type=thumb |caption=Scotland |width=120 |float=center}}
 
{{clear}}
 
{{clear}}
  
 
;none
 
;none
{{Location mark+ |image=Scottish infobox template map.png |thumb=1 |caption=Scotland |width=120 |float=none}}
+
{{Location mark+ |image=Scottish infobox template map.png |type=thumb |caption=Scotland |width=120 |float=none}}
 
{{clear}}
 
{{clear}}

Revision as of 08:00, 26 July 2011

These are initial test cases. Output is compared to known standards.

Compare location marks to {{location map+}}

Location mark+ Location map+
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Some locations in the U.S.<div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
 top:  Expression error: Unexpected < operator.px;
 left: Expression error: Unexpected < operator.px; ">
 <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
 width: Script error: No such module "If empty".px;
 left: -Expression error: Unexpected < operator.px;
top: -Expression error: Unexpected < operator.px;">[[File:Script error: No such module "If empty".|Script error: No such module "If empty".px|Four Corners|alt=Script error: No such module "If empty".|link=Script error: No such module "If empty".]]
<div style="position: relative; z-index: 4; font-size: Script error: No such module "If empty".%; line-height: 111%; width: 6em; top: -0.15em; left: -3em; text-align: center;">Four Corners
 <div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
 top:  Expression error: Unexpected < operator.px;
 left: Expression error: Unexpected < operator.px; ">
 <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
 width: Script error: No such module "If empty".px;
 left: -Expression error: Unexpected < operator.px;
top: -Expression error: Unexpected < operator.px;">[[File:Script error: No such module "If empty".|Script error: No such module "If empty".px|San Francisco|alt=Script error: No such module "If empty".]]<div style="position: relative; z-index: 4; font-size: Script error: No such module "If empty".%; line-height: 111%; width: 6em; Expression error: Unexpected < operator.">San Francisco
 <div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
 top:  Expression error: Unexpected < operator.px;
 left: Expression error: Unexpected < operator.px; ">
 <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
 width: Script error: No such module "If empty".px;
 left: -Expression error: Unexpected < operator.px;
top: -Expression error: Unexpected < operator.px;">[[File:Script error: No such module "If empty".|Script error: No such module "If empty".px|New York|alt=Script error: No such module "If empty".]]<div style="position: relative; z-index: 4; font-size: Script error: No such module "If empty".%; line-height: 111%; width: 6em; Expression error: Unexpected < operator.">New York
Some locations in the U.S.
Some locations in the U.S.

Test frame and border

Unframed

File syntax
with border
File syntax
without border
Location mark
with border
Location mark
without border
 <div  style="width:Expression error: Unexpected < operator.px;">
 <div  style="width:Script error: No such module "If empty".px;">

Thumbs

File thumb
with caption
File thumb
without caption
Location mark thumb
with caption
Location mark thumb
without caption
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland<div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
 top:  Expression error: Unexpected < operator.px;
 left: Expression error: Unexpected < operator.px; ">
 <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
 width: Script error: No such module "If empty".px;
 left: -Expression error: Unexpected < operator.px;
top: -Expression error: Unexpected < operator.px;">[[File:Script error: No such module "If empty".|Script error: No such module "If empty".px|Cape Wrath|alt=Script error: No such module "If empty".]]
<div style="position: relative; z-index: 4; font-size: Script error: No such module "If empty".%; line-height: 111%; width: 6em; top: -2.65em; left: -3em; text-align: center;">Cape Wrath
Scotland
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
File:Scottish infobox template map.png<div style="position: absolute; z-index: 2; height: 0; width: 0; margin: 0; padding: 0;
 top:  Expression error: Unexpected < operator.px;
 left: Expression error: Unexpected < operator.px; ">
 <div style="position: relative; z-index: 3; line-height: 0; text-align: center;
 width: Script error: No such module "If empty".px;
 left: -Expression error: Unexpected < operator.px;
top: -Expression error: Unexpected < operator.px;">[[File:Script error: No such module "If empty".|Script error: No such module "If empty".px|Cape Wrath|alt=Script error: No such module "If empty".]]
<div style="position: relative; z-index: 4; font-size: Script error: No such module "If empty".%; line-height: 111%; width: 6em; top: -2.65em; left: -3em; text-align: center;">Cape Wrath

Test float

default (right)
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland
left
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland
right
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland
center
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland
none
 <div class="thumbinner" style="width:Expression error: Unexpected < operator.px;">
Scotland