Template:Ambox

Z PMD 85 Infoserver

(Rozdiel medzi revíziami)
Djb (Diskusia | príspevky)
(zjednodusenie)
Djb (Diskusia | príspevky)
(dobre a dost, nebudu to delat)
Riadok 1: Riadok 1:
-
<table class="metadata plainlinks ambox ambox-{{type|notice}}">
+
<table class="metadata plainlinks ambox
 +
{{#switch:{{{type|}}}
 +
| serious = ambox-serious
 +
| content = ambox-content
 +
| style = ambox-style
 +
| merge = ambox-merge
 +
| #default = ambox-notice
 +
}}" style="{{{style|}}}">
<tr>
<tr>
<td class="ambox-image">
<td class="ambox-image">
-
{{#ifeq:{{{image}}}|none
+
{{#ifeq:{{{image|}}}|none
-
| <!-- no image cell; empty cell necessary for text cell to have 100% width -->
+
| <!-- No image. -->
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
| <div style="width:52px;"> {{#switch:{{{image|{{{type|}}}}}}
| serious = [[Image:Stop hand nuvola.png|40px]]
| serious = [[Image:Stop hand nuvola.png|40px]]
Riadok 14: Riadok 21:
}}</div>
}}</div>
}}</td>
}}</td>
-
<td class="ambox-text" {{#if:{{{style|}}}|style="{{{style}}}"}}>{{{text}}}</td>
+
<td class="ambox-text" style="{{{textstyle|}}}"> {{{text}}} </td>
-
{{#if: {{{imageright|}}}|
+
{{#if:{{{imageright|}}}
-
<td class="ambox-imageright"><div style="width:52px;">{{{imageright}}}</div></td>
+
| <td class="ambox-imageright"><div style="width: 52px;"> {{{imageright}}} </div></td>
}}
}}
</tr>
</tr>
Riadok 30: Riadok 37:
| imageright = [[Image:Some image.png|40px]]
| imageright = [[Image:Some image.png|40px]]
| style = hodnota CSS
| style = hodnota CSS
 +
| textstyle = hodnota CSS
| text = Telo textu správy.
| text = Telo textu správy.
}}</pre>
}}</pre>

Verzia zo dňa a času 10:58, 12. január 2025

Dokumentácia

Obsah

Typy amboxov

Všetky štýly

{{ambox
 | type  = serious / content / style / merge / growth / notice
 | image = none / blank / [[Obrázok:Nejaky_obrazok.png|40px]]
 | imageright = [[Image:Some image.png|40px]]
 | style = hodnota CSS
 | textstyle = hodnota CSS
 | text  = Telo textu správy. 
 }}

Prednastavené obrázky

Iné obrázky

Špeciálne prípady