Difference between revisions of "Template:Imbox/sandbox"

From Chevy Wiki
Jump to navigation Jump to search
m (1 revision)
 
m (1 revision)
 
Line 1: Line 1:
<noinclude>{{#ifeq:{{SUBPAGENAME}}|sandbox|{{Template sandbox notice}}
<table class="plainlinks imbox
}}</noinclude><!-- Begin {{Imdb title/sandbox}} -->[http://www.imdb.com/{{#if:{{{1|{{{id|}}}}}}|title/tt{{{1|{{{id|}}}}}}|Title?{{urlencode:{{PAGENAME}}}}}}/{{#switch: {{lc: {{{4|{{{select|}}}}}} }}
{{#switch:{{{type|}}}
|alternate|alternates|version|versions|alternateversion|alternateversions=alternateversions Alternate versions for
| speedy    = imbox-speedy
|amazon=amazon Amazon.com reviews for
| delete    = imbox-delete
|award|awards=awards Awards for
| content    = imbox-content
|boxoffice|business=business Box office / business for
| style      = imbox-style
|ticket|tickets|showtime|showtimes|cinemashowtime|cinemashowtimes=cinemashowtimes Showtimes &amp; Tickets for
| move      = imbox-move
|combined=combined Combined details for
| protection = imbox-protection
|company|companys|companies|companycredits=companycredits Company credits for
| license    = imbox-license
|crazy|crazycredit|crazycredits=crazycredits Crazy credits for
| featured  = imbox-featured
|dvd=dvd DVD details for
| notice          <!-- notice = default -->
|review|reviews|externalreview|externalreviews=externalreviews External reviews for
| #default  = imbox-notice
|faq=faq FAQ for
}}" style="{{{style|}}}">
|cast|crew|credits|fullcrew|fullcredits=fullcredits Full cast and crew for
<tr>
|goofs=goofs Goofs for
{{#ifeq:{{{image|}}}|none
|laser|laserdisk|laserdisc=laserdisc Laserdisc details for
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 1px;"></td>
|filmokey|keyword|keywords=keywords Plot keywords for
| <td class="mbox-image">
|literature=literature Literature for
  {{#if:{{{image|}}}
|location|locations=locations Filming locations for
  | {{{image}}}
|main|maindetails=maindetails Main details for
  | {{#switch:{{{type|}}}
|link|links|misclink|misclinks|miscsite|miscsites|miscsites=miscsites Miscellaneous links for
    | speedy    = [[Image:Imbox speedy deletion.png|40x40px]]
|connection|connections|movieconnection|movieconnections=movieconnections Movie connections for
    | delete    = [[Image:Imbox deletion.png|40x40px]]
|site|sites|official|officialsite|officialsites=officialsites Official sites for
    | content    = [[Image:Imbox content.png|40x40px]]
|news=news News for
    | style      = [[Image:Imbox style.png|40x40px]]
|parentguide|parentsguide|parentalguide=parentalguide Parents Guide for
    | move      = [[Image:Imbox move.png|40x40px]]
|gallery|photogallery=photogallery Photo gallery for
    | protection = [[Image:Imbox protection.png|40x40px]]
|photosite|photosites=photosites Photographs for
    | license    = [[Image:Imbox license.png|40x40px]]
|plot|summary|plotsummary=plotsummary Plot summary for
    | featured  = [[Image:Imbox featured.png|40x40px]]
|poster|posters=posters Posters for
    | notice          <!-- notice = default -->
|quote|quotes=quotes Memorable quotes for
    | #default  = [[Image:Imbox notice.png|40x40px]]
|rate|rating|user|users|userratings|ratings=ratings User ratings for
    }}
|recommend|recommendation|recommendations=recommendations Recommendations for
  }}</td>
|release|releasedate|releaseinfo=releaseinfo Release dates for
}}
|merchandise|sale|sales=sales Merchandise for
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
|soundclip|soundclips|soundsite|soundsites=soundsites Sound clips for
{{#if:{{{imageright|}}}
|soundtrack=soundtrack Soundtracks for
| <td class="mbox-imageright"> {{{imageright}}} </td>
|plotsynopsis|synopsis=synopsis Synopsis for
}}
|tagline|taglines=taglines Taglines for
</tr>
|specifications|technical=technical Technical specifications for
{{#if:{{{below|}}}
|trailer|trailers=trailers Trailers for
| <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="{{{textstyle|}}}"> {{{below}}} </td></tr>
|trivia=trivia Trivia for
}}
|tv|television|tvschedule=tvschedule TV schedule for
</table><noinclude>
|videoclip|videoclips|videosite|videosites=videosites Video clips for
 
|comment|comments|usercomment|usercomments=usercomments IMDb user comments for
=== Sandbox for {{tl|imbox}} ===
}} ''{{{2|{{{title|{{PAGENAME}}}}}}}}'' {{{3|{{{description|}}}}}}] at the [[Internet Movie Database]]{{ Retrieved | accessdate={{{accessdate|}}} | accessyear={{{accessyear|}}} | accessmonthday={{{accessmonthday|}}} | accessdaymonth={{{accessdaymonth|}}} | prepend=.&#32; }}<!-- End {{Imdb title/sandbox}} -->
 
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.
 
{{imbox/sandbox
| type = speedy
| text = speedy
}}
{{imbox/sandbox
| type = delete
| text = delete
}}
[[Image:Canis lupus laying.jpg|thumb|60px]]
{{imbox/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]]
}}
{{imbox/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]]
}}
{{imbox/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]]
}}
{{imbox/sandbox
| type = move
| text = move
}}
{{shortcut|WP:TEST}}
{{imbox/sandbox
| type = protection
| text = protection
}}
 
