More actions
No edit summary |
added new section for nonexistant ship data |
||
| Line 1: | Line 1: | ||
{{#css: | |||
.tooltip-frame{ | .tooltip-frame{ | ||
position:relative; /*this is the key*/ | position:relative; /*this is the key*/ | ||
| Line 83: | Line 81: | ||
z-index: 100; | z-index: 100; | ||
} | } | ||
}}<span class='tooltip-frame'>{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}<span style='margin-left: 3px; font-size: 60%; color: yellow;'>↓</span> | }}{{#switch: {{{mode}}} | ||
|nodata=<span class='tooltip-frame'><b><i>ship data not found!</i></b><span style='margin-left: 3px; font-size: 60%; color: yellow;'>↓</span> | |||
<span class='inner-snippet ship-info' style='width: 410px;'> | |||
<span style='background-color: black; float: left; padding: 4px; width: 100%;'> | |||
<span class='l2' style='width:100%'> | |||
Wiki could not find any information related to {{{shipname}}}. You might have spelled the ship name incorrectly, or the ship entry does not exist. If you want to add new ship info for {{{shipname}}}, please read the "adding new entry to ship database" section on [[Template:Ship|this page]]. | |||
</span> | |||
</span> | |||
</span> | |||
</span> | |||
|#default=<span class='tooltip-frame'>{{#if:{{{shipname}}}|{{{shipname|Unknown Ship}}}|Unknown Ship}}<span style='margin-left: 3px; font-size: 60%; color: yellow;'>↓</span> | |||
<span class='inner-snippet ship-info' style='width: 410px;'> | <span class='inner-snippet ship-info' style='width: 410px;'> | ||
<span class='left' style='background-color: black; padding: 4px 0pt 4px 4px; width: 73px;'><span class='att-img'>{{#ifexist: File:{{{shipimg}}}|[[Image:{{{shipimg}}}|73px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]|[[Image:no-image.png|73px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]}}</span><span class='suppresslink'> </span></span> | <span class='left' style='background-color: black; padding: 4px 0pt 4px 4px; width: 73px;'><span class='att-img'>{{#ifexist: File:{{{shipimg}}}|[[Image:{{{shipimg}}}|73px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]|[[Image:no-image.png|73px|middle|{{#if:{{{shipname}}}|{{{shipname}}}|Unknown Ship}}]]}}</span><span class='suppresslink'> </span></span> | ||