Template:Robox: Difference between revisions
wikademia>Emesee No edit summary |
wikademia>Wikademia m 6 revisions |
||
| (3 intermediate revisions by one other user not shown) | |||
| Line 1: | Line 1: | ||
<noinclude> | <noinclude>Robox/Close If you are a custodian editing this page, please read the talk page first! Thank you.''''' | ||
''This is a special kind of box with a hanging icon in the right hand top corner. The size of the icon can be increased indefinitely without the height of the title bar being affected. If an empty title is specified, the title bar shrinks to a small band.'' | ''This is a special kind of box with a hanging icon in the right hand top corner. The size of the icon can be increased indefinitely without the height of the title bar being affected. If an empty title is specified, the title bar shrinks to a small band.'' | ||
| Line 17: | Line 16: | ||
* ''icon'': Image name for icon. | * ''icon'': Image name for icon. | ||
* ''iconwidth'': Pixel width of icon; default is 56. Include "px". | * ''iconwidth'': Pixel width of icon; default is 56. Include "px". | ||
''Don't forget to use the <nowiki>{{Robox/ | ''Don't forget to use the <nowiki>{{Robox/Close}}</nowiki> template after your content!'' | ||
<br>''This template should be used together with <nowiki>{{Robox/ | <br>''This template should be used together with <nowiki>{{Robox/Pad}}</nowiki> to pad out the box contents - see examples below, and see talk page. | ||
</div> | </div> | ||
|} | |} | ||
| Line 26: | Line 25: | ||
This code: | This code: | ||
<nowiki>{{robox|title=Test title}} | <nowiki>{{robox|title=Test title}} | ||
<div style="{{Robox/ | <div style="{{Robox/Pad}}"> | ||
Test content using a default box | Test content using a default box | ||
</div> | </div> | ||
{{Robox/ | {{Robox/Close}}</nowiki> | ||
produces this box: | produces this box: | ||
{{robox|title=Test title}} | {{robox|title=Test title}} | ||
<div style="{{Robox/ | <div style="{{Robox/Pad}}"> | ||
Test content using a default box | Test content using a default box | ||
</div> | </div> | ||
{{Robox/ | {{Robox/Close}} | ||
===Theme 2: Mid green=== | ===Theme 2: Mid green=== | ||
This code: | This code: | ||
<nowiki>{{Robox|Theme=2|title=Test title}} | <nowiki>{{Robox|Theme=2|title=Test title}} | ||
<div style="{{Robox/ | <div style="{{Robox/Pad}}"> | ||
Test content using a default box with Theme=2 | Test content using a default box with Theme=2 | ||
</div> | </div> | ||
{{Robox/ | {{Robox/Close}}</nowiki> | ||
produces this box: | produces this box: | ||
{{Robox|Theme=2|title=Test title}} | {{Robox|Theme=2|title=Test title}} | ||
<div style="{{Robox/ | <div style="{{Robox/Pad}}"> | ||
Test content using a default box with Theme=2 | Test content using a default box with Theme=2 | ||
</div> | </div> | ||
{{Robox/ | {{Robox/Close}} | ||
== Colour samples == | == Colour samples == | ||
{| | {| | ||
|{{Robox|Theme=1|title=Theme 1|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=1|title=Theme 1|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=2|title=Theme 2|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=2|title=Theme 2|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=3|title=Theme 3|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=3|title=Theme 3|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=4|title=Theme 4|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=4|title=Theme 4|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|- | |- | ||
|{{Robox|Theme=5|title=Theme 5|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=5|title=Theme 5|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=6|title=Theme 6|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=6|title=Theme 6|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=7|title=Theme 7|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=7|title=Theme 7|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=8|title=Theme 8|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=8|title=Theme 8|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=9|title=Theme 9|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=9|title=Theme 9|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|- | |- | ||
|{{Robox|Theme=10|title=Theme 10|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=10|title=Theme 10|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=11|title=Theme 11|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=11|title=Theme 11|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=12|title=Theme 12|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=12|title=Theme 12|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=13|title=Theme 13|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=13|title=Theme 13|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|{{Robox|Theme=14|title=Theme 14|width=200px|iconwidth=48px}}<div style="{{Robox/ | |{{Robox|Theme=14|title=Theme 14|width=200px|iconwidth=48px}}<div style="{{Robox/Pad}}"> | ||
''Content goes here.'' | ''Content goes here.'' | ||
</div> | </div> | ||
{{Robox | {{Robox/Close}} | ||
|} | |} | ||
Latest revision as of 00:57, 29 April 2009
Robox/Close If you are a custodian editing this page, please read the talk page first! Thank you.
This is a special kind of box with a hanging icon in the right hand top corner. The size of the icon can be increased indefinitely without the height of the title bar being affected. If an empty title is specified, the title bar shrinks to a small band.
|
Title
Parameters:
Don't forget to use the {{Robox/Close}} template after your content!
|
Simple examples
Theme 1: Tan (default)
This code:
{{robox|title=Test title}}
<div style="{{Robox/Pad}}">
Test content using a default box
</div>
{{Robox/Close}}
produces this box:
|
Test title
Test content using a default box |
Theme 2: Mid green
This code:
{{Robox|Theme=2|title=Test title}}
<div style="{{Robox/Pad}}">
Test content using a default box with Theme=2
</div>
{{Robox/Close}}
produces this box:
|
Test title
Test content using a default box with Theme=2 |
Colour samples
|
|
|
| ||||||
|
|
|
|
| |||||
|
|
|
|
|