Difference between revisions of "Template:Hint"

From PINE64
Jump to navigation Jump to search
(Use class="messagebox")
(Refactor again)
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
 +
<!--    -->
 
{{Template}}
 
{{Template}}
 +
 +
A hint box for showing helpful hints.
  
 
== Usage ==
 
== Usage ==
  
<pre><nowiki>{{Hint|This is an hint.}}</nowiki></pre>
+
<nowiki>{{Hint|This is an hint.}}</nowiki>
  
 
== Example ==
 
== Example ==
  
 
{{Hint|This is an hint.}}
 
{{Hint|This is an hint.}}
</noinclude><includeonly><div class="messagebox" style="
 
  
 +
== Technical notes ==
 +
 +
This template uses class <code>.template-box</code> and <code>.template-hint</code> to make the output HTML more parsable.
 +
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.
 +
 +
== See also ==
 +
 +
* [https://wiki.archlinux.org/title/Template:Tip ArchWiki: Template:Tip]: the template on which this one is based on
 +
* [[Template:Note]]
 +
* [[Template:Warning]]
 +
<!--                  -->
 +
</noinclude><includeonly>
 +
<!--                  -->
 +
<div role="note" class="template-box template-hint" style="
 
display: table;
 
display: table;
 
min-width: 16em;
 
min-width: 16em;
 
min-height: 1.6em;
 
min-height: 1.6em;
margin: .5em 0;
+
margin: .5em 0 1em;
 +
padding: .5em 1em;
 +
border: 1px solid #9bcdfd;
 
color: #003670;
 
color: #003670;
 
background-color: #d1ecfd;
 
background-color: #d1ecfd;
border-color: #9bcdfd;
+
">{{{1|}}}</div>
 
+
<!--      -->
">{{{1|}}}</div></includeonly>
+
</includeonly>

Revision as of 05:20, 22 September 2021

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.

Usage

{{Hint|This is an hint.}}

Example

This is an hint.


Technical notes

This template uses class .template-box and .template-hint to make the output HTML more parsable. 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