Sjabloon:Ambox/core: verschil tussen versies

Uit informatiestandaarden
Ga naar: navigatie, zoeken
(Undid revision 553595983 by Petrb (talk) Not all of those images are proteceted.)
 
k (1 versie: Van wikipedia)
 
(Een tussenliggende versie door dezelfde gebruiker niet weergegeven)
Regel 1: Regel 1:
<table class="metadata plainlinks ambox {{{class|}}}" style="{{{style|}}}">
+
<table class="metadata plainlinks ambox {{#switch:{{{small|}}}
<tr>{{#switch:{{{image|}}}
+
| left = mbox-small-left
|blank
+
}} {{#switch:{{{type|}}}
|none = <td class="mbox-empty-cell"></td>
+
| speedy     = ambox-speedy
|#default = <td class="mbox-image"><div style="width: 52px;">{{#if:{{{image|}}}
+
| delete     = ambox-delete
  |{{{image}}}
+
| content   = ambox-content
  |[[File:{{#switch:{{{type|}}}
+
| style     = ambox-style
  |speedy = Ambox speedy deletion.png
+
| move       = ambox-move
  |delete = Ambox deletion.png
+
| protection = ambox-protection
  |content = Ambox content.png
+
| check      = ambox-check
  |style = Edit-clear.svg
+
| notice     <!-- notice = default -->
  |move = Ambox move.png
+
| #default   = ambox-notice
  |protection = Ambox protection.png
+
}}" style="{{{style|}}}">
  |notice|#default = Ambox notice.png
+
<tr>
  }}|40x40px|link=|alt=]]
+
{{#switch:{{{image|}}}
}}</div></td>
+
| blank    <!-- Fall back to "none", since deprecated. -->
}}<td class="mbox-text" style="{{{textstyle|}}}"><span class="mbox-text-span">{{{issue|}}}<span class="hide-when-compact"> {{#if:{{{talk|}}}
+
| none = <td class="mbox-empty-cell"></td>  <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. -->
|{{#ifexist:{{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
+
| #default =
  |{{{talk}}}
+
  <td class="mbox-image">{{
  |{{TALKPAGENAME}}
+
  #switch:{{{small|}}}
 +
  | left = <!-- Don't use the DIV -->
 +
  | #default = <div style="width: 52px;">
 
   }}
 
   }}
   |&#32;Relevant discussion may be found on {{#ifeq:{{TALKPAGENAME:{{{talk}}}}}|{{FULLPAGENAME:{{{talk}}}}}
+
   {{#if:{{{image|}}}
   |[[{{{talk}}}|{{FULLPAGENAME:{{{talk}}}}}]]
+
  | {{{image}}}
  |the [[{{TALKPAGENAME}}#{{{talk}}}|talk page]]
+
  | [[File:{{#switch:{{{type|}}}
   }}.
+
    | speedy    = Important_icon.svg
}}
+
    | delete    = Important_icon.svg
}} {{{fix|}}}</span>{{#if:{{{date|}}}
+
    | content   = Emblem-important.svg
|&#32;<small>''({{{date}}})''</small>
+
    | style      = Edit_clear_icon.svg
}}<span class="hide-when-compact"> {{{info|}}}</span></span></td>{{#switch:{{{imageright|}}}
+
    | move      = Move_icon.svg
|none =
+
    | protection = Padlock_icon.svg
|=
+
    | check      = Conformance.svg
|#default = <td class="mbox-imageright"><div style="width: 52px;">{{{imageright}}}</div></td>
+
    | notice          <!-- notice = default -->
}}</tr></table><noinclude>
+
    | #default  = Information_icon.svg
 +
    }} | {{#switch:{{{small|}}}  
 +
      | left = 20x20px
 +
      | #default = 40x40px
 +
      }} |link=|alt=]]
 +
  }}{{#switch:{{{small|}}}
 +
  | left = <!-- Don't use the /DIV -->
 +
  | #default = </div>
 +
   }}</td>
 +
}}
 +
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
 +
{{#if:{{{imageright|}}}
 +
| {{#ifeq:{{{imageright|}}}|none
 +
  | <!-- No image. -->
 +
  | <td class="mbox-imageright">{{#switch:{{{small|}}}
 +
    | left = {{{imageright}}}
 +
    | #default = <div style="width: 52px;"> {{{imageright}}} </div>
 +
    }}</td>
 +
  }}
 +
}}
 +
</tr>
 +
</table><!--
 +
Detect and report usage with faulty "type" parameter:
 +
-->{{#switch:{{{type|}}}
 +
|   <!-- No type fed, is also valid input -->
 +
| speedy
 +
| delete
 +
| content
 +
| style
 +
| move
 +
| protection
 +
| check
 +
| notice    = <!-- Do nothing, valid "type" -->
 +
| #default  = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<!--
 +
Detect and report usage of deprecated "image=blank":
 +
-->{{#switch:{{{image|}}}
 +
| blank = [[Category:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
 +
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Huidige versie van 21 jul 2013 om 07:09

[aanmaken] Template documentation