יחידה:PropertyLink: הבדלים בין גרסאות בדף
expose the function |
מאין תקציר עריכה |
||
| שורה 317: | שורה 317: | ||
if missingTranslation then return missingLabelCategory( propertyName ) end | if missingTranslation then return missingLabelCategory( propertyName ) end | ||
-- bidi isolation - properly show mix or RTL and LTR statements | |||
if #resTable>1 then | |||
local isolateValues = {} | |||
local needIsolation = false | |||
for k,v in pairs(resTable) do | |||
needIsolation = needIsolation or string.find( v, '[a-zA-Z]') | |||
table.insert(isolateValues, mw.ustring.format('<span style="unicode-bidi:isolate">%s</span>', v)) | |||
end | |||
if needIsolation then resTable = isolateValues end | |||
end | |||
-- special case * - listify | -- special case * - listify | ||
if options['seperator'] == '*' and #resTable>1 then | if options['seperator'] == '*' and #resTable>1 then | ||