Template:RaceInfo: Difference between revisions
Jump to navigation
Jump to search
(Created page with "<includeonly>{{#invoke:RaceData|raceInfo|{{{1}}}}}</includeonly> <noinclude> == Usage == Displays basic information about a race. === Syntax === <pre> {{RaceInfo|Race Name}} </pre> === Example === <pre> {{RaceInfo|Minx (Dragon-kin)}} </pre> === Available Races === {{#invoke:RaceData|listAllRaces}} Category:Race Templates </noinclude>") |
mNo edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#invoke:RaceData| | <includeonly>{{#invoke:RaceData|getRaceInfo|{{{1}}}}}</includeonly> | ||
<noinclude> | <noinclude> | ||
== Usage == | == Usage == | ||
Use in character infoboxes. Shows race name as a clickable colored link with hover tooltip. | |||
'''Syntax:''' | |||
<pre> | <pre>{{RaceInfo|Race Name}}</pre> | ||
{{RaceInfo|Race Name}} | |||
</pre> | |||
'''Example:''' | |||
<pre> | <pre>{{RaceInfo|Mortal}}</pre> | ||
{{RaceInfo| | |||
</pre> | |||
=== | 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: <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]] | |||
* Links to: [[Mortal (Race)]] | |||
== See Also == | |||
* [[Template:RaceInfobox]] - For displaying full race information on race pages | |||
* [[Module:RaceData]] - The underlying module | |||
[[Category:Race Templates]] | [[Category:Race Templates]] | ||
</noinclude> | </noinclude> | ||
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
- Template:RaceInfobox - For displaying full race information on race pages
- Module:RaceData - The underlying module