Some text just to test bottom margin.
 
=== Special ===
 
Some other parameter combinations.
 
{{imbox/sandbox
| text  = No type and no image given ('''default''')
}}
 
{{imbox/sandbox
| image = none
| text  = No type and '''image=none''' – No image is used and the '''text''' uses the whole message box area.
}}
 
{{imbox/sandbox
| type = license
| image = [[Image:Imbox license.svg|40px]] <br> [[Image:Ambox warning yellow.svg|40px]]
| imageright = [[Image:Shuttle.svg|30px]]
| text  = type = license <br> image = <nowiki>[[Image:Imbox license.svg|40px]] &lt;br> [[Image:Ambox warning yellow.svg|40px]]</nowiki> <br> imageright = <nowiki>[[Image:Shuttle.svg|30px]]</nowiki>
}}
 
{{imbox/sandbox
| type = license
| image = [[Image:Imbox license.svg|40px]] <br> [[Image:Ambox warning yellow.svg|40px]]
| imageright = [[Image:Shuttle.svg|30px]]
| text  = '''This file is in the [[public domain]] because it was created by [[NASA]].'''
<br>Note that use of NASA logos, insignia and emblems are restricted per US law.
}}
 
{{imbox/sandbox
| image =  
| text  = image =
}}
 
{{imbox/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
}}
 
{{imbox/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
| imageright = [[Image:Nuvola apps bookcase.svg|100px]]
}}
 
{{imbox/sandbox
| image = none
| text  = No type and '''image=none'''
}}
 
=== Parameters ===
 
List of all parameters:
 
<pre>
{{imbox/sandbox
| type  = speedy / delete / content / style / notice /
          move / protection / license / featured
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS value
| textstyle = CSS value
| text  = The message body text.
| below = More text or another imbox.
}}
</pre>
 
=== Examples of varying width ===
 
{{imbox/sandbox
| type      = license
| image      = [[Image:Imbox license.svg|40px]]
| text      =  
This file has been released into the '''[[w:public domain|public domain]]''' by the [[w:Copyrights|copyright]] holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.
}}
 
{{imbox/sandbox
| type      = license
| image      = [[Image:Heckert GNU white.svg|52px|GFDL]]
| text      =
Permission is granted to copy, distribute and/or modify this document under the terms of the '''[[Wikipedia:Text of the GNU Free Documentation License|GNU Free Documentation License]]''', Version 1.2 or any later version published by the Free Software Foundation; with no Invariant Sections, no Front-Cover Texts, and no Back-Cover Texts.
}}
 
