Template:Ambox: Difference between revisions

From ScoutWiki, For Everyone, Everywhere involved with Scouting and Guiding...
Jump to navigation Jump to search
(new)
 
m (Robot: Removing from Category:Article message boxes)
 
(4 intermediate revisions by 3 users not shown)
Line 1: Line 1:
<table style="{{{style|}}}" class="metadata plainlinks ambox {{#switch:{{{type|}}}
{{#ifeq:{{{subst}}}|SUBST
   | serious  = ambox-serious
|{{#if:{{{name|}}}
   | content  = ambox-content
  |{{Error|Template {{Tlx|{{{name}}}}} has been incorrectly substituted.}}
   | style   = ambox-style
}}[[Category:Pages with incorrectly substituted templates]]
   | merge   = ambox-merge
}}{{#ifeq:{{{small}}}|left
   | notice   = ambox-notice
|{{Ambox/core
   | #default = ambox-notice
  |small      = left
}}">
  |type      = {{{type|}}}
<tr>
  |image      = {{#if:{{{smallimage|}}}
<td class="ambox-image">
  |{{{smallimage}}}
{{#ifeq:{{{image}}}|none
  |{{{image|}}}
   | <!-- no image cell; empty cell necessary for text cell to have 100% width -->
  }}
   | <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
   |imageright = {{#if:{{{smallimageright|}}}
    | serious  = [[Image:Stop hand nuvola.svg|40px]]
  |{{{smallimageright}}}
    | content  = [[Image:Emblem-important.svg|40px]]
  |{{{imageright|}}}
    | style    = [[Image:Broom icon.svg|40px]]
  }}
    | merge    = [[Image:Merge-split-transwiki default.svg]]
   |class      = {{{class|}}}
    | notice  = [[Image:Info non-talk.png|40px]]
   |style     = {{{style|}}}
    | blank    = [[Image:No image.svg]]
   |textstyle  = {{{textstyle|}}}
    | #default = {{{image|[[Image:Info non-talk.png|40px]]}}}
  |text      = {{#if:{{{smalltext|}}}
   }}</div>
  |{{{smalltext}}}
}}</td>
   |{{{text}}}
<td class="ambox-text">{{{text}}}</td>
   }}
{{#if:{{{imageright|}}}|
}}
  <td class="ambox-imageright"><div style="width:52px;"> {{{imageright}}} </div></td>
|{{Ambox/core
}}
   |type      = {{{type|}}}
</tr>
   |image      = {{{image|}}}
</table><noinclude>
  |imageright = {{{imageright|}}}
{{template doc}}
  |class     = {{{class|}}}
<!-- Add categories and inter-wikis to the /doc subpage, not here! -->
  |style      = {{{style|}}}
  |textstyle  = {{{textstyle|}}}
   |text       = {{{text}}}
   |date      = {{#ifeq:{{FULLROOTPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
  |{{#ifeq:{{{date|¬}}}|¬||{{CURRENTMONTHNAME}} {{CURRENTYEAR}}}}
  |{{{date|}}}
  }}
}}
}}{{Category handler
|main={{Ambox/category
  |cat={{{cat|{{{category|}}}}}}
  |all={{{all|}}}
  |cat2={{{cat2|{{{category2|}}}}}}
  |all2={{{all2|}}}
  |cat3={{{cat3|{{{category3|}}}}}}
  |all3={{{all3|}}}
   |date={{{date|}}}
}}
|template={{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|<!--We are on a rootpage, not a /doc or /sandbox page-->{{#ifeq:{{{nocat|}}}|true
    | <!--Don't categorise-->
    |
    }}
  }}
}}{{#ifeq:{{FULLPAGENAME}}|Template:{{PAGENAME:{{{name}}}}}
|{{#ifeq:{{{doc}}}|no|
  |{{Documentation}}<!-- Transclude documentation on template page -->
}}
}}<noinclude>
{{Documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
</noinclude>
</noinclude>

Latest revision as of 13:05, 7 May 2012