Aller au contenu

Module:Infobox/Notes de jeu vidéo

Une page de Wikipédia, l'encyclopédie libre.
Ceci est une version archivée de cette page, en date du 10 février 2025 à 23:28 et modifiée en dernier par Aelxen (discuter | contributions) (Test en cours ...). Elle peut contenir des erreurs, des inexactitudes ou des contenus vandalisés non présents dans la version actuelle.

 Documentation[voir] [modifier] [historique] [purger]

Cette page définit un module d'infobox. Pour les conseils sur l'usage de ce module, voyez Modèle:Infobox Notes de jeu vidéo.


-- Module:Infobox/Notes de jeu vidéo

local generic = require("Module:Infobox/Fonctions")

return {
    style     = 'width:320px;',
    maincolor = '#004080',
    thirdcolor= 'white',

    parts = {
        {
            type  = 'title',
            value = 'titre',  -- => | titre= dans l’article
        },
        -------------------------------------------------------------------------
        -- Agrégateurs de notes
        -------------------------------------------------------------------------
        {
            type  = 'table',
            title = 'Agrégateur de note',
            rows  = {
                {
                    type = 'row',
                    label = 'Média',
                    value = 'Note',
                    style = {['font-weight'] = 'bold', ['text-align'] = 'center', ['width'] = '60%'}
                },
                {
                    type = 'row',
                    label = '[[MetaCritic]] (US)',
                    value = 'metacritic',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[OpenCritic]] (UK)',
                    value = 'opencritic',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[GameRankings]]',
                    value = 'gamerankings',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[MobyGames]]',
                    value = 'mobygames',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
            },
        },
        -------------------------------------------------------------------------
        -- Presse Papier
        -------------------------------------------------------------------------
        {
            type  = 'table',
            title = 'Presse papier',
            rows  = {
                {
                    type = 'row',
                    label = 'Média',
                    value = 'Note',
                    style = {['font-weight'] = 'bold', ['text-align'] = 'center', ['width'] = '60%'}
                },
                {
                    type = 'row',
                    label = '[[EGM]] (US)',
                    value = 'egm',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[PC Gamer]] (UK)',
                    value = 'pcgamer',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[Am-Mag]] (FR)',
                    value = 'ammag',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[Edge (magazine)|Edge]] (UK)',
                    value = 'edge',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
                {
                    type = 'row',
                    label = '[[CGMagazine]] (CA)',
                    value = 'cgmagazine',
                    valueStyle = {['text-align'] = 'center', ['width'] = '40%'}
                },
            },
        },
    }
}