[sunting] [versi terdahulu] [hapus singgahan] Ikon dokumentasi Dokumentasi templat

Purpose sunting

This template allows a Tooltip to be associated with a particular word or phrase, that is when the mouse (or other pointing device) is over the target word or phrase, another word or phrase pops up in a box.

Usage sunting

:({{Tooltip|J. F. R.|James Ford Rhodes}})

Gives...

(J. F. R.)

And

Many of these portraits bore inscriptions, the most famous of which was Turgot's line, “{{Tooltip|Eripuit fulmen coelo sceptrumque tyrannis.|He snatched the lightning from the skies and the scepter from the tyrants.}}”

Gives...

Many of these portraits bore inscriptions, the most famous of which was Turgot's line, “Eripuit fulmen coelo sceptrumque tyrannis.

Parameters sunting

Named parameters are available

  • first parameter $1, is named parameter target, ie. target = J. F. R.
  • second parameter $2, is named parameter texttip, ie. texttip = James Ford Rhodes
{{Tooltip|target = J. F. R.|texttip = James Ford Rhodes}}
J. F. R.

Applications sunting

In Wikisource, this can be used to provide translations of foreign phrases in source material. These translations will be clearly differentiated from the source material itself since they pop up in a box. Another use would be to provide the author's full name when the source only provides initials, as in many 1911 Encyclopædia Britannica articles.

Note sunting

This template is being used as the underlying template for formatting other templates, so if changes are made, especially to parameters, please check their functionality. Linked templates