Difference between revisions of "Template:Ombox"
From Timelines
(Decreasing the empty left image cell from a total of 3px width to 1px width. Can't be 0px since then boxes who are not filled with text don't stay 80% wide.) |
(Adding the "small=yes" functionality. Now using {{ombox/core}} with hard-coded small styles due to the CSS caching, but it also has the "ombox-small" class so it can be skinned.) |
||
Line 1: | Line 1: | ||
− | + | {{#ifeq:{{{small|}}}|yes | |
− | {{# | + | | {{ombox/core |
− | | | + | | small = yes |
− | | | + | | type = {{{type|}}} |
− | | | + | | image = {{#if:{{{smallimage|}}}| {{{smallimage}}} | {{{image|}}} }} |
− | | | + | | imageright = {{#if:{{{smallimageright|}}} | {{{smallimageright}}} | {{{imageright|}}} }} |
− | | | + | | style = {{{style|}}} |
− | | | + | | textstyle = {{{textstyle|}}} |
− | + | | text = {{#if:{{{smalltext|}}}| {{{smalltext}}} | {{{text}}} }} | |
− | + | }} | |
− | + | | {{ombox/core | |
− | + | | type = {{{type|}}} | |
− | {{ | + | | image = {{{image|}}} |
− | | | + | | imageright = {{{imageright|}}} |
− | + | | style = {{{style|}}} | |
− | + | | textstyle = {{{textstyle|}}} | |
− | + | | text = {{{text}}} | |
− | + | }} | |
− | + | }}<noinclude> | |
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | |||
− | } | ||
− | }} | ||
− | |||
− | {{ | ||
− | | | ||
− | }} | ||
− | |||
− | |||
{{pp-template|small=yes}} | {{pp-template|small=yes}} | ||
− | {{ | + | {{documentation}} |
− | <!-- Add categories and | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
</noinclude> | </noinclude> |
Revision as of 12:11, 15 September 2008
Lua error in Module:Effective_protection_level at line 60: attempt to index field 'TitleBlacklist' (a nil value).
Template documentation[create]
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |