Anonymous edits have been disabled on the wiki. If you want to contribute please login or create an account.


Warning for game developers: PCGamingWiki staff members will only ever reach out to you using the official press@pcgamingwiki.com mail address.
Be aware of scammers claiming to be representatives or affiliates of PCGamingWiki who promise a PCGW page for a game key.

Difference between revisions of "Template:Abbr/Documentation"

From PCGamingWiki, the wiki about fixing PC games
(Added explanation of template parameter)
m (Added to syntax example)
Line 3: Line 3:
  
 
;Arguments
 
;Arguments
 +
* {{Code|class}} - Optional;
 +
* {{Code|id}} - Optional;
 
* {{Code|1}} - Mandatory. Text the tooltip will be applied to;
 
* {{Code|1}} - Mandatory. Text the tooltip will be applied to;
 
* {{Code|2}} - Mandatory. Text in tooltip. Suppresses wiki syntax.
 
* {{Code|2}} - Mandatory. Text in tooltip. Suppresses wiki syntax.
* {{Code|class}} - Optional;
 
* {{Code|id}} - Optional;
 
 
* {{Code|template}} - Optional. Only used when inserted into another template.
 
* {{Code|template}} - Optional. Only used when inserted into another template.
  
 
;Syntax
 
;Syntax
 
<pre><nowiki>
 
<pre><nowiki>
{{Abbr|1|2|class=|id=}}
+
{{Abbr|1|2|class=|id=|template=}}
 
</nowiki></pre>
 
</nowiki></pre>
  
 
<includeonly>[[Category:General templates]]</includeonly>
 
<includeonly>[[Category:General templates]]</includeonly>
 
<noinclude>[[Category:Documentation templates]]</noinclude>
 
<noinclude>[[Category:Documentation templates]]</noinclude>

Revision as of 03:35, 3 April 2022

Description

Used to create hover tooltips, similar to the :hover CSS selector. Can be used within other templates in optional parameter is passed.

Arguments
  • class - Optional;
  • id - Optional;
  • 1 - Mandatory. Text the tooltip will be applied to;
  • 2 - Mandatory. Text in tooltip. Suppresses wiki syntax.
  • template - Optional. Only used when inserted into another template.
Syntax
{{Abbr|1|2|class=|id=|template=}}