Difference between revisions of "Template:Ambox/core"

From RobotX
Jump to navigation Jump to search
m (1 revision imported)
m (Text replacement - "<tvar|(.*)>" to "")
Line 1: Line 1:
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}" role="presentation">
+
 
<tr>{{#switch:{{{image|}}}
+
{{#switch:{{{image|}}}
 
  |blank
 
  |blank
|none = <td class="mbox-empty-cell"></td>
+
 
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
+
{{#if:{{{image|}}}
 
   |{{{image}}}
 
   |{{{image}}}
 
   |[[File:{{#switch:{{{type|}}}
 
   |[[File:{{#switch:{{{type|}}}
Line 14: Line 14:
 
   |notice|#default = Ambox notice.png
 
   |notice|#default = Ambox notice.png
 
   }}|40x40px|link=|alt=]]
 
   }}|40x40px|link=|alt=]]
  }}</div></td>
+
 
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
+
  {{#if:{{{talk|}}}
 
  |{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
 
  |{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
 
   |{{{talk}}}
 
   |{{{talk}}}
Line 25: Line 25:
 
   }}.
 
   }}.
 
  }}
 
  }}
}} {{{fix|}}}</span>{{#if:{{{date|}}}
+
{{#if:{{{date|}}}
|&#32;<small>''({{{date}}})''</small>
+
 
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
+
{{#switch:{{{imageright|}}}
 
  |none =  
 
  |none =  
 
  |=
 
  |=
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
+
 
}}</tr></table><noinclude>
+
 
 
{{documentation}}
 
{{documentation}}
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 

Revision as of 16:12, 21 December 2019

{{#switch:

|blank

{{#if:

 |{{{image}}}
 |
{{#if:
|

{{#if:

{{#switch:

|none = 
|=


Template documentation[view] [edit] [history] [purge]

This is the {{ambox/core}} sub-template.

Do not use this template directly, use {{ambox}} instead.

This template is called from {{ambox}}. It holds almost all of the code for {{ambox}}, while {{ambox}} does parameter preprocessing. Thus simplifying the code in {{ambox/core}}.

For more documentation see {{ambox}}.