Vorlage:Ambox: Unterschied zwischen den Versionen

lokalisiert
Keine Bearbeitungszusammenfassung
(lokalisiert)
Zeile 1: Zeile 1:
<table class="metadata plainlinks ambox  
<table class="metadata plainlinks ambox  
{{#switch:{{{type|}}}
{{#switch:{{{type|}}}
| speedy    = ambox-speedy
| schnell    = ambox-speedy
| delete     = ambox-delete
| löschen     = ambox-delete
| content   = ambox-content
| inhalt   = ambox-content
| style      = ambox-style
| style      = ambox-style
| move       = ambox-move
| verschieben       = ambox-move
| protection = ambox-protection
| schutz = ambox-protection
| notice     <!-- notice = default -->
| notiz     <!-- notice = default -->
| #default  = ambox-notice
| #default  = ambox-notice
}}" style="{{{style|}}}">
}}" style="{{{style|}}}">
<tr>
<tr>
{{#ifeq:{{{image|}}}|none
{{#ifeq:{{{bild|}}}|none
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td style="border: none; padding: 0px; width: 1px;"></td>
| <td class="mbox-image"><div style="width: 52px;">
| <td class="mbox-image"><div style="width: 52px;">
   {{#ifeq:{{{image|}}}|blank
   {{#ifeq:{{{bild|}}}|blank
   | &nbsp;
   | &nbsp;
   | {{#if:{{{image|}}}
   | {{#if:{{{bild|}}}
     | {{{image}}}
     | {{{image}}}
     | {{#switch:{{{type|}}}
     | {{#switch:{{{typ|}}}
       | speedy     = [[Image:Ambox speedy deletion.png|40x40px]]
       | schnell     = [[Bild:Ambox speedy deletion.png|40x40px]]
       | delete     = [[Image:Ambox deletion.png|40x40px]]
       | löschen     = [[Bild:Ambox deletion.png|40x40px]]
       | content   = [[Image:Ambox content.png|40x40px]]
       | inhalt   = [[Bild:Ambox content.png|40x40px]]
       | style      = [[Image:Ambox style.png|40x40px]]
       | style      = [[Bild:Ambox style.png|40x40px]]
       | move       = [[Image:Ambox move.png|40x40px]]
       | verschieben       = [[Bild:Ambox move.png|40x40px]]
       | protection = [[Image:Ambox protection.png|40x40px]]
       | schutz = [[Bild:Ambox protection.png|40x40px]]
       | notice     <!-- notice = default -->
       | notiz     <!-- notice = default -->
       | #default  = [[Image:Ambox notice.png|40x40px]]
       | #default  = [[Bild:Ambox notice.png|40x40px]]
       }}
       }}
     }}
     }}
Zeile 32: Zeile 32:
}}
}}
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
<td class="mbox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
{{#if:{{{imageright|}}}
{{#if:{{{bildrechts|}}}
| <td class="mbox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
| <td class="mbox-imageright"><div style="width: 52px;"> {{{bildrechts}}} </div></td>
}}
}}
</tr>
</tr>
</table><!-- Detect and report usage with faulty "type" parameter:
</table><!-- Detect and report usage with faulty "typ" parameter:
-->{{#switch:{{{type|}}}
-->{{#switch:{{{typ|}}}
|  <!-- No type fed, is also valid input -->
|  <!-- No type fed, is also valid input -->
| speedy
| schnell
| delete
| löschen
| content
| inhalt
| style
| style
| move
| verschieben
| protection
| schutz
| notice     =    <!-- Do nothing, valid "type" -->
| notiz     =    <!-- Do nothing, valid "type" -->
| #default  = <div style="text-align: center;">Diese Message Box nutzt einen invaliden "type={{{type|}}}" Parameter und muss gefixt werden.</div>[[Kategorie:{{SITENAME}} Message Box Parameter muss gefixt werden|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace -->
| #default  = <div style="text-align: center;">Diese Message Box nutzt einen invaliden "typ={{{typ|}}}" Parameter und muss gefixt werden.</div>[[Kategorie:{{SITENAME}} Message Box Parameter muss gefixt werden|{{main other|Main:}}{{FULLPAGENAME}}]]
}}<noinclude>
}}<noinclude>
{{Dokumentation}}
{{Dokumentation}}
</noinclude>
</noinclude>