Difference between revisions of "Template:Ombox"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
Line 1: Line 1:
<table class="plainlinks ombox
#REDIRECT [[Opel Astra]]
{{#switch:{{{type|}}}
| speedy    = ombox-speedy
| delete    = ombox-delete
| content    = ombox-content
| style      = ombox-style
| move      = ombox-move
| protection = ombox-protection
| notice          <!-- notice = default -->
| #default  = ombox-notice
}}" style="{{{style|}}}">
<tr>
{{#ifeq:{{{image|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
| <td class="mbox-image">
  {{#if:{{{image|}}}
  | {{{image}}}
  | {{#switch:{{{type|}}}
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
    | delete    = [[Image:Imbox deletion.png|40x40px]]
    | content    = [[Image:Imbox content.png|40x40px]]
    | style      = [[Image:Imbox style.png|40x40px]]
    | move      = [[Image:Imbox move.png|40x40px]]
    | protection = [[Image:Imbox protection.png|40x40px]]
    | notice          <!-- notice = default -->
    | #default  = [[Image:Imbox notice.png|40x40px]]
    }}
  }}</td>
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
| <td class="mbox-imageright"> {{{imageright}}} </td>
}}
</tr>
</table><noinclude>


=== Sandbox for {{tl|ombox}} ===
[[Category:Chevrolet vehicles|Viva]]
 
Here we can test new code versions.
 
The box above is template code on this page, the boxes below are transclusions of this page and show how that code renders when the box is stacked. If you have updated the code above then you have to {{purge|purge this page}} to see the effect on the examples below.
 
{{ombox/sandbox
| type = speedy
| text = speedy
}}
{{ombox/sandbox
| type = delete
| text = delete
}}
[[Image:Canis lupus laying.jpg|thumb|60px]]
{{ombox/sandbox
| type = content
| text = content, lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
}}
{{ombox/sandbox
| type = style
| text = style, lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
| imageright = [[Image:Nuvola apps bookcase.svg|40x40px]]
}}
{{ombox/sandbox
| type = notice
| text = notice, lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
| imageright = [[Image:Nuvola apps bookcase.svg|80px]]
}}
{{ombox/sandbox
| type = move
| text = move
}}
{{shortcut|WP:TEST}}
{{ombox/sandbox
| type = protection
| text = protection
}}
 
Some text just to test bottom margin.
 
=== Special ===
 
Some other parameter combinations.
 
{{ombox/sandbox
| text  = No type and no image given ('''default''')
}}
 
{{ombox/sandbox
| image = none
| text  = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
 
{{ombox/sandbox
| image =
| text  = image =
}}
 
{{ombox/sandbox
| image = [[Image:Nuvola apps bookcase.svg|100px]]
| text  = Trying large left side image. - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
}}
 
{{ombox/sandbox
| image = [[Image:Nuvola apps bookcase.svg|100px]]
| text  = Trying large left and right side image. - lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text
| imageright = [[Image:Nuvola apps bookcase.svg|100px]]
}}
 
=== Parameters ===
 
List of all parameters:
 
<pre>
{{ombox/sandbox
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS value
| textstyle = CSS value
| text  = The message body text.
}}
</pre>
 
=== Examples of varying width ===
 
{{ombox/sandbox
| type      = notice
| image      = [[Image:Blue check.svg|30px]]
| text      =
'''This page documents an English Wikipedia [[Wikipedia:Policies and guidelines|guideline]].''' It is a generally accepted standard that editors should follow, though it should be treated with [[Wikipedia:Use common sense|common sense]] and the [[Wikipedia:Ignore all rules|occasional exception]]. When editing this page, please ensure that your revision reflects [[Wikipedia:Consensus|consensus]]. When in doubt, discuss on the [[{{TALKPAGENAME}}|talk page]].
}}
 
{{ombox/sandbox
| type      = notice
| image      = [[Image:Purple question mark.svg|50px]]
| text      =
'''The following is a ''proposed'' Wikipedia {{{type|[[Wikipedia:Policies and guidelines|policy, guideline,]] or process}}}.''' <br> The proposal may still be in development, under [[{{NAMESPACE}} talk:{{PAGENAME}}|discussion]], or in the process of gathering [[Wikipedia:Consensus|consensus]] for adoption. Thus references or links to this page should not describe it as "policy".
}}
 
{{ombox/sandbox
| type      = notice
| image      = [[Image:Purple question mark.svg|70px]]
| imageright = {{shortcut|WP:SHORT}}
| text      =
'''The following is a ''proposed'' Wikipedia {{{type|[[Wikipedia:Policies and guidelines|policy, guideline,]] or process}}}.'''
}}
 
{{ombox/sandbox
| type      = notice
| image      = [[Image:Crystal package settings.png|40px]]
| imageright = {{shortcut|WP:SHORT}}
| text      =
This page is a '''how-to guide''' detailing a practice or process on the English Wikipedia.
}}
 
</noinclude>

Revision as of 15:04, 2 February 2009

Redirect to: