Difference between revisions of "Template:Hint"

From Project: Gorgon Wiki
Jump to: navigation, search
m
(Tidying up Template documentation.)
Line 1: Line 1:
 
<abbr style="color:#484;font-weight:bold;" title="{{{1|Hint text goes here!}}}">Hint</abbr><noinclude>
 
<abbr style="color:#484;font-weight:bold;" title="{{{1|Hint text goes here!}}}">Hint</abbr><noinclude>
 +
__NOTOC__
 +
==Description==
 +
Use this template to hide spoiler-y information in a tooltip. This gives some room for players to look up articles without having too much info spoiled for them.
  
== Description ==
+
Additionally, Hints fit "inline" so they can be useful to tidy up sections of a page, where the Template:Spoiler is too big and doesn't play well in a table.
 +
 
 +
====Notes====
 +
* Summarize the hint because it won't use linebreaks or any formatting, and it shows on mouseover so too long text will not be readable.
 +
* <span style="color:red">Use single quotes instead of double quotes because the hint text is inserted in a html attribute!</span>
 +
* I am well aware that this isn't tablet friendly, but using the template is recommended as we can change this into a Javascript popup at a later time.
 +
 
 +
==Examples==
 +
Example of a hint for a NPC who "Loves Vegetarian Food":
 
<pre>
 
<pre>
{{Hint|<text>}}
+
{{Hint|Baked Beet +41, Hash Browns +11.}}
 
</pre>
 
</pre>
Use this template to add hints and spoilers to a page. The hint is hidden in a tooltip.
 
 
Try to summarize the hint to a sentence or two, because it won't use linebreaks or any formatting.
 
 
<span style="color:red">Use single quotes instead of double quotes because the hint text is inserted in a html attribute!</span>
 
  
 
[[Category:Formatting templates|Quote]]
 
[[Category:Formatting templates|Quote]]
 
</noinclude>
 
</noinclude>

Revision as of 07:48, 5 October 2014

Hint

Description

Use this template to hide spoiler-y information in a tooltip. This gives some room for players to look up articles without having too much info spoiled for them.

Additionally, Hints fit "inline" so they can be useful to tidy up sections of a page, where the Template:Spoiler is too big and doesn't play well in a table.

Notes

  • Summarize the hint because it won't use linebreaks or any formatting, and it shows on mouseover so too long text will not be readable.
  • Use single quotes instead of double quotes because the hint text is inserted in a html attribute!
  • I am well aware that this isn't tablet friendly, but using the template is recommended as we can change this into a Javascript popup at a later time.

Examples

Example of a hint for a NPC who "Loves Vegetarian Food":

{{Hint|Baked Beet +41, Hash Browns +11.}}