Difference between revisions of "Template:Ambox/sandbox"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
{{Template test cases notice}}
<table class="metadata plainlinks ambox
__TOC__
{{#switch:{{{type|}}}
=Parameter tests=
| speedy    = ambox-speedy
==Type==
| delete        <!-- delete = serious -->
 
| serious    = ambox-delete
{{../sandbox
| content    = ambox-content
| type  = speedy
| style      = ambox-style
| text  = type=<u>speedy</u> – Immediate deletion, such as {{tl|db}} and {{tl|db-g6}}.
| move          <!-- move = merge -->
}}
| merge      = ambox-move
{{../sandbox
| protection = ambox-protection
| type  = delete
| notice        <!-- notice = default -->
| text  = type=<u>delete</u> – Serious issues, such as {{tl|afd}} and {{tl|prod}}.
| #default  = ambox-notice
}}
}}" style="{{{style|}}}">
{{../sandbox
<tr>
| type  = content
{{#ifeq:{{{image|}}}|none
| text  = type=<u>content</u> – Content issues, such as {{tl|POV}} and {{tl|globalize}}.
| <!-- 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"><div style="width: 52px;">
{{../sandbox
  {{#ifeq:{{{image|}}}|blank
| type  = style
  | &nbsp;
| text  = type=<u>style</u> – Style issues, such as {{tl|cleanup}} and {{tl|wikify}}.
  | {{#if:{{{image|}}}
}}
    | {{{image}}}
{{../sandbox
    | {{#switch:{{{type|}}}
| type  = move
      | speedy    = [[Image:Ambox speedy deletion.png|40x40px]]
| text  = type=<u>move</u> – Merge, split and transwiki proposals, such as {{tl|split}} and {{tl|copy to wiktionary}}.
      | delete
}}
      | serious    = [[Image:Ambox deletion.png|40x40px]]
{{../sandbox
      | content    = [[Image:Ambox content.png|40x40px]]
| type  = growth
      | style     = [[Image:Ambox style.png|40x40px]]
| text  = type=<u>growth</u> – Requests for expansion, such as {{tl|expand}}.
      | move
}}
      | merge      = [[Image:Ambox move.png|40x40px]]
{{../sandbox
      | protection = [[Image:Ambox protection.png|40x40px]]
| type  = notice
      | notice          <!-- notice = default -->
| text  = type=<u>notice</u> – Article notices, such as {{tl|current}} and {{tl|inuse}}.
      | #default  = [[Image:Ambox notice.png|40x40px]]
| imageright = {{Template shortcut|ambox}}
      }}
}}
    }}
 
  }}</div></td>
{{../sandbox
| type  = protection
| text  = type=<u>protection</u> – Protection messages, such as {{tl|pp-protected}} and {{tl|pp-move}}.
}}
 
==Other Images==
{{../sandbox
| type  = content
| image = [[Image:Unbalanced scales.svg|40px]]
| text  = type = content <br> image = <nowiki>[[Image:Unbalanced scales.svg|40px]]</nowiki> <br> This image is often used for {{tl|POV}} and similar issues.
}}
{{../sandbox
| type  = style
| image = [[Image:Wikitext.svg|50px]]
| text  = type = style <br> image = <nowiki>[[Image:Wikitext.svg|50px]]</nowiki> <br> This image is often used for {{tl|wikify}} etc.
}}
{{../sandbox
| type  = move
| image = [[Image:Merge-arrows.svg|50px]]
| text  = type = merge <br> image = <nowiki>[[Image:Merge-arrows.svg|50px]]</nowiki> <br> This image is used for {{tl|merge}} etc.
}}
{{../sandbox
| type  = move
| image = [[Image:Merge-arrows.svg|20px]]
| text  = type = merge <br> image = <nowiki>[[Image:Merge-arrows.svg|20px]]</nowiki> <br> This image is used for {{tl|merge}} etc.
}}
 
==Special==
{{../sandbox
| text  = No type and no image given ('''default''')
}}
}}
{{../sandbox
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
| image = blank
{{#if:{{{imageright|}}}
| text = No type and '''image=blank''' – Causes a blank area the same size as a default image. Makes the text line up well with other message boxes.
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
{{../sandbox
| image = none
| text  = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
}}
</tr>
</table><noinclude>


{{../sandbox
| image = [[Image:Gnome globe current event.svg|42px]]
| imageright = [[Image:Nuvola apps bookcase.png|40px]]
| text  = image = <nowiki>[[Image:Gnome globe current event.svg|42px]]</nowiki> <br> imageright = <nowiki>[[Image:Nuvola apps bookcase.png|40px]]</nowiki>
}}
{{../sandbox
| image = [[Image:Gnome globe current event.svg|42px]]
| imageright = [[Image:Shuttle.svg|20px]]
| text  = '''This article or section documents a current [[spaceflight]].'''
<br>Content may change as the mission progresses.
}}
{{../sandbox
| text  = imageright = <nowiki>{{shortcut|WP:TS}}</nowiki> <br> On project pages the shortcut box disturbs the flow of the message boxes. So insert it as '''imageright''' instead.
| imageright = {{shortcut|WP:TS}}
}}


=Sizing tests=
{{Template sandbox notice}}<!--
==Ambox==
    PLEASE SEE THE RATIONALES FOR EACH CURRENT VALUE (OR LACK THEREOF)
<pre>----
    IN THE DOCUMENTATION'S Technical SECTION BEFORE MODIFYING THE CODE, THANKS. (See the documentation at [[Template:Ambox]].)
[[Image:Canis lupus laying.jpg|thumb|A test image.]]
-->
{{ Ambox }}
{{ Ambox
| text = This is the message.
}}
{{ Ambox
| text = This is the message.
| image=blank
}}
{{ Ambox
| text = This is the message.
| image=none
}}
{{ Ambox
| text = This is the message.
| type = delete
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
{{ Ambox }}
{{ Ambox
| text = This is the message.
}}
{{ Ambox
| text = This is the message.
| image=blank
}}
{{ Ambox
| text = This is the message.
| image=none
}}
{{ Ambox
| text = This is the message.
| type = delete
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
----</pre>
----
[[Image:Canis lupus laying.jpg|thumb|A test image.]]
{{ Ambox }}
{{ Ambox
| text = This is the message.
}}
{{ Ambox
| text = This is the message.
| image=blank
}}
{{ Ambox
| text = This is the message.
| image=none
}}
{{ Ambox
| text = This is the message.
| type = delete
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
{{ Ambox }}
{{ Ambox
| text = This is the message.
}}
{{ Ambox
| text = This is the message.
| image=blank
}}
{{ Ambox
| text = This is the message.
| image=none
}}
{{ Ambox
| text = This is the message.
| type = delete
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
----


==Ambox/sandbox==
</noinclude>
{{ambox
| type      = speedy
| image    = [[Image:octagon-warning.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = This test tag is not meant to be used in any purposes except for testing.<code><nowiki> {{ambox
| type      = speedy
| image    = [[Image:octagon-warning.svg|40px]]
| style    = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = This test tag is not meant to be used in any purposes except for testing.
}}
</nowiki></code>
}}
<pre>----
[[Image:Canis lupus laying.jpg|thumb|A test image.]]
{{ Ambox/sandbox }}
{{ Ambox/sandbox
| text = This is the message.
}}
{{ Ambox/sandbox
| text = This is the message.
| image=blank
}}
{{ Ambox/sandbox
| text = This is the message.
| image=none
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
{{ Ambox/sandbox }}
{{ Ambox/sandbox
| text = This is the message.
}}
{{ Ambox/sandbox
| text = This is the message.
| image=blank
}}
{{ Ambox/sandbox
| text = This is the message.
| image=none
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
----</pre>
----
[[Image:Canis lupus laying.jpg|thumb|A test image.]]
{{ Ambox/sandbox }}
{{ Ambox/sandbox
| text = This is the message.
}}
{{ Ambox/sandbox
| text = This is the message.
| image=blank
}}
{{ Ambox/sandbox
| text = This is the message.
| image=none
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
{{ Ambox/sandbox }}
{{ Ambox/sandbox
| text = This is the message.
}}
{{ Ambox/sandbox
| text = This is the message.
| image=blank
}}
{{ Ambox/sandbox
| text = This is the message.
| image=none
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| 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 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 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 lots of text lots of text lots of text lots of text lots of text lots of text lots of text lots of text.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
}}
{{ Ambox/sandbox
| text = This is the message.
| type = delete
| image = [[Image:Broom icon.svg|40px]]
| imageright = [[Image:Broom icon.svg|40px]]
| style = color: red; font-weight: bold; text-align: center
}}
----

Latest revision as of 14:55, 3 February 2009