Template:Ctd-source: Difference between revisions

From Teopedia
No edit summary
No edit summary
Line 18: Line 18:
[[Category: Templates]]
[[Category: Templates]]
</noinclude><includeonly>{{#switch: {{lc: {{{1|}}}}}
</noinclude><includeonly>{{#switch: {{lc: {{{1|}}}}}
  | Theosophical Glossary
  | theosophical glossary
  | TG = {{#vardefine:tip|'Theosophical Glossary' by H. P. Blavatsky}} {{#vardefine:text|TG}} [[Category: Theosophical Glossary (ETG terms)]]  
  | tg = {{#vardefine:tip|'Theosophical Glossary' by H. P. Blavatsky}} {{#vardefine:text|TG}} [[Category: Theosophical Glossary (ETG terms)]]  
  | Secret Doctrine
  | secret doctrine
  | SD = {{#vardefine:tip|'The Secret Doctrine' by H. P. Blavatsky}} {{#vardefine:text|SD}} [[Category: Secret Doctrine (ETG terms)]]
  | sd = {{#vardefine:tip|'The Secret Doctrine' by H. P. Blavatsky}} {{#vardefine:text|SD}} [[Category: Secret Doctrine (ETG terms)]]
  | wp = {{#vardefine:tip|Wikipedia}} {{#vardefine:text|WP}} [[Category: Secret Doctrine (ETG terms)]]
  | wp = {{#vardefine:tip|Wikipedia}} {{#if: {{{2|}}}|{{#vardefine:text|WP, [[wp:{{{2}}}|{{{2}}}]]}} |{{#vardefine:text|WP}}}} [[Category: Secret Doctrine (ETG terms)]]
  | #default = {{#vardefine:tip|}} {{#vardefine:text|{{{1|}}}}}
  | #default = {{#vardefine:tip|}} {{#vardefine:text|{{{1|}}}}}
}}{{#varexists: tip|<span style="color: grey; font-style: italic; border-bottom:1px dotted gray; cursor:help;" title="{{#var:tip}}">({{#var:text}})</span>|{{{1|}}}}}</includeonly>
}}{{#varexists: tip|<span style="color: grey; font-style: italic; border-bottom:1px dotted gray; cursor:help;" title="{{#var:tip}}">({{#var:text}}).</span>|{{{1|}}}}}</includeonly>

Revision as of 00:18, 19 September 2021

This template is used to add the source of information in ETG article. It adds a short version of the title and pop-up tip with full version of it.

Usage:

{{etg-source|}}

Values:


Example:

The first Abhijñâ is Divyachakchus, the instantaneous view of anything one wills to see {{etg-source|TG}} 

Result:

The first Abhijñâ is Divyachakchus, the instantaneous view of anything one wills to see(TG)..