Hello
Template:TabberImg
Jump to navigation
Jump to search
| [[File:{{{1}}}.png|95px|center|link=]] |
| Template documentation | |
|---|---|
This template creates a one cell table (with or without text) that can be used as a tabber header.
Syntax
{{TabberImg| file name | text (optional) | size (optional)}}
Example
{{TabberImg|Sinclair Announcer|Sinclair|110px}}
Use case
This template is made to be used inside of <tabber> structures. Once in a table, images can be used as tabber headers.
ex.
<tabber>
{{TabberImg|Sinclair Announcer|Sinclair}} = Hello
|-|
{{TabberImg|Angela Announcer|Angela}} = Goodbye
</tabber>
Goodbye
vs.
<tabber> [[File:Sinclair Announcer.png|110px]] <br> sinclair = Hello |-| [[File:Angela Announcer.png|110px]] <br> Angela = Goodbye </tabber>
Hello
Goodbye
Limitations & Notes
- If this template is used as a tabber header, any links inside cannot be clicked on because the entire template is the "button" for the tab.
- This template is basically escaping a purposeful restriction placed on tabbers. Behavior may not be perfect.
- Tabber headers (the ' Name = ' part) break the second they encounter an equal sign. Because of this, a template is used to avoid using an equal sign in the tabber header's image / table combination, as templates are parsed separately from the regular wikitext.