Module:Infobox MOS: Difference between revisions
added parent/sister scalesig checks for nL ns mosses |
m bugfix |
||
| Line 281: | Line 281: | ||
-- - If the input mos is a root mos, then it's its own sister | -- - If the input mos is a root mos, then it's its own sister | ||
local is_nL_ns = input_mos.nL == input_mos.ns | local is_nL_ns = input_mos.nL == input_mos.ns | ||
local parent_scalesig = is_nL_ns and mos.as_link(parent_mos) | local parent_scalesig = is_nL_ns and "none" or mos.as_link(parent_mos) | ||
local sister_scalesig = is_nL_ns and (mos.as_string(input_mos) .. " (self)") or mos.as_link(sister_mos) | local sister_scalesig = is_nL_ns and (mos.as_string(input_mos) .. " (self)") or mos.as_link(sister_mos) | ||
local soft_scalesig = mos.as_link(soft_child_mos) | local soft_scalesig = mos.as_link(soft_child_mos) | ||