יחידה:גרפים: הבדלים בין גרסאות בדף
כשיש קישור ב-legend |
|||
| שורה 127: | שורה 127: | ||
local addprec = percent and string.format( ' (%0.1f%%)', value / sum * 100 ) or '' | local addprec = percent and string.format( ' (%0.1f%%)', value / sum * 100 ) or '' | ||
legends[i] = mw.ustring.format( '%s: %s%s%s%s', names[i], prefix, lang:formatNum( value ), suffix, addprec ) | legends[i] = mw.ustring.format( '%s: %s%s%s%s', names[i], prefix, lang:formatNum( value ), suffix, addprec ) | ||
links[i] = mw.text.trim( links[i] or mw.ustring.format( '[[#noSuchAnchor|%s]]', legends[i] ) ) | links[i] = mw.text.trim( links[i] or mw.ustring.format( '[[#noSuchAnchor|%s]]', mw.ustring.gsub( legends[i] or '', '[%[%]]', '' ) ) ) | ||
end | end | ||
end | end | ||