{{imbox/sandbox
| type      = license
| image      = [[Image:CC some rights reserved.svg|90px|Creative Commons License]] <br> [[Image:Cc-by new white.svg|24px|Creative Commons Attribution icon]][[Image:Cc-sa white.svg|24px|Creative Commons Share Alike icon]]
| imageright = [[Image:Flag of Germany.svg|64px|right|Flag of Germany]]
| text      =  
''This image is licensed under the [[Creative Commons]] [http://creativecommons.org/licenses/by-sa/2.0/de/deed.en Attribution ShareAlike License v. 2.0] '''as written for [[Germany|German]] law''' (which may or may not be entirely compatible with versions for other countries).''
}}
 
Note: The Creative Commons box above has more padding around the "Some rights reserved" image since that image itself has a lot of whitespace. To fix that the image should be modified, not imbox.
 
=== Testing the below parameter ===
 
These examples relies on CSS code in [[MediaWiki:Common.css]] to make them 100% wide instead of 80% wide when inside another imbox. That is, when an imbox is fed as the "below" parameter to another imbox.
 
With a left image:
 
{{imbox/sandbox
| type      = license
| image      = [[Image:Imbox license.svg|40px]]
| text      =  
This file has been released into the '''[[w:public domain|public domain]]''' by the [[w:Copyrights|copyright]] holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.
| below =
  {{imbox/sandbox
  | type = content
<!--  | style = margin: 0 -0.5em; -->
  | text = '''This license tag is deprecated!'''
  }}
}}
 
With both a left and right image:
 
{{imbox/sandbox
| type      = license
| image      = [[Image:CC some rights reserved.svg|90px|Creative Commons License]] <br> [[Image:Cc-by new white.svg|24px|Creative Commons Attribution icon]][[Image:Cc-sa white.svg|24px|Creative Commons Share Alike icon]]
| imageright = [[Image:Flag of Germany.svg|64px|right|Flag of Germany]]
| text      =  
''This image is licensed under the [[Creative Commons]] [http://creativecommons.org/licenses/by-sa/2.0/de/deed.en Attribution ShareAlike License v. 2.0] '''as written for [[Germany|German]] law''' (which may or may not be entirely compatible with versions for other countries).''
| below =
  {{imbox/sandbox
  | type = content
<!--  | style = margin: 0 -0.5em; -->
  | text = '''This license tag is deprecated!'''
  }}
}}
 
With no images:
 
{{imbox/sandbox
| type      = license
| image      = none
| text      =
This file has been released into the '''[[w:public domain|public domain]]''' by the [[w:Copyrights|copyright]] holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.
| below =
  {{imbox/sandbox
  | type = content
<!--  | style = margin: 0 -0.5em; -->
  | text = '''This license tag is deprecated!'''
  }}
}}
 
=== Testing mbox-inside ===
 
These examples relies on that the surrounding template has the "mbox-inside" class and CSS code in [[MediaWiki:Common.css]] to make imboxes 100% wide instead of 80% wide when inside another template.
 
{{information
| Description = Testing imboxes inside the {{tl|information}} template.
| Source =  
  {{imbox/sandbox
  | type = notice
  | text = Now is full width instead of 80% width.
  }}
| Author = David Göthberg
| Permission =  
  {{imbox/sandbox
  | type = notice
  | text = Now is full width instead of 80% width.
  }}
}}
 
</noinclude>

Latest revision as of 14:55, 3 February 2009

Sandbox for {{imbox}}

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:

{{imbox/sandbox
| type  = speedy / delete / content / style / notice / 
          move / protection / license / featured
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS value
| textstyle = CSS value
| text  = The message body text. 
| below = More text or another imbox.
}}

Examples of varying width

Note: The Creative Commons box above has more padding around the "Some rights reserved" image since that image itself has a lot of whitespace. To fix that the image should be modified, not imbox.

Testing the below parameter

These examples relies on CSS code in MediaWiki:Common.css to make them 100% wide instead of 80% wide when inside another imbox. That is, when an imbox is fed as the "below" parameter to another imbox.

With a left image:

With both a left and right image:

With no images:

Testing mbox-inside

These examples relies on that the surrounding template has the "mbox-inside" class and CSS code in MediaWiki:Common.css to make imboxes 100% wide instead of 80% wide when inside another template.

Description

Testing imboxes inside the {{information}} template.

Source
Date

{{{date}}}

Author

David Göthberg

Permission
(Reusing this image)