Difference between revisions of "Template:Ambox/core"

From Game Detectives Wiki
Jump to: navigation, search
[unchecked revision][unchecked revision]
(moved Template:Ambox/core to Template:Mbox/core: We don't need umpteen different templates for different namespaces)
 
Line 1: Line 1:
#REDIRECT [[Template:Mbox/core]]
+
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}">
 +
<tr>{{#switch:{{{image|}}}
 +
|blank
 +
|none = <td class="mbox-empty-cell"></td>
 +
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
 +
  |{{{image}}}
 +
  |[[File:{{#switch:{{{type|}}}
 +
  |speedy = Ambox speedy deletion.png
 +
  |delete = Ambox deletion.png
 +
  |content = Ambox content.png
 +
  |style = Edit-clear.svg
 +
  |move = Ambox move.png
 +
  |protection = Ambox protection.png
 +
  |notice|#default = Ambox notice.png
 +
  }}|40x40px|link=|alt=]]
 +
}}</div></td>
 +
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
 +
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
 +
  |{{{talk}}}
 +
  |{{TALKPAGENAME}}
 +
  }}
 +
  |&#32;Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
 +
  |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
 +
  |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
 +
  }}.
 +
}}
 +
}} {{{fix|}}}</span>{{#if:{{{date|}}}
 +
|&#32;<small>''({{{date}}})''</small>
 +
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
 +
|none =
 +
|=
 +
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
 +
}}</tr></table><noinclude>
 +
{{documentation}}
 +
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 +
</noinclude>

Revision as of 15:55, 13 July 2012

<templatestyles src="Module:Documentation/styles.css"></templatestyles>
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}}.