Modul:PageTree: Unterschied zwischen den Versionen

update
w>PerfektesChaos
(updates)
w>PerfektesChaos
(update)
Zeile 1: Zeile 1:
--[=[ 2014-11-14
--[=[ 2014-12-01
Module:pageTree
Module:pageTree
]=]
]=]
Zeile 255: Zeile 255:
                             e.super = fair( e.super )
                             e.super = fair( e.super )
                         end
                         end
                     else
                     elseif e.super == nil then
                         e.super = father( s )
                         e.super = father( s )
                     end
                     end
Zeile 493: Zeile 493:
     local let = true
     local let = true
     for k, v in pairs( Current.pages ) do
     for k, v in pairs( Current.pages ) do
         if not v.super then
         if v.super == nil then
             flow( k )
             flow( k )
         elseif not Current.pages[ v.super ] then
         elseif not Current.pages[ v.super ] then
Zeile 611: Zeile 611:
     --    ancestor  -- string, with name of root element, or false
     --    ancestor  -- string, with name of root element, or false
     -- Returns string with story
     -- Returns string with story
    local higher
     local sup = Current.self
     local sup = Current.self
     local r
     local higher, i, r
     if ancestor then
     if ancestor then
         higher = Current.pages[ ancestor ]
         higher = Current.pages[ ancestor ]
         if type( higher ) == "table" then
         if type( higher ) == "table" then
             higher.super = false
             higher.super = false
        end
    else
        local point = Current.pages[ sup ]
        if not point  or  point.list == false then
            sup = true
         end
         end
     end
     end
     while true do
     for i = Current.maxSub, 0, -1 do
         higher = Current.pages[ sup ]
         higher = Current.pages[ sup ]
         if type( higher ) == "table" then
         if type( higher ) == "table" then
Zeile 626: Zeile 630:
             sup        = higher.super
             sup        = higher.super
             if not sup then
             if not sup then
                 break    -- while
                 break    -- for
             end
             end
         else
         else
             higher = false
             higher = false
             break    -- while
             break    -- for
         end
         end
     end -- while true
     end   -- for --i
     if higher then
     if higher then
         r = follow( flag( "*" ),  1,  higher,  false )
         r = follow( flag( "*" ),  1,  higher,  false )
Anonymer Benutzer