用户:Mathglot/sandbox/Templates/Tmboxw/doc:修订间差异
UJNWiki>Frietjes 无编辑摘要 |
小 (导入1个版本) |
(没有差异)
| |
2023年5月28日 (日) 00:50的最新版本
| 文件:Edit-copy green.svg | This is a documentation subpage for 用户:Mathglot/sandbox/Templates/Tmboxw. It may contain usage information, categories and other content that is not part of the original 用户 template page. |
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}}