Zum Inhalt springen

Vorlage:Cmbox/Doku: Unterschied zwischen den Versionen

Updated the doc text and examples since the template now has hard coded styles and thus can be used for testing.
imported>Davidgothberg
(→‎Examples: Perhaps overkill and confusing to show how two boxes of the same colour stack here in the doc. {{imbox}} was already "fixed" by another editor.)
imported>Davidgothberg
(Updated the doc text and examples since the template now has hard coded styles and thus can be used for testing.)
Zeile 8: Zeile 8:
=== Under construction ===
=== Under construction ===


This template coding was copied from {{tl|ambox}} and is currently being adapted for use in category space. The box you see above is currently a mockup. It can't yet be used to build actual boxes with the design you see below.
This template coding was copied from {{tl|ambox}} and is currently being adapted for use in category space. Don't use this meta-template for real category message boxes yet, but you can use it for testing. It works almost exactly like {{tl|ambox}}, see full documentation there. This template currently uses hard coded styles.


=== Examples ===
=== Examples ===
Zeile 14: Zeile 14:
Too discuss these boxes and too see or make more examples go to the [[{{TALKPAGENAME}}|talk page]].
Too discuss these boxes and too see or make more examples go to the [[{{TALKPAGENAME}}|talk page]].


{{ambox
{{cambox
| style = margin: 3px 10%; border:4px solid #b22222; background: #efd2d2;
| type = speedy
| image = [[Image:Ambox warning pn2.svg|40x40px]]
| text = speedy
| text = speedy
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #efd2d2;
| type = delete
| image = [[Image:Ambox warning pn2.svg|40x40px]]
| text = delete
| text = delete
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #fce6cc;
| type = content
| image = [[Image:Ambox content.png|40x40px]]
| text = content
| text = content
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #fcf3d5;
| type = style
| image = [[Image:Broom icon.svg|40x40px]]
| text = style
| text = style
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #d2e8ff;
| type = notice
| image = [[Image:Ambox notice.png|40x40px]]
| text = notice
| text = notice
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #ead6f4;
| type = move
| image = [[Image:Merge-split-transwiki default.svg|40x40px]]
| text = move
| text = move
}}
}}
{{ambox
{{cambox
| style = margin: 0px 10%; border: 1px solid #aaa; background: #ececdb;
| type = protection
| image = [[Image:Padlock-silver-medium.svg|40x40px]]
| text = protection
| text = protection
}}
}}
Anonymer Benutzer