Module:WikiProjectBanner/banners/WikiProject Biography

< Module:WikiProjectBanner
Revision as of 07:58, 16 July 2021 by Zoran (talk | contribs) (Pywikibot 6.4.0)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

Documentation for this module may be created at Module:WikiProjectBanner/banners/WikiProject Biography/doc

return {
    image_left            = 'Crystal personal.svg',
    image_left_large      = '60px',
    -- main_text          = "This {{pagetype|{{{class|}}}}} is within the scope of '''[[Wikipedia:WikiProject Biography|WikiProject Biography]]'''{{yesno|{{{small|}}}|yes = |no = , a collaborative effort to create, develop and organize Wikipedia's articles about people.  All interested editors are invited to [[Wikipedia:WikiProject Biography/Members|join the project]] and [[Wikipedia talk:WikiProject Biography|contribute to the discussion]].  For instructions on how to use this banner, please refer to the [[Template:WikiProject Biography/doc|documentation]]}}.",
    portal                = 'Biography',
    -- main_cat           = '{{#ifeq:{{pagetype|{{{class|}}}}}|article|WikiProject Biography articles}}',
    quality_scale         = 'subpage',
    importance_scale_name = 'importance',
    banner_name           = 'Template:WikiProject Biography',

--[==[
 |HOOK_ASSESS             = {{yesno|{{{core|}}}|yes={{WikiProject Biography/corebio
  |AUTO_ASSESS_CAT        = Automatically assessed biography articles
]==]

    assessment_link       = 'Wikipedia:WikiProject Biography/Assessment',
    assessment_cat        = 'biography articles',
    comments              = true,
    attention             = true,
    attention_param       = 'attention',
    attention_cat         = 'Biography articles needing attention',
    notes = {
        {
            params    = { 'needs-photo' },
            -- text   = [=[It is requested that a photograph or picture of this person be [[Wikipedia:Uploading images|included]] in this article to improve its quality.{{yesno|{{{living|}}}|yes=<br /><small>'''Note:''' [[Wikipedia:Non-free content criteria|Wikipedia's non-free content use policy]] almost never permits the use of non-free images (such as promotional photos, press photos, screenshots, book covers and similar) to merely show what a living person looks like.  Efforts should be made to take a [[free content|free licensed]] photo (for example, during a public appearance), or [[Wikipedia:Requesting copyright permission|obtaining a free content release of an existing photo]] instead.  The <span class="plainlinks">[http://toolserver.org/~magnus/fist.php?doit=1&language=en&project=wikipedia&data={{urlencode:{{PAGENAME}}}}&datatype=articles&params%5Bcatdepth%5D=0&params%5Brandom%5D=50&params%5Bll_max%5D=5&params%5Bcommons_max%5D=5&params%5Bflickr_max%5D=5&params%5Binclude_flickr_id%5D=1&params%5Bwts_max%5D=5&params%5Bgimp_max%5D=5&params%5Besp_max%5D=5&params%5Besp_skip_flickr%5D=1&params%5Bgeograph_max%5D=5&params%5Bforarticles%5D=noimage&params%5Blessthan_images%5D=3&params%5Bdefault_thumbnail_size%5D=&params%5Bjpeg%5D=1&params%5Bpng%5D=1&params%5Bgif%5D=1&params%5Bsvg%5D=1&params%5Bogg%5D=1&params%5Bmin_width%5D=80&params%5Bmin_height%5D=80&sources%5Blanguagelinks%5D=1&sources%5Bcommons%5D=1&sources%5Bflickr%5D=1 Free Image Search Tool]</span> may be able to locate suitable images on [[Flickr]] and other web sites.}}</small>]=],
            -- image  = '{{yesno|{{{living|}}}|yes=No copyrighted photos|no=Camera-photo}}.svg',
            -- cat    = '{{#ifexpr:{{yesno|{{{a&e-work-group|}}}|yes=1|no=0}}+{{yesno|{{{filmbio-work-group|}}}|yes=1|no=0}}+{{yesno|{{{musician-work-group|}}}|yes=1|no=0}}+{{yesno|{{{military-work-group|{{{military-task-force|}}}}}}|yes=1|no=0}}+{{yesno|{{{peerage-work-group|{{{baronets-work-group|}}}}}}|yes=1|no=0}}+{{yesno|{{{living|}}}|yes={{yesno|{{{activepol|}}}|yes=1|no=0}}}}+{{yesno|{{{politician-work-group|}}}|yes=1|no=0}}+{{yesno|{{{royalty-work-group|}}}|yes=1|no=0}}+{{yesno|{{{sports-work-group|}}}|yes=1|no=0}}+{{yesno|{{{s&a-work-group|}}}|yes=1|no=0}}>0||Wikipedia requested photographs of people}}'
        },
        {
            params    = { 'needs-infobox' },
            text      = 'An appropriate [[Wikipedia:Manual of Style (infoboxes)|infobox]] may need to be added to this article.  Please refer to the [[Wikipedia:WikiProject Biography/Infoboxes|list of biography infoboxes]] for further information.',
            image     = 'Gnome-mime-text-x-credits.svg',
            cat       = 'Biography articles without infoboxes'
        },
        {
            -- params = { '{{yesno|{{{filmbio-work-group|}}}|yes={{{needs-filmography|}}}}}' },
            text      = 'This article needs a [[filmography]] section, as outlined by the [[Wikipedia:WikiProject Actors and Filmmakers#Filmography|guidelines]] of [[Wikipedia:WikiProject Actors and Filmmakers|WikiProject Actors and Filmmakers]].',
            image     = 'Video-x-generic.svg',
            cat       = 'Actors and filmmakers work group articles needing filmographies',
        },
        {
            -- params = { '{{yesno|{{{musician-work-group|}}}|yes={{{needs-discography|}}}}}' },
            text      = 'This article needs a [[discography]] section, as outlined by the [[Wikipedia:WikiProject Musicians/Article guidelines#Discography section|guidelines]] of [[Wikipedia:WikiProject Musicians|WikiProject Musicians]].',
            image     = '45 rpm record.png',
            cat       = 'Musicians work group articles needing discographies'
        },
        {
            params    = { 'past-collaboration' },
            -- text      = 'This article is a former [[Wikipedia:WikiProject Biography/Collaboration|WikiProject Biography Collaboration]] ({{{past-collaboration|}}}).  For details on the improvements made to the article, see the [[Wikipedia:WikiProject Biography/Collaboration/History|history of past collaborations]].',
            image     = 'Crystal 128 kuser.png',
            cat       = 'Past Biography collaborations'
        },
        {
            -- params = { '{{#ifeq:{{lc:{{{A-Class|}}}}}|current|{{{A-Class|}}}}}' },
            text      = 'The [[Wikipedia:WikiProject Biography/A-class review|A-Class review department]] for this project is currently inactive.  No requests for A-Class review are being accepted at this time.',
            image     = 'Deletion icon.svg',
            cat       = 'Biography articles with incorrect peer review or A-Class tagging'
        }
    },
    note_size = 'x25px',

--[==[
|HOOK_NOTE     = {{WPBannerMeta/hooks/aclass
 |BANNER_NAME  = Template:WikiProject Biography
 |a class      = {{#ifeq:{{lc:{{{A-Class|}}}}}|current||{{{A-Class|}}}}}
 |category     = {{{category|}}}
 |SIZE         = x25px
 |FORMAT       = style="background:transparent;"
 |SUBPAGE_LINK = Wikipedia:WikiProject Biography/A-class review/{{SUBJECTPAGENAME}}
 |REVIEW_LINK  = Wikipedia:WikiProject Biography/A-class review
 |PASS_CAT     = Successful requests for biography A-Class review
 |FAIL_CAT     = Failed requests for biography A-Class review
 |INVALID_CAT  = Biography articles with incorrect peer review or A-Class tagging
}}{{WPBannerMeta/hooks/peerreview
 |BANNER_NAME     = Template:WikiProject Biography
 |category        = {{{category|}}}
 |peer review     = {{{peer-review|}}}
 |old peer review = {{{old-peer-review|}}}
 |SIZE            = x25px
 |LINK            = Wikipedia:WikiProject Biography/Peer review
 |CAT             = Requests for Biography peer review
 |OLD_CAT         = Old requests for Biography peer review
 |INVALID_CAT     = Biography articles with incorrect peer review or A-Class tagging
 |title           = {{{title|}}}
}}
|HOOK_COLLAPSED   = {{WPBannerMeta/hooks/notecounter
 |category        = {{{category|}}}
 |BANNER_NAME     = Template:WikiProject Biography
 |note 1          = {{{peer-review|}}}
 |note 2          = {{{old-peer-review|}}}
 |note 3          = {{{A-Class|}}}
}}
]==]

    
    tf_size                = 'x25px',
    task_forces = {
        {
            -- params         = { '{{#ifexpr:{{yesno|{{{filmbio-work-group|}}}|yes=1|no=0}}+{{yesno|{{{musician-work-group|}}}|yes=1|no=0}}>0||{{{a&e-work-group|}}}}}' },
            link              = 'Wikipedia:WikiProject Biography/Arts and entertainment',
            nested            = 'Arts and Entertainment',
            name              = 'the arts and entertainment work group',
            image             = 'Nuvola apps package graphics.svg',
            quality           = true,
            importance_params = { 'a&e-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (arts and entertainment) articles',
            main_cat          = 'Arts and entertainment work group articles',
            categories = {
                {
                    -- params = { '{{#switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}}}}}' },
                    category  = 'Automatically assessed biography (arts and entertainment) articles'
                },
                {
                    params    = { 'attention' },
                    category  = 'Arts and entertainment work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of artists and entertainers',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Arts and entertainment work group articles without infoboxes',
                }
            }
        },
        {
            params            = { 'filmbio-work-group' },
            link              = 'Wikipedia:WikiProject Actors and Filmmakers',
            nested            = 'Actors and Filmmakers',
            name              = 'WikiProject Actors and Filmmakers',
            image             = 'Lumierebros.jpg',
            quality           = 'yes',
            importance_params = { 'filmbio-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (actors and filmmakers) articles',
            main_cat          = 'Actors and filmmakers work group articles',
            categories = {
                {
                    -- params = { '{{#switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}}}}}' },
                    category  = 'Automatically assessed biography (actors and filmmakers) articles'
                },
                {
                    params    = { 'attention' },
                    category  = 'Actors and filmmakers work group articles needing attention'
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of actors and filmmakers'
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Actors and filmmakers work group articles needing infoboxes'
                }
            }
        },
        {
            params            = { 'musician-work-group' },
            link              = 'Wikipedia:WikiProject Musicians ',
            nested            = 'Musicians',
            name              = 'WikiProject Musicians',
            image             = 'Exquisite-microphone.png',
            quality           = 'yes',
            importance_params = { 'musician-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (musicians) articles',
            main_cat          = 'Musicians work group articles',
            categories        = {
                {
                    -- params = { '{{#switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}}}}}' },
                    category  = 'Automatically assessed biography (musicians) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Musicians work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of musicians',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Musicians work group articles needing infoboxes',
                }
            }
        },
        {
            params            = { 'military-work-group', 'military-task-force' },
            link              = 'Wikipedia:WikiProject Biography/Military',
            nested            = 'Military',
            name              = 'the military biography work group',
            image             = 'Swords.svg',
            quality           = 'yes',
            importance_params = { 'military-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (military) articles',
            main_cat          = 'Military biography work group articles',
            categories = {
                {
                    -- params    = { '{{#switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}}}}}' },
                    category  = 'Automatically assessed biography (military) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Military biography work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of military-people',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Military biography work group articles needing infoboxes',
                }
            }
        },
        {
            params            = { 'peerage-work-group', 'baronets-work-group' },
            link              = 'Wikipedia:WikiProject Peerage and Baronetage',
            nested            = 'Peerage and Baronetage',
            name              = 'WikiProject Peerage and Baronetage',
            image             = 'Heraldique ornement Heaume baronnet.svg',
            quality           = 'yes',
            importance_params = { 'peerage-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (peerage) articles',
            main_cat          = 'Peerage and Baronetage work group articles',
            categories = {
                {
                    -- params = { 'switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}' },
                    category  = 'Automatically assessed biography (peerage) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Peerage work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of peers',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Peerage work group articles needing infoboxes',
                }
            }
        },
        {
            -- params         = { '{{yesno|{{{living|}}}|yes={{{activepol|}}}}}{{{politician-work-group|}}}' },
            link              = 'Wikipedia:WikiProject Biography/Politics and government',
            nested            = 'Politics and Government',
            name              = 'the politics and government work group',
            image             = 'A coloured voting box.svg',
            quality           = 'yes',
            importance_params = { 'politician-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (politics and government) articles',
            main_cat          = 'Politics and government work group articles',
            categories = {
                {
                    -- params = { '{{#switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}}}}}' },
                    category  = 'Automatically assessed biography (politics and government) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Politics and government work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of politicians and government-people',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Politics and government work group articles needing infoboxes',
                }
            }
        },
        {
            params            = { 'royalty-work-group' },
            link              = 'Wikipedia:WikiProject Royalty and Nobility',
            nested            = 'Royalty and Nobility',
            name              = 'WikiProject Royalty and Nobility',
            image             = 'CrownForShield.svg',
            quality           = 'yes',
            importance_params = { 'royalty-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (royalty) articles',
            main_cat          = 'Royalty work group articles',
            categories = {
                {
                    -- params = { 'switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}' },
                    category  = 'Automatically assessed biography (royalty) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Royalty and nobility work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of royalty and nobility',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Royalty and nobility work group articles needing infoboxes',
                }
            }
        },
        {
            params            = { 's&a-work-group' },
            link              = 'Wikipedia:WikiProject Biography/Science and academia',
            nested            = 'Science and Academia',
            name              = 'the science and academia work group',
            image             = 'Nuvola apps edu mathematics-p.svg',
            quality           = 'yes',
            importance_params = { 's&a-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (science and academia) articles',
            main_cat          = 'Science and academia work group articles',
            categories = {
                {
                    -- params = { 'switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}' },
                    category  = 'Automatically assessed biography (science and academia) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Science and academia work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of scientists and academics',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Science and academia work group articles needing infoboxes',
                }
            }
        },
        {
            params            = { 'sports-work-group' },
            link              = 'Wikipedia:WikiProject Biography/Sports and games',
            nested            = 'Sports and Games',
            name              = 'the sports and games work group',
            image             = 'Sports and games.png',
            quality           = 'yes',
            portal            = 'Sport',
            importance_params = { 'sports-priority', 'priority', 'importance' },
            assessment_cat    = 'biography (sports and games) articles',
            main_cat          = 'Sports and games work group articles',
            categories = {
                {
                    -- params = { 'switch:{{lc:{{{class|}}}}}|stub={{{auto|}}}|=|#default={{#ifeq:{{lc:{{{auto|}}}}}|inherit|{{{auto|}}}' },
                    category  = 'Automatically assessed biography (sports and games) articles',
                },
                {
                    params    = { 'attention' },
                    category  = 'Sports and games work group articles needing attention',
                },
                {
                    params    = { 'needs-photo' },
                    category  = 'Wikipedia requested photographs of sportspeople',
                },
                {
                    params    = { 'needs-infobox' },
                    category  = 'Sports and games work group articles needing infoboxes',
                }
            }
        }
    },
    categories = {
        {
            -- params   = { '{{yesno|{{{living|}}}|blank={{#ifeq:{{pagetype|{{{class|}}}}}|article|yes}}}}' },
            category    = 'Biography articles without living parameter',
        },
        {
            -- params   = { 'if:{{{listas|}}}|no|{{#ifeq:{{NAMESPACE}}|{{ns:1}}|yes|no' },
            category    = 'Biography articles without listas parameter'
        },
        {
            -- params   = { 'ifexpr:{{yesno|{{{a&e-work-group|}}}|yes=1|no=0}}+{{yesno|{{{filmbio-work-group|}}}|yes=1|no=0}}+{{yesno|{{{musician-work-group|}}}|yes=1|no=0}}+{{yesno|{{{military-work-group|{{{military-task-force|}}}}}}|yes=1|no=0}}+{{yesno|{{{peerage-work-group|{{{baronets-work-group|}}}}}}|yes=1|no=0}}+{{yesno|{{{living|}}}|yes={{yesno|{{{activepol|}}}|yes=1|no=0}}}}+{{yesno|{{{politician-work-group|}}}|yes=1|no=0}}+{{yesno|{{{royalty-work-group|}}}|yes=1|no=0}}+{{yesno|{{{sports-work-group|}}}|yes=1|no=0}}+{{yesno|{{{s&a-work-group|}}}|yes=1|no=0}}>0|{{{priority|{{{importance|}}}}' },
            category    = 'Biography articles needing priority parameter replacement'
        },
        {
            -- params   = { 'ifeq:{{{priority|Ê}}}|Ê||{{#ifeq:{{NAMESPACE}}|{{ns:1}}|yes|no' },
            -- category = 'Biography articles with {{#if:{{{priority|}}}|plain|blank}} priority parameter'
        },
        {
            -- params      = { '{{#switch:{{WikiProject Biography/class|class={{{class|}}}}}|FA|A|GA|B|C|Start|Stub|FL|List={{{class|}}}}}' },
            -- category    = '{{#ifeq:{{NAMESPACE}}|Talk||Incorrectly tagged WikiProject Biography articles}}'
        },
        {
            -- params      = { '{{#ifeq:{{WikiProject Biography/class|class={{{class|}}}}}|Category|{{{class|}}}}}' },
            -- category    = '{{#ifeq:{{NAMESPACE}}|Category talk||Incorrectly tagged WikiProject Biography articles}}'
        },
        {
            -- params      = { '{{#ifeq:{{WikiProject Biography/class|class={{{class|}}}}}|Template|{{{class|}}}}}' },
            -- category    = '{{#ifeq:{{NAMESPACE}}|Template talk||Incorrectly tagged WikiProject Biography articles}}'
        },
        {
            -- params      = { '{{{core|}}}{{{needs-photo|}}}{{{needs-infobox|}}}{{{needs-filmography|}}}{{{needs-discography|}}}{{{past-collaboration|}}}' },
            -- category    = '{{#ifeq:{{pagetype|{{{class|}}}}}|article||Incorrectly tagged WikiProject Biography articles}}'
        }
    }
}