Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Template:Tooltip/doc: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Initial setup
 
Corrected the category
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
{{Documentation subpage}}
{{Documentation subpage}}
This template provides a text with a hover-event to show additional information.
This template provides a text with a hover-event to show additional information.
== Parameters ==
{{Template Parameter Table|1=
{{Template Parameter|text|Defines the text to be shown inline.|required=yes}}
{{Template Parameter|description|The text inside the box when the text gets hovered.|required=yes}}
}}


==Usage==
==Usage==
Syntax 1: <pre><nowiki>{{Tooltip|text=Words in text|description=Some additional text}}</nowiki></pre>
See the template's [[Template:Tooltip/testcases|testcases]]:
Syntax 2: <pre><nowiki>{{Tooltip|Word|Some additional text}}</nowiki></pre>
{{Template:Tooltip/testcases}}

Latest revision as of 20:11, 29 August 2019

This template provides a text with a hover-event to show additional information.

Parameters[edit]

Parameter name Required? Default value Description
text Yes (n/a) Defines the text to be shown inline.
description Yes (n/a) The text inside the box when the text gets hovered.

Usage[edit]

See the template's testcases:

Parameters by index
Wiki code
{{Tooltip|Word|Some additional text}}
Main version Word
Some additional text
Sandbox version Word
Some additional text


Parameters by name
Wiki code
{{Tooltip|text=Words in text|description=Some additional text}}
Main version Words in text
Some additional text
Sandbox version Words in text
Some additional text


Testing the tooltip within a list
Wiki code
* Item 1 at the beginning
* Item 2 with {{Tooltip|a tooltip|Some additional text}} in text
* Item 3 at the end
Main version
  • Item 1 at the beginning
  • Item 2 with a tooltip
    Some additional text
    in text
  • Item 3 at the end
Sandbox version
  • Item 1 at the beginning
  • Item 2 with a tooltip
    Some additional text
    in text
  • Item 3 at the end