Template:Hint: Difference between revisions

From Calidus HUB
(Initial Creation)
 
m (Minor correction)
 
(2 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">|}}[[Image:hint.svg|18px|hint|link=]] '''Hint:''' {{#if: {{{1|}}}|{{{1}}}</span></div>}}</includeonly><noinclude>
<includeonly>{{#if: {{{1|}}}|<div class="block-note"><span class="block-contents">|}}[[Image:hint.png|18px|hint|link=]] '''Hint:''' {{#if: {{{1|}}}|{{{1}}}</span></div>}}</includeonly><noinclude>
<templatedata>
<templatedata>
{
{
"description": "The following displays the Hint icon and the word 'Hint:'.  You can follow this with whatever text/images/markup you like. {{Note}} Try this!. Alternatively, you can pass the warning text as the parameter, for example {{Note|Try this!}}.",
"description": "The following displays the Hint icon and the word 'Hint:'.  You can follow this with whatever text/images/markup you like. {{Hint}} Try this!. Alternatively, you can pass the hint text as the parameter, for example {{Hint|Try this!}}.",
"params": {
"params": {
"1": {
"1": {
Line 15: Line 15:
}
}
</templatedata>
</templatedata>
{{Hint|This is a hint}}
[[Category:Templates|{{PAGENAME}}]]
[[Category:Templates|{{PAGENAME}}]]
</noinclude>
</noinclude>

Latest revision as of 10:23, 22 July 2025

The following displays the Hint icon and the word 'Hint:'. You can follow this with whatever text/images/markup you like. {{Hint}} Try this!. Alternatively, you can pass the hint text as the parameter, for example {{Hint|Try this!}}.

Template parameters

ParameterDescriptionTypeStatus
Text to be included1

Hint text to be displayed in-line and indented.

Stringoptional
hint Hint: This is a hint