Module:Guidance: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Camenati
No edit summary
imported>Camenati
No edit summary
Line 173: Line 173:
             if ts ~= nil then
             if ts ~= nil then
                 rd = jumpscareBanner
                 rd = jumpscareBanner
            else
                rd = frame:expandTemplate {
                    title = "ambox",
                    args = {
                        small = "left",
                        type = "content",
                        nocat = "yes",
                        image = "[[File:Avid-jumpscare-ace.png|50px]]",
                        style = "margin:auto;max-width:480px;width:inherit;background:#fcfcfc;border: 0px solid #a2a9b1;border-left: 15px solid #da0c3f;padding: 10px 0 10px 0.5em;",
                        text = "This logo contains " .. rd .. "."
                    }
                }
            end
        elseif string.find(frame.args[1], "flashing") then
            local flashingBanner = frame:expandTemplate {
                title = "ambox",
                args = {
                    small = "left",
                    type = "content",
                    nocat = "yes",
                    image = "[[File:Alert icon.png|30px]]",
                    style = "margin:auto;max-width:480px;width:inherit;background:#fcfcfc;border: 0px solid #a2a9b1;border-left: 15px solid #da0c3f;padding: 10px 0 10px 0.5em;",
                    text = "This logo contains " .. rd .. "."
                }
            }
            if ts ~= nil then
                rd = flashingBanner
             else
             else
                 rd = frame:expandTemplate {
                 rd = frame:expandTemplate {
Line 186: Line 213:
                 }
                 }
             end
             end
        elseif string.find(frame.args[1], "flashing") then
            rd = b[4]
         end
         end
     end
     end
Anonymous user

Navigation menu