“模板:Hint”的版本间的差异

来自Wiki-Orange Pi
跳转至: 导航搜索
(创建页面,内容为“<noinclude> {{Template}} A hint box for showing helpful hints. == 关于我们 == <nowiki>{{Hint|hint content}}</nowiki> == 开源硬件 == <nowiki>{{Hint|Thi…”)
 
(没有差异)

2022年6月14日 (二) 10:50的最新版本

This page is a template. Check out all pages using this template.
For more information, read Template:Template.

A hint box for showing helpful hints.

关于我们

{{Hint|hint content}}

开源硬件

{{Hint|This is an hint.}}
This is an hint.

For a more flexible usage, it doesn't start with "Hint:" by default, you may add it manually with '''Hint:''':

{{Hint|'''Hint:''' This is another hint.}}
Hint: This is another hint.

开源软件

The boxes use display: table to support both adaptive width and floating siblings, all other alternatives can't archive them as perfect as this solution within just one HTML element. However, it has its own flaw, if you put it into another table, its padding will gone. Avoid putting hints, notes and warnings into any tables until solution was found, or we give up and use two elements for just one box.

This template uses class .template-box and .template-hint. In the future, if the TemplateStyles Extension is installed on this MediaWiki instance, one may move the embedded inline styles to Template Style files.

定制服务