Difference between revisions of "Template:Ombox"

From BTAWiki
Jump to navigation Jump to search
(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.)
m (37 revisions imported)
 
(23 intermediate revisions by 15 users not shown)
Line 1: Line 1:
{{#ifeq:{{{small|}}}|yes
+
<templatestyles src="Template:Ombox/styles.css" />
| {{ombox/core
+
{{#invoke:Message box|ombox}}<noinclude>
  | small = yes
+
{{documentation}}
  | type  = {{{type|}}}
+
<!-- Categories go on the /doc subpage, and interwikis go on Wikidata. -->
  | 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}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
 
</noinclude>
 
</noinclude>

Latest revision as of 20:38, 30 October 2020

<templatestyles src="Template:Ombox/styles.css" /> Script error: No such module "Message box". Script error: No such module "documentation".