Difference between revisions of "Template:Ombox/sandbox"

From Chevy Wiki
Jump to navigation Jump to search
(Interwiki:de)
 
m (1 revision)
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<!--{{Orphan|{{{1|}}}|date={{{date|}}}}} begin-->
<table class="plainlinks ombox
{{ ambox
{{#switch:{{{type|}}}
| type  = style
| speedy    = ombox-speedy
| image = [[Image:Wiki letter w.svg|50x40px]]
| delete    = ombox-delete
| text  = This article is '''[[Wikipedia:Orphan|orphaned]] as few or no other articles [{{fullurl:Special:Whatlinkshere|target={{FULLPAGENAMEE}}&namespace=0}} link to it].''' Please help [[Help:Link|introduce links]] to this subject in articles on [http://www.google.com/search?hl=en&as_qdr=all&q=+site%3Aen.wikipedia.org+%22{{PAGENAMEU}}%22 topics related to it]. {{#if:{{{date|}}}|<small>''({{{date|}}})''</small>}}
| content    = ombox-content
}}<includeonly>{{#if:{{{att|}}}|{{{category|[[Category:Attempted de-orphan in {{{att}}}]]}}}|{{#if:{{{date|}}}|{{{category|[[Category:Orphaned articles from {{{date}}}]]}}}|{{{category|[[Category:Orphaned articles]]}}}}}}}{{{category|[[Category:All orphaned articles]]}}}</includeonly><!--{{Orphan}} end--><!--
| style      = ombox-style
--><noinclude>{{pp-template|small=yes}}{{documentation}}</noinclude>
| 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}} ===
 
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>

Latest revision as of 15:00, 3 February 2009

Sandbox for {{ombox}}

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 this page to see the effect on the examples below.

Canis lupus laying.jpg
Shortcut:
WP:TEST

Some text just to test bottom margin.

Special

Some other parameter combinations.

Parameters

List of all parameters:

{{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. 
}}

Examples of varying width