Module:Guidance: Difference between revisions

Jump to navigation Jump to search
no edit summary
imported>Camenati
No edit summary
imported>Compooper
No edit summary
 
(14 intermediate revisions by 2 users not shown)
Line 88: Line 88:
                 nocat = "yes",
                 nocat = "yes",
                 image = "[[File:Sound icon.png|30px]]",
                 image = "[[File:Sound icon.png|30px]]",
                 style = "margin:auto;max-width:480px;width:inherit;background:#fcfcfc;border: 0px solid #a2a9b1;border-left: 15px solid #ffa800;padding: 10px 0 10px 0.5em;",
                 style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;border: 0px solid #a2a9b1;border-left: 15px solid #ffa800;padding: 10px 0 10px 0.5em;",
                 text = "The video of this logo '''may be too loud''' or severely distorted."
                 text = "'''The video of this logo may be too loud or severely distorted.'''"
             }
             }
         },
         },
Line 99: Line 99:
                 nocat = "yes",
                 nocat = "yes",
                 image = "[[File:Phone icon.png|30px]]",
                 image = "[[File:Phone icon.png|30px]]",
                 style = "margin:auto;max-width:480px;width:inherit;background:#fcfcfc;border: 0px solid #a2a9b1;border-left: 15px solid #ffa800;padding: 10px 0 10px 0.5em;",
                 style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;border: 0px solid #a2a9b1;border-left: 15px solid #ffa800;padding: 10px 0 10px 0.5em;",
                 text = "This logo '''contains an old telephone number'''. Please do not try to dial it."
                 text = "'''This logo contains an old telephone number. Please do not try to dial it.'''"
            }
        },
        frame:expandTemplate {
            title = "ambox",
            args = {
                small = "left",
                type = "style",
                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 a jump scare''' for the whole duration or at the specified timestamps."
             }
             }
         }
         }
Line 148: Line 137:
     end
     end
     if rd ~= nil then
     if rd ~= nil then
         rd = frame:expandTemplate {
         if string.find(frame.args[1], "jumpscare") then
            title = "ambox",
            local jumpscareBanner = frame:expandTemplate {
             args = {
                title = "ambox",
                 small = "left",
                args = {
                type = "content",
                    small = "left",
                nocat = "yes",
                    type = "content",
                image = "[[File:Alert icon.png|30px]]",
                    nocat = "yes",
                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;",
                    image = "[[File:Avid-jumpscare-ace.png|50px|link=]]",
                text = "This logo contains " .. rd .. "."
                    style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;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 = jumpscareBanner
            else
                rd = frame:expandTemplate {
                    title = "ambox",
                    args = {
                        small = "left",
                        type = "content",
                        nocat = "yes",
                        image = "[[File:Avid-jumpscare-ace.png|50px|link=]]",
                        style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;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:Avid-flashing-vivi.png|50px|link=]]",
                    style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;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
                rd = frame:expandTemplate {
                    title = "ambox",
                    args = {
                        small = "left",
                        type = "content",
                        nocat = "yes",
                        image = "[[File:Avid-flashing-vivi.png|50px|link=]]",
                        style = "margin:auto;max-width:480px;width:inherit;background:#f8f9fa;border: 0px solid #a2a9b1;border-left: 15px solid #da0c3f;padding: 10px 0 10px 0.5em;",
                        text = "'''This logo contains " .. rd .. ".'''"
                    }
                }
            end
         end
     end
     end
     if string.find(frame.args[1], "audio") then
     if string.find(frame.args[1], "audio") then
Line 172: Line 205:
         else
         else
             rd = b[2]
             rd = b[2]
        end
    end
    if string.find(frame.args[1], "jumpscare") then -- Check for "jumpscare" and add the corresponding banner
        if ts ~= nil then -- If timestamps are specified, display the jump scare banner
            rd = b[3]
         end
         end
     end
     end
Anonymous user

Navigation menu