Template:Tmbox/core: Difference between revisions

From TrainzOnline
Jump to navigationJump to search
Fabartus (talk | contribs)
genesis, port unchanged from Wikibooks
 
Fabartus (talk | contribs)
fix later-
Line 1: Line 1:
<table class="plainlinks tmbox {{#ifeq:{{{small}}}|yes|mbox-small}} {{#switch:{{{type|}}}
<table class="plainlinks tmbox <!--{{#ifeq:{{{small}}}|yes|mbox-small}}
--XXX> {{#switch:{{{type|}}}
| speedy    = tmbox-speedy
| speedy    = tmbox-speedy
| warning <!-- deprecated -->
| warning <!-- deprecated --XXX>
| serious <!-- deprecated -->
| serious <!-- deprecated --XXX>
| delete    = tmbox-delete
| delete    = tmbox-delete
| content    = tmbox-content
| content    = tmbox-content
Line 8: Line 9:
| move      = tmbox-move
| move      = tmbox-move
| protection = tmbox-protection
| protection = tmbox-protection
| notice          <!-- notice = default -->
| notice          <!-- notice = default --XXX>
| #default  = tmbox-notice
| #default  = tmbox-notice
}} {{{class|}}}" style="{{{style|}}}">
}} XXX--> {{{class|CCC}}}" style="{{{style|SSS}}}">
<tr>
<tr><!--- XXX
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell" style="border: none; padding: 0px; width: 1px;"></td>
| <!-- 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>
| <td class="mbox-image">
|.else show image... XXX---><td class="mbox-image">tmbox-notice<!---XXX
   {{#if:{{{image|}}}
   {{#if:{{{image|}}}
   | {{{image}}}
   | {{{image}}}
   | [[File:{{#switch:{{{type|}}}
   | [[File:{{#switch:{{{type|}}}
     | speedy    = Ambox warning pn.svg
     | speedy    = Ambox warning pn.svg
     | warning <!-- deprecated -->
     | warning <!-- deprecated --XXX>
     | serious <!-- deprecated -->
     | serious <!-- deprecated --XXX>
     | delete    = Ambox warning pn.svg
     | delete    = Ambox warning pn.svg
     | content    = Ambox Content.svg
     | content    = Ambox Content.svg
Line 26: Line 27:
     | move      = Merge-split-transwiki default.svg
     | move      = Merge-split-transwiki default.svg
     | protection = Padlock-silver-medium.svg
     | protection = Padlock-silver-medium.svg
     | notice          <!-- notice = default -->
     | notice          <!-- notice = default --XXX>
     | #default  = Information icon4.svg
     | #default  = Information icon4.svg
     }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}}|link=|alt=]]
     }} | {{#ifeq:{{{small|}}}|yes|30x30px|40x40px}}|link=|alt=]]
   }}</td>
   }}XXX--->
}}
[[File:Information icon4.svg|40x40px|link=|alt=]]</td><!--XXX
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
XXX ---}} XXX--->
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td><!--XXX
{{#if:{{{imageright|}}}
{{#if:{{{imageright|}}}
| {{#ifeq:{{{imageright|}}}|none
| {{#ifeq:{{{imageright|}}}|none
Line 37: Line 39:
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   | <td class="mbox-imageright"> {{{imageright}}} </td>
   }}
   }}
}}
}} -- XXX-->
</tr>
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><!-- Detect and report usage with faulty "type" parameter:
-->{{#switch:{{{type|}}}
--XXX>{{#switch:{{{type|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
| speedy
| speedy
| delete
| delete
| warning <!-- deprecated -->
| warning <!-- deprecated --XXX>
| serious <!-- deprecated -->
| serious <!-- deprecated --XXX>
| content
| content
| style
| style
| move
| move
| protection
| protection
| notice    =    <!-- Do nothing, valid "type" -->
| 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>
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>
}}<noinclude>
}}XXX---><noinclude>
{{documentation}}
{{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 04:27, 1 July 2013

|
 }}

}} -- XXX-->

| speedy | delete | warning


Template:Tmbox/doc