Jump to content

Template:Ambox: Difference between revisions

From IdeaWazaWiki
wikademia>AzaToth
testing wikitable code, and changes of logic, do not kill me it if's not working
wikademia>Eme
m 1 revision
 
(50 intermediate revisions by 19 users not shown)
Line 1: Line 1:
{| class="metadata plainlinks ambox {{#switch:{{{type|}}}
<!--{{Ambox}} begin-->{{#switch:{{{small|}}}
  | serious  = ambox-serious
| left =  
   | content  = ambox-content
   {{Ambox/core
   | style    = ambox-style
   | small      = left
   | merge    = ambox-merge
   | type      = {{{type|}}}
  | notice  = ambox-notice
   | image      = {{#if:{{{smallimage|}}}
   | #default = ambox-notice
                | {{{smallimage}}}
}}"
                | {{{image|}}}
|-
                }}
{{#ifeq:{{{image}}}|none
  | imageright = {{#if:{{{smallimageright|}}}
  | <!-- no image cell -->
                | {{{smallimageright}}}
  | {{!}} class="ambox-image" {{!}} {{#switch:{{{image|{{{type|}}}}}}
                | {{{imageright|}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
                }}
    | content = [[Image:Emblem-important.svg|40px]]
  | style      = {{{style|}}}
    | style    = [[Image:Broom icon.svg|40px]]
  | textstyle = {{{textstyle|}}}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
  | text      = {{#if:{{{smalltext|}}}
    | notice  = [[Image:Info non-talk.png|40px]]
                | {{{smalltext}}}
    | blank    = <!-- empty image cell -->
                | {{{text}}}  
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
                }}
   }}
   }}
}}
| #default =
| {{{text}}}
  {{Ambox/core
{{#if:{{{imageright|}}}
  | type      = {{{type|}}}
   | {{!}} class="ambox-imageright" {{!}} {{{imageright}}}
  | image      = {{{image|}}}
}}
  | imageright = {{{imageright|}}}
|}<noinclude>
  | style      = {{{style|}}}
{{template doc}}
   | textstyle  = {{{textstyle|}}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
  | text      = {{{text}}}
  }}
}}<!--
 
--><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Category:Article message boxes]]}}}}</includeonly><!--
 
--><!--{{Ambox}} end--><noinclude>
 
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 21:29, 18 December 2010

[create] Template documentation