« Modèle:Tip » : différence entre les versions

Un livre de Wikilivres.
Contenu supprimé Contenu ajouté
Iarlagab (discussion | contributions)
Création : <includeonly><span title="{{#if:{{{3|}}}|{{{2}}} = {{{3}}}|{{{1}}} = {{{2}}}}}" style="border-bottom:1px dotted">{{{1}}}</span></includeonly><noinclude>This template creates tooltips, i....
 
Iarlagab (discussion | contributions)
Aucun résumé des modifications
Ligne 2 : Ligne 2 :


In the case of two parameters, the syntax is as follows:
In the case of two parameters, the syntax is as follows:
<nowiki>{{C|Wörter|words}}</nowiki>
<nowiki>{{CC|Wörter|words}}</nowiki>
yielding the following output:
yielding the following output:
:{{C|Wörter|words}}
:{{CC|Wörter|words}}
"Wörter" is the text the reader will see. The tooltip provides the text "Wörter = words".
"Wörter" is the text the reader will see. The tooltip provides the text "Wörter = words".


Ligne 10 : Ligne 10 :
<nowiki>{{C|Wörter|das Wort|word}}</nowiki>
<nowiki>{{C|Wörter|das Wort|word}}</nowiki>
yielding the output:
yielding the output:
:{{C|Wörter|das Wort|word}}
:{{CC|Wörter|das Wort|word}}
Here, the tooltip provides the text "das Wort = words", that is it does not repeat the original text but shows a different one.</noinclude>
Here, the tooltip provides the text "das Wort = words", that is it does not repeat the original text but shows a different one.</noinclude>

Version du 11 février 2008 à 20:57

This template creates tooltips, i. e. small texts that show up when the mouse cursor hovers over a piece of text. It serves to show vocabulary translations in the language project Freistil. This template takes two or three parameters, making it flexible in dealing with word-by-word translations as well as more general translations that also provide the basic form of the translated term.

In the case of two parameters, the syntax is as follows:

{{CC|Wörter|words}}

yielding the following output:

Wörter

"Wörter" is the text the reader will see. The tooltip provides the text "Wörter = words".

In the case of three parameters, the syntax is as follows:

{{C|Wörter|das Wort|word}}

yielding the output:

Wörter

Here, the tooltip provides the text "das Wort = words", that is it does not repeat the original text but shows a different one.