Template:Tip: Difference between revisions

From Teopedia
No edit summary
No edit summary
Line 14: Line 14:
</noinclude><includeonly>{{#switch: {{{1|}}}
</noinclude><includeonly>{{#switch: {{{1|}}}
  | =
  | =
  | Alch. = {{#vardefine:tip|Alchemical sources}}
  | Alch = {{#vardefine:tip|Alchemical sources}} {{#vardefine:text|{{{1|}}}.}}
  | Arab. = {{#vardefine:tip|Arab traditions}}
  | Arab = {{#vardefine:tip|Arab traditions}} {{#vardefine:text|{{{1|}}}.}}
  | Assyr. = {{#vardefine:tip|Assyrian language}}
  | Assyr = {{#vardefine:tip|Assyrian language}} {{#vardefine:text|{{{1|}}}.}}
  | Eg. = {{#vardefine:tip|Egyptian mythology}}
  | Eg = {{#vardefine:tip|Egyptian mythology}} {{#vardefine:text|{{{1|}}}.}}
  | IAST = {{#vardefine:tip|International Alphabet of Sanskrit Transliteration}}
  | IAST = {{#vardefine:tip|International Alphabet of Sanskrit Transliteration}}{{#vardefine:text|{{{1|}}}.}}
  | Secret Doctrine
  | Secret Doctrine
  | SD = {{#vardefine:tip|''The Secret Doctrine'' by H.P.Blavatsky}}
  | SD = {{#vardefine:tip|''The Secret Doctrine'' by H.P.Blavatsky}} {{#vardefine:text|{{{1|}}}}}
  | Sk. = {{#vardefine:tip|Sanskrit language}}
  | Sk = {{#vardefine:tip|Sanskrit language}} {{#vardefine:text|{{{1|}}}.}}
  | Zohar = {{#vardefine:tip|''Zohar'' commentaries}}
  | Zohar = {{#vardefine:tip|''Zohar'' commentaries}} {{#vardefine:text|{{{1|}}}}}
}}  
}}  
{{#varexists: tip
{{#varexists: tip
  | <span style="border-bottom:1px dotted gray; cursor:help;" title="{{#var:tip}}">{{{1|}}}</span>  
  | <span style="border-bottom:1px dotted gray; cursor:help;" title="{{#var:tip}}">{{#var:text}}</span>  
  | {{{1|}}}  
  | {{{1|}}}  
}}</includeonly>
}}</includeonly>

Revision as of 10:24, 24 September 2018

This template will add pop-up tip.

Usage:

{{tip|}}

Example:

It was said in {{tip|SD}} that...

Result:

It was said in SD that...