Template:Navbar: Difference between revisions

From RangerMSP Wiki - PSA software for MSPs and IT services providers
Jump to navigation Jump to search
No edit summary
No edit summary
Line 1: Line 1:
For other ships of the same name, see [[{{{1}}}]]{{#if:[[{{{2|}}}]]|{{#if:[[{{{3|}}}]]
<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:

|

}}

Examples

Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox Template:Imbox