Template:Tmbox/core

From TrainzOnline
(Difference between revisions)
Jump to: navigation, search
(fix later-)
(gut for now)
Line 1: Line 1:
<table class="plainlinks tmbox <!--{{#ifeq:{{{small}}}|yes|mbox-small}}
+
<table class="plainlinks tmbox tmbox-notice {{{class|CCC}}}" style="{{{style|SSS}}}">
--XXX> {{#switch:{{{type|}}}
+
<tr><td class="mbox-image">
| speedy    = tmbox-speedy
+
[[File:Information icon4.svg|40x40px|link=|alt=]]</td>
| warning <!-- deprecated --XXX>
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
| serious <!-- deprecated --XXX>
+
| delete    = tmbox-delete
+
| content    = tmbox-content
+
| style      = tmbox-style
+
| move      = tmbox-move
+
| protection = tmbox-protection
+
| notice         <!-- notice = default --XXX>
+
| #default  = tmbox-notice
+
}} XXX--> {{{class|CCC}}}" style="{{{style|SSS}}}">
+
<tr><!--- XXX
+
{{#ifeq:{{{image|}}}|none
+
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --XXX><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>
+
|.else show image... XXX---><td class="mbox-image">tmbox-notice<!---XXX
+
  {{#if:{{{image|}}}
+
  | {{{image}}}
+
  | [[File:{{#switch:{{{type|}}}
+
    | speedy    = Ambox warning pn.svg
+
    | warning <!-- deprecated --XXX>
+
    | serious <!-- deprecated --XXX>
+
    | delete    = Ambox warning pn.svg
+
    | content    = Ambox Content.svg
+
    | style      = Edit-clear.svg
+
    | move      = Merge-split-transwiki default.svg
+
    | protection = Padlock-silver-medium.svg
+
    | notice          <!-- notice = default --XXX>
+
    | #default  = Information icon4.svg
+
    }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}}|link=|alt=]]
+
  }}XXX--->
+
[[File:Information icon4.svg|40x40px|link=|alt=]]</td><!--XXX
+
XXX ---}} XXX--->
+
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td><!--XXX
+
{{#if:{{{imageright|}}}
+
| {{#ifeq:{{{imageright|}}}|none
+
  | <!-- No image. -->
+
  | <td class="mbox-imageright"> {{{imageright}}} </td>
+
  }}
+
}} -- XXX-->
+
 
</tr>
 
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
+
</table><noinclude>
--XXX>{{#switch:{{{type|}}}
+
{{documentation}}{{FAB-todo|Gutted, revisit when have parserFunctions}}
|  <!-- No type fed, is also valid input -->
+
| speedy
+
| delete
+
| warning <!-- deprecated --XXX>
+
| serious <!-- deprecated --XXX>
+
| content
+
| style
+
| move
+
| protection
+
| notice    =    <!-- Do nothing, valid "type" --XXX>
+
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
+
}}XXX---><noinclude>
+
{{documentation}}
+
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revision as of 14:51, 1 July 2013


Template:Tmbox/doc

 

Personal tools