Difference between revisions of "Template:Hint"
Jump to navigation
Jump to search
m (Remove empty line) |
(Add content to Usage and Example) |
||
Line 7: | Line 7: | ||
== Usage == | == Usage == | ||
<nowiki>{{Hint| | <nowiki>{{Hint|hint content}}</nowiki> | ||
== Example == | == Example == | ||
{{Hint|This is an hint.}} | <nowiki>{{Hint|This is an hint.}}</nowiki> | ||
<!-- | <!-- --> | ||
{{Hint | This is an hint.}} | |||
<!-- --> | |||
For a more flexible usage, it doesn't start with "'''Hint:'''" by default, | |||
you may add it manually with <code><nowiki>'''Hint:'''</nowiki></code>: | |||
<!-- --> | |||
<nowiki>{{Hint|'''Hint:''' This is another hint.}}</nowiki> | |||
<!-- --> | |||
{{Hint | '''Hint:''' This is another hint.}} | |||
<!-- --> | |||
== Technical notes == | == Technical notes == | ||
This template uses class <code>.template-box</code> and <code>.template-hint</code> | The boxes use | ||
This template uses class <code>.template-box</code> and <code>.template-hint</code>. | |||
In the future, if the [https://www.mediawiki.org/wiki/Extension:TemplateStyles TemplateStyles Extension] is installed on this MediaWiki instance, | In the future, if the [https://www.mediawiki.org/wiki/Extension:TemplateStyles TemplateStyles Extension] is installed on this MediaWiki instance, | ||
one may move the embedded inline styles to Template Style files. | one may move the embedded inline styles to Template Style files. | ||
Line 31: | Line 42: | ||
min-width: 16em; | min-width: 16em; | ||
min-height: 1.6em; | min-height: 1.6em; | ||
margin: .5em 0 | margin: .5em 0; | ||
padding: .5em 1em; | padding: .5em 1em; | ||
border: 1px solid #9bcdfd; | border: 1px solid #9bcdfd; |
Revision as of 09:05, 22 September 2021
This page is a template. Check out all pages using this template.
For more information, read Template:Template.
For more information, read Template:Template.
A hint box for showing helpful hints.
Usage
{{Hint|hint content}}
Example
{{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.
Technical notes
The boxes use
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.
See also
- ArchWiki: Template:Tip: the template on which this one is based on
- Template:Note
- Template:Warning