Template:Ombox/doc: Difference between revisions
Importing from Wikipedia:Template:Ombox/doc (partial: flagging the prohibited word filter?) |
→Introduction: Trying more of the doc |
||
Line 18: | Line 18: | ||
When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here. | When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here. | ||
=== Usage === | |||
Simple usage example: | |||
<syntaxhighlight lang="wikitext"> | |||
{{ombox | |||
| text = Some text. | |||
}} | |||
</syntaxhighlight> | |||
{{ombox | text = Some text.}} | |||
{{clear}} | |||
Complex example: | |||
<syntaxhighlight lang="wikitext"> | |||
{{ombox | |||
| type = style | |||
| image = [[File:Emblem-question-yellow.svg|40px]] | |||
| style = width: 400px; | |||
| textstyle = color: red; font-weight: bold; font-style: italic; | |||
| text = The message body text. | |||
}} | |||
</syntaxhighlight> | |||
{{ombox | |||
| type = style | |||
| image = [[File:Emblem-question-yellow.svg|40px]] | |||
| style = width: 400px; | |||
| textstyle = color: red; font-weight: bold; font-style: italic; | |||
| text = The message body text. | |||
}} | |||
{{clear}} | |||
=== Other pages message box types === | |||
The following examples use different '''type''' parameters but use no image parameters; thus, they use the default images for each type. | |||
{{ombox | |||
| type = speedy | |||
| text = type=<u>speedy</u> – Speedy deletion templates. | |||
}} | |||
{{ombox | |||
| type = delete | |||
| text = type=<u>delete</u> – Deletion templates. | |||
}} | |||
{{ombox | |||
| type = content | |||
| text = type=<u>content</u> – Major warnings and problems, such as {{tl|high-use}}. | |||
}} | |||
{{ombox | |||
| type = style | |||
| text = type=<u>style</u> – Minor warnings and problems. {{tl|Intricate template}} should perhaps use this type. | |||
}} | |||
{{ombox | |||
| type = notice | |||
| text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. Such as {{tl|guideline}} and {{tl|Wikipedia how-to}}. | |||
}} | |||
{{ombox | |||
| type = move | |||
| text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals. | |||
}} | |||
{{ombox | |||
| type = protection | |||
| text = type=<u>protection</u> – Protection templates such as {{tl|pp}} when shown on "other pages". | |||
}} |