Template:RaceInfo: Difference between revisions

From MB Wiki
Jump to navigation Jump to search
mNo edit summary
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:
<noinclude>
<noinclude>
== Usage ==
== Usage ==
Use in character infoboxes. Shows race name as a clickable colored link with hover description.
Use in character infoboxes. Shows race name as a clickable colored link with hover tooltip.


'''Syntax:'''
'''Syntax:'''
Line 12: Line 12:


This will:
This will:
1. Display the race name as a colored clickable wikilink
1. Display the race name as a colored clickable link with dotted underline
2. Show race information in a hover tooltip
2. Show race information in a CSS-based hover tooltip
3. Add the character to appropriate race categories
3. Add the character to appropriate race categories
4. Use built-in browser tooltips (no JavaScript required)
4. Link to the full race page
5. Include "Click for full race page" message in tooltip


== Example Output ==
== Example Output ==
For "Mortal":
For "Mortal":
* Shows: <span style="color: #4CAF50; font-weight: bold;">Mortal</span> (with hover tooltip)
* Shows: <span style="color: #4CAF50; font-weight: bold; border-bottom: 1px dotted;">Mortal</span> (with CSS hover tooltip)
* Tooltip shows: Race name, category, subrace (if any), description, and "Click for full race page"
* Adds: [[Category:Standard Characters]] and [[Category:Mortal Characters]]
* Adds: [[Category:Standard Characters]] and [[Category:Mortal Characters]]
* Links to: [[Mortal (Race)]]
* Links to: [[Mortal (Race)]]

Latest revision as of 10:24, 22 January 2026


Usage

Use in character infoboxes. Shows race name as a clickable colored link with hover tooltip.

Syntax:

{{RaceInfo|Race Name}}

Example:

{{RaceInfo|Mortal}}

This will: 1. Display the race name as a colored clickable link with dotted underline 2. Show race information in a CSS-based hover tooltip 3. Add the character to appropriate race categories 4. Link to the full race page 5. Include "Click for full race page" message in tooltip

Example Output

For "Mortal":

  • Shows: Mortal (with CSS hover tooltip)
  • Tooltip shows: Race name, category, subrace (if any), description, and "Click for full race page"
  • Adds: and
  • Links to: Mortal (Race)

See Also