User:Kythyria/Sandbox

Proposal for navboxes
So, assuming we want to produce the following navbox:

Proposal three is more explicit, and may or may not be cleanly possible, depending on whether  or an equivalent is available:

p.navbox = function return navbox{ title = l{"Redpower 2"}, mod = "RP2" collapsiblegroups=true -- are the top layer of groups collapsible sub-navboxes? highlightline{"This mod is gone"} group{ title = "Resources", list{ title = "Raw", ni{"Marble", "Marble (RedPower 2)", "Marble"}, ni{"Basalt", "Basalt (RedPower 2)","Basalt"}, }       list{ title = "Metal/Gems", list{ title="Ingots", ni{"Copper Ingot", "Copper", "Copper Ingot"}, ni{"Tin Ingot", "Tin", "Tin Ingot"}, ni{"Silver Ingot", "Silver", "Silver Ingot"}, },           list{ title="Nuggets", ni{"Tin Nugget", "Tin", "Tin Nugget"}, ni{"Iron Nugget", "Iron Nugget (RedPower 2)", "Iron Nugget"}, }       }    },    group{ title="Machines", list{ title="tubes", ni{"Pneumatic Tube"}, ni{"Restriction Tube"}, ni{"Magtube"}, ni{"Fluid Pipe", mod="RP2" "Fluid Pipe (RedPower 2)", "Fluid Pipe"} }   }    highlightline{"But not forgotten"} } end

return p -- The full advantages are not clear in this example, but essentially they make it