用户:Mathglot/sandbox/Templates/Tmboxw:修订间差异
UJNWiki>Mathglot 小 (Mathglot moved page Template:Tmboxw to User:Mathglot/sandbox/Templates/Tmboxw without leaving a redirect) |
(没有差异)
|
2022年12月14日 (三) 01:43的版本
| 文件:Ambox notice.png | Aliquam vehicula sem ut pede. Cras purus lectus, egestas eu, vehicula at, imperdiet sed, nibh. Morbi consectetuer luctus felis. Donec vitae nisi. Aliquam tincidunt feugiat elit. |
Error: {{Template rating}} must be placed in the Template namespace. This template is a workaround designed to replace {{tmbox}} in order to enable mobile users to view tmboxes that are otherwise hidden from them due to mobile bug T257394. Replacing an existing {{tmbox}} invocation by {{tmboxw}} should not affect desktop viewers.
Usage
Simple usage example:
{{tmboxw | text = Some text.}}
| 文件:Ambox notice.png | Some text. |
Complex example:
{{tmboxw
| type = style
| image = [[File:Emblem-question-yellow.svg|40px|link=|alt=]]
| style = width: 400px;
| textstyle = color: red; font-weight: bold; font-style: italic;
| text = The message body text.
}}
| 文件:Emblem-question-yellow.svg | The message body text. |
Note: examples below are transcluded from {{tmbox/doc}}; in place of 'tmbox' on the rest of this page, please use 'tmboxw' instead.
Tip: mobile users may achieve better results in landscape mode on small devices, which will, for example, satisfactorily render {{Talk header}} templates which would be clipped in portrait mode.
Parameters
{{#section-h:Template:Tmbox/doc|Parameters}}
Technical details
{{#section-h:Template:Tmbox/doc|Technical details}}
See also
This template is based on {{tmbox}} and mimics its look and feel. {{#section-h:Template:Tmbox/doc|See also}}