Difference between revisions of "Template:Location mark+/testcases"
Jump to navigation
Jump to search
imported>Droll (tweaked) |
imported>WOSlinker (tidy style) |
||
| (3 intermediate revisions by 3 users not shown) | |||
| Line 5: | Line 5: | ||
__TOC__ | __TOC__ | ||
==Test overlay support == | ==Test overlay support == | ||
| − | {{Location mark+ | + | {| |
| + | ! current version | ||
| + | ! sandbox version | ||
| + | |- | ||
| + | |{{Location mark+ | ||
| image = Slovakia - background map.png | | image = Slovakia - background map.png | ||
| overlay = Greater Fatra (SVK) - location map.svg | | overlay = Greater Fatra (SVK) - location map.svg | ||
| Line 26: | Line 30: | ||
| y% = 50 }} | | y% = 50 }} | ||
}} | }} | ||
| + | |{{Location mark+/sandbox | ||
| + | | image = Slovakia - background map.png | ||
| + | | overlay = Greater Fatra (SVK) - location map.svg | ||
| + | | width = 300 | ||
| + | | float = left | ||
| + | | caption = Some caption | ||
| + | | alt = Slovakia alt | ||
| + | | type = thumb | ||
| + | | marks = | ||
| + | {{Location mark~ | ||
| + | | width = 300 | ||
| + | | label = Middle | ||
| + | | alt = mark alt | ||
| + | | link = | ||
| + | | position = bottom | ||
| + | | background = | ||
| + | | mark = Red pog.svg | ||
| + | | mark_width = 8 | ||
| + | | x% = 50 | ||
| + | | y% = 50 }} | ||
| + | }} | ||
| + | |} | ||
{{clear}} | {{clear}} | ||
| Line 74: | Line 100: | ||
| y = 214 }} | | y = 214 }} | ||
}} | }} | ||
| − | |{{Location map+ | | + | |{{Location map+ | USA |
| width = 300 | | width = 300 | ||
| float = left | | float = left | ||
| caption = Some locations in the U.S. | | caption = Some locations in the U.S. | ||
| places = | | places = | ||
| − | {{Location map~ | | + | {{Location map~ | USA |
| label = Four Corners | | label = Four Corners | ||
| position = bottom | | position = bottom | ||
| Line 88: | Line 114: | ||
| lon_deg = -109.0 | | lon_deg = -109.0 | ||
| link = Four Corners }} | | link = Four Corners }} | ||
| − | {{Location map~| | + | {{Location map~| USA |
| label = New York | | label = New York | ||
| position = | | position = | ||
| Line 101: | Line 127: | ||
| lon_dir = W | | lon_dir = W | ||
| alt = alt text for New York City }} | | alt = alt text for New York City }} | ||
| − | {{Location map~| | + | {{Location map~| USA |
| label = San Francisco | | label = San Francisco | ||
| position = | | position = | ||
| Line 170: | Line 196: | ||
! Location mark<br />without border | ! Location mark<br />without border | ||
|- | |- | ||
| − | | {{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|type=border|caption=Scotland|float=left}} |
| − | | {{Location mark+|width=120|image=Scottish infobox template map.png|caption=Scotland | + | | {{Location mark+|width=120|image=Scottish infobox template map.png|caption=Scotland|float=left}} |
|} | |} | ||
| Line 178: | Line 204: | ||
! File thumb<br />with caption | ! File thumb<br />with caption | ||
! File thumb<br />without caption | ! File thumb<br />without caption | ||
| − | |- | + | |- style="vertical-align:top;" |
| [[File:Scottish infobox template map.png|Scotland|left|120px|thumb|alt=alt]] | | [[File:Scottish infobox template map.png|Scotland|left|120px|thumb|alt=alt]] | ||
| [[File:Scottish infobox template map.png|left|120px|thumb|alt=alt]] | | [[File:Scottish infobox template map.png|left|120px|thumb|alt=alt]] | ||
| Line 186: | Line 212: | ||
! Location mark thumb<br />with caption | ! Location mark thumb<br />with caption | ||
! Location mark thumb<br />without caption | ! Location mark thumb<br />without caption | ||
| − | |- | + | |- style="vertical-align:top;" |
| {{Location mark+ |width=120 |image=Scottish infobox template map.png |caption=Scotland |float=left |type=thumb |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 }} | ||
Latest revision as of 14:13, 16 November 2014
| 42px | This is the template test cases page for the sandbox of Template:Location mark+. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
These are initial test cases. Output is compared to known standards.
Contents
Test overlay support
| current version | sandbox version |
|---|---|
<div class="thumbinner" style="width:Expression error: Unexpected < operator.px;"> Some caption
<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|Middle|alt=Script error: No such module "If empty".]]Some caption
|
<div class="thumbinner" style="width:Expression error: Unexpected < operator.px;"> Some caption
<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|Middle|alt=Script error: No such module "If empty".]]Some caption
|
Compare location marks to {{location map+}}
| Location mark+ | Location map+ | Location mark+ sandbox |
|---|---|---|
<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;
<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 Cornerstop: 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: 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.
|
<div class="thumbinner" style="width:Expression error: Unexpected < operator.px;"> Some locations in the U.S.
<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: 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.
|
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;
<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 Wrathtop: 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".]]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;
<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 Wrathtop: 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".]] |
Test float
- default (right)
- left
- right
- center
- none