מדיה ויקי:Gadget-TemplateParamWizard.js: הבדלים בין גרסאות בדף
אם יש לתבנית תיאור, יופיע ברמז לקישור לדף התבנית |
הטקסט אינו בהכרח שם הפרמטר. יש להעביר את שם הפרמטר כ-data. |
||
| שורה 605: | שורה 605: | ||
function tipsyContent() { | function tipsyContent() { | ||
var | var | ||
paramName = $(this). | paramName = $(this).data('paramname'), | ||
def = templateParams[paramName], | def = templateParams[paramName], | ||
desc = def && def.desc || ''; | desc = def && def.desc || ''; | ||
| שורה 643: | שורה 643: | ||
$('<td>', {width: 120}) | $('<td>', {width: 120}) | ||
.css({fontWeight: 'bold', color: nameColor}) | .css({fontWeight: 'bold', color: nameColor}) | ||
.data({ paramname: paramName }) | |||
.text(templateParams[paramName].label || paramName) | .text(templateParams[paramName].label || paramName) | ||
.tipsy({html: true, trigger: 'manual', title: tipsyContent}) | .tipsy({html: true, trigger: 'manual', title: tipsyContent}) | ||