Difference between revisions of "Template:Tooltip"

From Morloch Wiki
Jump to: navigation, search
 
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
 
{{ti}}
 
{{ti}}
 +
<noinclude>
 +
== Parameters ==
 +
* '''title''': the name of the item, power, skill, etc.
 +
* '''titlecolor''': the color of the title.
 +
** Default is "magic item" blue '''#6B82CE'''.
 +
** Power tooltips use '''#EA7675'''.
 +
** Custom formula items use '''#D5C6AF'''.
 +
* '''info''': the meat of the tool tip. use double line breaks to add gaps (<nowiki><br><br></nowiki>).
 +
** Stats modified by enchantments are colored blue using the following code: '''<nowiki><span style="color:#6b82ce";>magic effect</span></nowiki>'''.
 +
<br><br><br>
 +
</noinclude>
 
<span id="slide" style="pointer-events: none;"><p>
 
<span id="slide" style="pointer-events: none;"><p>
 
{| style="background-color: rgba(0, 0, 0, 0.75); vertical-align: top;"
 
{| style="background-color: rgba(0, 0, 0, 0.75); vertical-align: top;"
Line 8: Line 19:
 
|-
 
|-
 
|  
 
|  
| align="center" cellpadding="20"|<span style="text-shadow: 2px 2px 3px black; font-size:160%; color:{{{titlecolor|#6b82ce}}}; font-family: Procopius;">{{{title|Item Title}}}</span>
+
| align="center" cellpadding="20"|<span style="text-shadow: 2px 2px 3px black; font-size:165%; color:{{{titlecolor|#6b82ce}}}; font-family: Procopius;">{{{title|Item Title}}}</span>
 
|  
 
|  
 
|-
 
|-
Line 14: Line 25:
 
|-
 
|-
 
|
 
|
| align="center" |<span style="text-shadow: 2px 2px 3px black; color:white; font-size:120%; font-family: 'Procopius';"> {{{info|Tooltip Info Appears Here}}}</span>
+
| align="center" |<span style="text-shadow: 2px 2px 3px black; color:white; font-size:125%; font-family: 'Procopius';"> {{{info|Tooltip Info Appears Here}}}</span>
 
|
 
|
 
|-
 
|-

Latest revision as of 21:22, 15 February 2018

Template:Tooltip is used for adding this template to a page.

How to Use Template:Tooltip

  • This template can be added to a page by typing the following in the page's code with any applicable parameters inserted after the name:
{{Tooltip}}

Raw Example of Template:Tooltip

Parameters

  • title: the name of the item, power, skill, etc.
  • titlecolor: the color of the title.
    • Default is "magic item" blue #6B82CE.
    • Power tooltips use #EA7675.
    • Custom formula items use #D5C6AF.
  • info: the meat of the tool tip. use double line breaks to add gaps (<br><br>).
    • Stats modified by enchantments are colored blue using the following code: <span style="color:#6b82ce";>magic effect</span>.




             
Item Title
 
Tooltip Info Appears Here