Template:Navbar: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
<table class="plainlinks" style="margin: 4px 10%; border-collapse: collapse; background: #fbfbfb; | |||
{{#switch:{{{type|}}} | |||
| speedy = background: #FFDBDB; border: 2px solid #b22222; | |||
| delete = background: #fbfbfb; border: 2px solid #b22222; | |||
| content = background: #fbfbfb; border: 2px solid #f28500; | |||
| style = background: #fbfbfb; border: 2px solid #f4c430; | |||
| license = background: #fbfbfb; border: 2px solid #8888AA; | |||
| nonfreelicense = background: #fbfbfb; border: 2px solid #393951; | |||
| featured = background: #fbfbfb; border: 2px solid #cba135; | |||
| notice <!-- notice = default --> | |||
| #default = background: #fbfbfb; border: 2px solid #1e90ff; | |||
}} {{{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 style="border: none; padding: 2px 0px 2px 0.9em; text-align: center;"> | |||
{{#if:{{{image|}}} | |||
| {{{image}}} | |||
| {{#switch:{{{type|}}} | |||
| speedy = [[Image:Ambox warning pn.svg|40px]] | |||
| delete = [[Image:Ambox warning pn.svg|40px]] | |||
| content = [[Image:Ambox Content.svg|40px]] | |||
| style = [[Image:Ambox warning yellow.svg|40px]] | |||
| license = [[Image:Imbox license.png|40px]] | |||
| nonfreelicense = [[Image:Red copyright.svg|40px]] | |||
| featured = [[Image:Imbox featured.png|40px]] | |||
| notice <!-- notice = default --> | |||
| #default = [[Image:Information icon4.svg|40px]] | |||
}} | |||
}}</td> | |||
}} | |||
<td style="border: none; padding: 0.25em 0.9em; width: 100%; {{{textstyle|}}}"> {{{text}}} </td> | |||
{{#if:{{{imageright|}}} | |||
| <td style="border: none; padding: 2px 0.9em 2px 0px; text-align: center;"> {{{imageright}}} </td> | |||
}} | |||
</tr></table> | |||
<noinclude> | |||
===Examples=== | |||
{{imbox | |||
| type = speedy | |||
| text = type=<u>speedy</u> – Speedy deletion | |||
}} | |||
{{imbox | |||
| type = delete | |||
| text = type=<u>delete</u> – Deletion | |||
}} | |||
{{imbox | |||
| type = content | |||
| text = type=<u>content</u> – Content issues | |||
}} | |||
{{imbox | |||
| type = style | |||
| text = type=<u>style</u> – Style issues | |||
}} | |||
{{imbox | |||
| type = license | |||
| text = type=<u>license</u> – License tags | |||
}} | |||
{{imbox | |||
| type = nonfreelicense | |||
| text = type=<u>nonfreelicense</u> – Non-free License tags | |||
}} | |||
{{imbox | |||
| type = notice | |||
| text = type=<u>notice</u> – General notices | |||
}} | |||
</noinclude> |
Revision as of 07:27, 12 August 2009
{{#ifeq:|none
|
|
}}
{{#if:
|}}
{{#if: | {{{image}}} | {{#switch: | speedy = File:Ambox warning pn.svg | delete = File:Ambox warning pn.svg | content = File:Ambox Content.svg | style = File:Ambox warning yellow.svg | license = File:Imbox license.png | nonfreelicense = File:Red copyright.svg | featured = File:Imbox featured.png | notice | #default = File:Information icon4.svg }}}} | {{{text}}} | {{{imageright}}} |
Examples
Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox