Module:File
De Pikmin FR
Comment utiliser Modèle:Fichier
Ce modèle est le modèle principal que Pikmin FR utilise pour afficher des informations sur ses pages de fichiers. Ce modèle permet aussi de catégoriser automatiquement les fichiers à notre place. Voici un exemple de ce modèle comme il apparaît quand aucunes informations ne sont encore ajoutées :
{{Fichier |jeu= |description= |type= |meta= |utilisateur= |source= |licence= }}
C'est ce qui apparaît automatiquement dans la description de fichier quand un nouveau fichier est téléversé. Lorsque vous replisserez les informations, vous n'aurez sans doute pas besoin de tous les paramètres. La plupart devront être supprimés avant le téléversement. Voici une explication de ce que signifient chaque paramètres, leur fonction et comment les remplir :
- |description= Ce paramètre sert à écrire un résumé de ce que contient le fichier. Une description de fichier doit être courte et ne pas dépasser plus d'une phrase. Par exemple, une illustration de Moss dans Pikmin 4 peut être décrite en tant que « Illustration de Moss dans Pikmin 4 ».
- |jeu= Ce paramètre est assez simple : il suffit d'indiquer le nom du jeu ou du mode que vous documentez ! Seulement un seul terme peut être saisi, et les fichiers représentant des éléments présents dans plusieurs jeux doivent utiliser la première apparition chronologique. Le nom doit être exact, le modèle créera automatiquement un lien vers la page à son sujet !
- |type= et |meta= Ces paramètres couvrent plusieurs choses à la fois. Principalement, ces paramètres servent à indiquer quel type de fichier est téléversé ! Voici une liste des types qui peuvent êtres utilisés avec leur signification entre parenthèses :
- amiibo (Amiibo)
- animé (Image Animée)
- audio (Audio)
- boutton (Bouton de manette)
- captureécran (Capture d'écran)
- captureécranvidéo (Capture d'écran de vidéo)
- carte (Carte)
- document (Document)
- drapeau (Drapeau)
- écrantitre (Écran titre)
- équipe (Équipe)
- fondécran (Fond d'écran)
- graphique (Graphique)
- icône (Icône)
- icônenso (Icône de Nintendo Switch Online)
- icônepersonnage (Icône de personnage)
- illustration (Illustration)
- illustrationarme (Illustration d'arme)
- illustrationconceptuelle (Illustration conceptuelle)
- illustrationcrédits (Illustration des crédits)
- illustrationpersonnage (Illustration de personnage)
- imageprincipale (Image de jeu)
- jaquette (Illustration de jaquette)
- langage (Langage)
- line (Autocollant LINE)
- logo (Logo)
- logomarque (Logo de marque)
- miiverse (Publication Miiverse)
- modèle (Image de modèle)
- modèle3d (Modèle 3D)
- musique (Musique)
- nba (Icône de badge de Nintendo Badge Arcade)
- pagemanga (Page d'un manga)
- personne (Personne de la vie réelle)
- photo (Photo de la vie réelle)
- photomanette (Photo de manette)
- prélancement (Image de pré-lancement)
- principal (Image de jeu)
- produitdérivé (Produit dérivé)
- promoart (Illustration promotionnelle)
- promocaptureécran (Capture d'écran promotionnelle)
- promoéquipement (Image promotionnelle d'équipement)
- promofestival (Image promotionnelle de festival)
- promotionnel (Image promotionnelle)
- rareté (Icône de rareté)
- rendu (Rendu 3D)
- renduarme (Rendu d'arme)
- rendupersonnage (Rendu de personnage)
- scan (Scan)
- souvenirpatapoulpe (Souvenir Patapoulpe)
- sprite (Sprite)
- système (Image de console)
- texture (Texture)
- utilisateur (Image utilisateur)
- victoirefestival (Illustration de victoire de festival)
- vidéo (Vidéo)
- wiki (Image d'Inkipédia)
- Remplir cette section est essentiel pour appliquer automatiquement des catégories au fichier. Tous les fichiers utilisant |type= seront ajoutés aux catégories de leur |jeu=. Par exemple, un fichier avec |jeu=Pikmin 3 et un |type=icônechaussure sera automatiquement ajouté à la Catégorie:Icônes de chaussures de Pikmin 3. Jusqu'à 4 types peuvent être ajoutés et ils doivent tous être séparés par des virgules. Le paramètre |meta= fonctionne de la même manière, sauf que les types qui seront entrés ne seront pas liés aux catégories du jeu entré. Par exemple, une image d'une Nintendo Switch qui a besoin d'être ajoutée aux autres images de consoles utilisera le |meta=système et sera donc ajouté à la Catégorie:Consoles. Les fichiers sans type indiqué seront ajouté à une catégorie de maintenance.
- |source= C'est un paramètre très important. Si le fichier n'a pas été créé directement par vous, il est nécessaire d'indiquer l'origine ou le lien URL ici. Si vous avez créé le fichier vous-même, écrivez |source=moi. Pour les fichiers créés par d'autres personnes, utilisez |source=utilisateur et remplissez le prochain paramètre.
- |utilisateur= Ce paramètre ne risque pas d'être utilisé souvent. Il doit uniquement être rempli avec le pseudo de l'utilisateur si vous avez utilisé |source=utilisateur ou |type=utilisateur. Par exemple, si Yaya a créé l'image, vous aurez à écrire |source=utilisateur et utilisateur=Yaya.
- |licence= Ce paramètre ne risque pas d'être utilisé souvent. Il est automatiquement défini sur « Fair Use » par défaut, et le supprimer ne pose pas de problème. Le seul cas où il doit être utilisé est si le fichier doit être ajouté sous une licence différente du fair use, comma par exemple le domaine public, creative commons, ou autre. Les options possibles sont :
- ccbysa10 (CC BY-SA 1.0)
- ccby20 (CC BY 2.0)
- ccbysa21jp (CC BY-SA 2.1)
- ccby25 (CC BY 2.5)
- ccbysa25 (CC BY-SA 2.5)
- ccby30 (CC BY 3.0)
- ccbync30 (CC BY-NC 3.0)
- ccbyncsa30 (CC BY-NC-SA 3.0)
- ccbysa30 (CC BY-SA 3.0)
- ccby40 (CC BY 4.0)
- ccbysa40 (CC BY-SA 4.0)
- lpgl (LGPL)
- dp (Domaine public, provenant de quelqu'un d'autre que vous)
- dpm (Domaine public, provenant de vous)
- fairuse (Fair use)
- Il existe un paramètre supplémentaire, |redimensionné, dont si vous écrivez |redimensionné=oui, le fichier sera ajouté à Catégorie:Fichiers redimensionnés.
local f = {}
function f.main(frame)
local result = {}
local game = frame:getParent().args["game"] or ""
local description = frame:getParent().args["description"] or ""
local type = mw.ustring.lower(frame:getParent().args["type"] or "")
local meta = mw.ustring.lower(frame:getParent().args["meta"] or "")
local user = frame:getParent().args["user"] or ""
local source = frame:getParent().args["source"] or nil
local license = frame:getParent().args["license"] or nil
local resized = frame:getParent().args["resized"] or nil
local youtube = frame:getParent().args["youtube"] or nil
local fandom = frame:getParent().args["fandom"] or nil
function TEXT(X)
local abilityicon = "Ability icon"
local amiibo = "amiibo"
local alternalog = "Alterna Log"
local album = "Album artwork"
local artwork = "Artwork"
local audio = "Audio"
local animated = "Animated image"
local music = "Music"
local boxart = "Box artwork"
local badgeicon = "Badge icon"
local barnsquid = "Barnsquid"
local brandlogo = "Brand logo"
local control = "Controller button"
local controllerphoto = "Controller photo"
local conceptart = "Concept artwork"
local challengepromo = "[[Challenge]] winner promotional image"
local charactericon = "Character icon"
local characterrender = "Character render"
local characterart = "Character artwork"
local clothingicon = "Clothing icon"
local creditsartwork = "Credits artwork"
local css = "<span style='color: red'>This image is used within the site's [[MediaWiki:Common.css|CSS stylesheet]]. This file should not be moved or modified without first checking how it will affect the CSS.</span>"
local diagram = "Diagram"
local emoteicon = "Emote icon"
local flag = "Flag"
local decorationicon = "Decoration icon"
local gearcloseup = "Gear close-up"
local clothingcloseup = "Clothing close-up"
local shoecloseup = "Shoe close-up"
local headgearcloseup = "Headgear close-up"
local gearpromo = "Gear promo"
local headgearicon = "Headgear icon"
local icon = "Icon"
local internetarchive = "Internet archive file"
local logo = "Logo"
local lockericon = "Locker icon"
local language = "Language"
local line = "LINE sticker"
local map = "Map"
local mangascan = "Scan from a manga"
local memcake = "Mem cake"
local miiverse = "Miiverse post"
local nsicon = "Nintendo Switch [[user icon]] part"
local nintendobadgearcade = "Nintendo Badge Arcade badge icon"
local modeicon = "Mode icon"
local model = "Model"
local merch = "Merchandise"
local promotional = "Promotional image"
local promoart = "Promotional artwork"
local promoshot = "Promotional screenshot"
local photo = "Real-world photo"
local prerelease = "Pre-release image"
local pccu = "Player customization close-ups"
local person = "Real life person"
local rating = "Rating icon"
local render = "Render"
local videoscreenshot = "Video screenshot"
local texture = "Texture"
local team = "Team"
local scan = "Scan"
local screenshot = "Screenshot"
local shoeicon = "Shoe icon"
local stageicon = "Stage icon"
local stagemap = "Stage map"
local sprite = "Sprite"
local splashtag = "Splashtag banner"
local sunkenscroll = "Sunken scroll"
local splatfestart = "Splatfest artwork"
local splatfestteamart = "Splatfest team artwork"
local splatfestteamtee = "Splatfest team tees"
local splatfesticon = "Splatfest icon"
local splatfestwin = "Splatfest win screen"
local splatfestpromo = "Splatfest promotional image"
local stickericon = "Sticker icon"
local system = "Console images"
local tableturfcardicon = "Tableturf Battle card icon"
local tableturfcardsleeveicon = "Tableturf Battle card sleeve icon"
local titlescreen = "Title screen"
local user = "This file is a personal file belonging to [[User:".. user .."|".. user .."]]."
local template = "Template image"
local video = "Video"
local wallpaper = "Wallpaper"
local weaponrender = "Weapon render"
local weaponartwork = "Weapon artwork"
local weaponicon = "Weapon icon"
local wiki = "Inkipedia image"
local main = "Game image"
local mainimage = "Game image"
local ilc = "Inkipedia Logo Contest 2022 entry"
local none = "<span style='color: red'>Error: Invalid type entered, please</span> [[Module:File/doc|consult the list of types]]."
local t = {}
t = {
['abilityicon'] = abilityicon,
['ability icon'] = abilityicon,
['amiibo'] = amiibo,
['2d'] = artwork,
['2dart'] = artwork,
['2d art'] = artwork,
['2d artwork'] = artwork,
['art'] = artwork,
['artwork'] = artwork,
['art work'] = artwork,
['3d'] = render,
['3dart'] = render,
['3d art'] = render,
['3d artwork'] = render,
['render'] = render,
['rendering'] = render,
['alternalog'] = alternalog,
['alterna log'] = alternalog,
['al'] = alternalog,
['anim'] = animated,
['animated'] = animated,
['animation'] = animated,
['animated image'] = animated,
['animated images'] = animated,
['animated img'] = animated,
['gif'] = animated,
['album'] = album,
['albumart'] = album,
['music'] = music,
['song'] = music,
['songs'] = music,
['audio'] = audio,
['sound'] = audio,
['voice clip'] = audio,
['voice'] = audio,
['box'] = boxart,
['boxart'] = boxart,
['boxartwork'] = boxart,
['box art'] = boxart,
['box artwork'] = boxart,
['barnsquid'] = barnsquid,
['barn squid'] = barnsquid,
['award'] = barnsquid,
['brandlogo'] = brandlogo,
['brand logo'] = brandlogo,
['bl'] = brandlogo,
['badgeicon'] = badgeicon,
['badge icon'] = badgeicon,
['bicon'] = badgeicon,
['conceptart'] = conceptart,
['conceptartwork'] = conceptart,
['concept art'] = conceptart,
['concept artwork'] = conceptart,
['early art'] = conceptart,
['early artwork'] = conceptart,
['earlyart'] = conceptart,
['earlyartwork'] = conceptart,
['button'] = control,
['buttons'] = control,
['control'] = control,
['controller'] = control,
['controller button'] = control,
['joystick'] = control,
['controllerphoto'] = controllerphoto,
['controller photo'] = controllerphoto,
['controlphoto'] = controllerphoto,
['control photo'] = controllerphoto,
['challengepromo'] = challengepromo,
['challenge promo'] = challengepromo,
['charactericon'] = charactericon,
['character icon'] = charactericon,
['characterrender'] = characterrender,
['character render'] = characterrender,
['cr'] = characterrender,
['css'] = css,
['site styling'] = css,
['sitestyling'] = css,
['characterart'] = characterart,
['characterartwork'] = characterart,
['character art'] = characterart,
['character artwork'] = characterart,
['charart'] = characterart,
['clothingicon'] = clothingicon,
['clothing icon'] = clothingicon,
['ci'] = clothingicon,
['creditsartwork'] = creditsartwork,
['creditsart'] = creditsartwork,
['credits artwork'] = creditsartwork,
['credits art'] = creditsartwork,
['credart'] = creditsartwork,
['diagram'] = diagram,
['graph'] = diagram,
['graphs'] = diagram,
['chart'] = diagram,
['emoteicon'] = emoteicon,
['emote icon'] = emoteicon,
['emoticon'] = emoteicon,
['flag'] = flag,
['decorationicon'] = decorationicon,
['decoration icon'] = decorationicon,
['decorations'] = decorationicon,
['decor icon'] = decorationicon,
['decoricon'] = decorationicon,
['gearcloseup'] = gearcloseup,
['gear close up'] = gearcloseup,
['gear close-up'] = gearcloseup,
['gear closeup'] = gearcloseup,
['gcu'] = gearcloseup,
['gear'] = gearcloseup,
['headgearcloseup'] = headgearcloseup,
['headgear close up'] = headgearcloseup,
['headgear close-up'] = headgearcloseup,
['headgear closeup'] = headgearcloseup,
['hcu'] = headgearcloseup,
['shoecloseup'] = shoecloseup,
['shoe close up'] = shoecloseup,
['shoe close-up'] = shoecloseup,
['shoe closeup'] = shoecloseup,
['scu'] = shoecloseup,
['clothingcloseup'] = clothingcloseup,
['clothing close up'] = clothingcloseup,
['clothing close-up'] = clothingcloseup,
['clothing closeup'] = clothingcloseup,
['ccu'] = clothingcloseup,
['gearpromo'] = gearpromo,
['gear promo'] = gearpromo,
['gear promotional'] = gearpromo,
['gp'] = gearpromo,
['headgearicon'] = headgearicon,
['headgear icon'] = headgearicon,
['hi'] = headgearicon,
['ico'] = icon,
['icon'] = icon,
['icons'] = icon,
['internetarchive'] = internetarchive,
['archive'] = internetarchive,
['logo'] = logo,
['logomark'] = logo,
['logos'] = logo,
['logotype'] = logo,
['wordmark'] = logo,
['language'] = language,
['lang'] = language,
['map'] = map,
['maps'] = map,
['mangascan'] = mangascan,
['mangapage'] = mangascan,
['lockericon'] = lockericon,
['locker icon'] = lockericon,
['locker'] = lockericon,
['memcake'] = memcake,
['mem cake'] = memcake,
['miiverse'] = miiverse,
['main'] = main,
['mainimage'] = mainimage,
['mainimages'] = mainimage,
['line'] = line,
['LINE'] = line,
['line sticker'] = line,
['modeicon'] = modeicon,
['mode icon'] = modeicon,
['mi'] = modeicon,
['3dmodel'] = model,
['3d model'] = model,
['model'] = model,
['models'] = model,
['merch'] = merch,
['merchandise'] = merch,
['toy'] = merch,
['nsicon'] = nsicon,
['nsoicon'] = nsicon,
['nsoiconpart'] = nsicon,
['nso icon'] = nsicon,
['nso icon part'] = nsicon,
['nintendo switch online icon'] = nsicon,
['nintendo switch online icon part'] = nsicon,
['nintendobadgearcade'] = nintendobadgearcade,
['nintendo badge arcade'] = nintendobadgearcade,
['nba'] = nintendobadgearcade,
['nintendobadge'] = nintendobadgearcade,
['nintendo badge']= nintendobadgearcade,
['photo'] = photo,
['photos'] = photo,
['photography'] = photo,
['reallife'] = photo,
['real life'] = photo,
['promotional'] = promotional,
['promo'] = promotional,
['advertisement'] = promotional,
['ad'] = promotional,
['person'] = person,
['real person'] = person,
['human person'] = person,
['people'] = person,
['real people'] = person,
['promoshot'] = promoshot,
['promotional screenshot'] = promoshot,
['promo screenshot'] = promoshot,
['promoart'] = promoart,
['promotional artwork'] = promoart,
['promo artwork'] = promoart,
['Promoart'] = promoart,
['Promotional Artwork'] = promoart,
['Promo Artwork'] = promoart,
['prerelease'] = prerelease,
['pre-release'] = prerelease,
['p-r'] = prerelease,
['beta'] = prerelease,
['pccu'] = pccu,
['player customization'] = pccu,
['player customization close up'] = pccu,
['player customization close-up'] = pccu,
['inkling customization'] = pccu,
['rating'] = rating,
['ratings'] = rating,
['prtscr'] = screenshot,
['printscreen'] = screenshot,
['print screen'] = screenshot,
['scr'] = screenshot,
['screen'] = screenshot,
['screenshot'] = screenshot,
['scrshot'] = screenshot,
['screen shot'] = screenshot,
['videoscreenshot'] = videoscreenshot,
['video screenshot'] = videoscreenshot,
['team'] = team,
['teams'] = team,
['competitive'] = team,
['template'] = template,
['texture'] = texture,
['pixelart'] = sprite,
['pixel art'] = sprite,
['sprite'] = sprite,
['sprites'] = sprite,
['scan'] = scan,
['scanned'] = scan,
['scans'] = scan,
['sys'] = system,
['system'] = system,
['system image'] = system,
['system images'] = system,
['console'] = system,
['switch'] = system,
['wiiu'] = system,
['shoeicon'] = shoeicon,
['shoe icon'] = shoeicon,
['stageicon'] = stageicon,
['stage icon'] = stageicon,
['stagemap'] = stagemap,
['stage map'] = stagemap,
['splashtag'] = splashtag,
['splashtag banner'] = splashtag,
['sunkenscroll'] = sunkenscroll,
['sunken scroll'] = sunkenscroll,
['splatfestart'] = splastfestart,
['splatfest art'] = splatfestart,
['splatfest artwork'] = splatfestart,
['splatfestartwork'] = splatfestart,
['sa'] = splatfestart,
['splatfestteamart'] = splatfestteamart,
['splatfest team art'] = splatfestteamart,
['splatfest team artwork'] = splatfestteamart,
['splatfestteamartwork'] = splatfestteamart,
['splatfestteam'] = splatfestteamart,
['splatfest team'] = splatfestteamart,
['st'] = splatfestteamart,
['sta'] = splatfestteamart,
['splatfestteamtee'] = splatfestteamtee,
['splatfest team tee'] = splatfestteamtee,
['splatfesttee'] = splatfestteamtee,
['splatfest tee'] = splatfestteamtee,
['stt'] = splatfestteamtee,
['splatfesticon'] = splatfesticon,
['splatfest icon'] = splatfesticon,
['si'] = splatfesticon,
['splatfestwin'] = splatfestwin,
['splatfest win'] = splatfestwin,
['splatfest victory'] = splatfestwin,
['splatfest winner'] = splatfestwin,
['sw'] = splatfestwin,
['splatfestpromo'] = splatfestpromo,
['splatfest promotional'] = splatfestpromo,
['sfp'] = splatfestpromo,
['stickericon'] = stickericon,
['sticker icon'] = stickericon,
['tableturfcardicon'] = tableturfcardicon,
['tableturfbattlecardicon'] = tableturfcardicon,
['tableturf card icon'] = tableturfcardicon,
['tableturf battle card icon'] = tableturfcardicon,
['tableturf icon'] = tableturfcardicon,
['tableturf battle icon'] = tableturfcardicon,
['tableturfcardsleeveicon'] = tableturfcardsleeveicon,
['tableturfbattlecardsleeveicon'] = tableturfcardsleeveicon,
['tableturf card sleeve icon'] = tableturfcardsleeveicon,
['tableturf battle card sleeve icon'] = tableturfcardsleeveicon,
['titlescreen'] = titlescreen,
['title screen'] = titlescreen,
['title'] = titlescreen,
['personal'] = user,
['personal img'] = user,
['personal image'] = user,
['user'] = user,
['userimg'] = user,
['user image'] = user,
['video'] = video,
['videos'] = video,
['inkipedia'] = wiki,
['wiki'] = wiki,
['wallpaper'] = wallpaper,
['wall paper'] = wallpaper,
['screensaver'] = wallpaper,
['background'] = wallpaper,
['weaponrender'] = weaponrender,
['weapon render'] = weaponrender,
['weapon model'] = weaponrender,
['weaponartwork'] = weaponartwork,
['weaponart'] = weaponartwork,
['weapon art'] = weaponartwork,
['weapon artwork'] = weaponartwork,
['weaponicon'] = weaponicon,
['weapon icon'] = weaponicon,
['ilc'] = ilc,
['ilc2022'] = ilc,
['logo contest'] = ilc,
['Inkipedia Logo Contest 2022'] = ilc,
['inkipedia logo contest 2022'] = ilc,
['Inkipedia Logo Contest'] = ilc,
['inkipedia logo contest'] = ilc,
}
if not t[X]
then return none
else return t[X]
end
end
function CAT(X,Y)
if Y == true then Y = game .. ' ' else Y = "" end
local abilityicon = "[[Category:".. Y .."ability icons]]"
local amiibo = "[[Category:".. Y .."amiibo]]"
local album = "[[Category:".. Y .."album artwork]]"
local artwork = "[[Category:".. Y .."artwork]]"
local alternalog = "[[Category:".. Y .."Alterna Logs images]]"
local animated = "[[Category:".. Y .."animated images]]"
local music = "[[Category:".. Y .."music]]"
local audio = "[[Category:".. Y .."audio]]"
local boxart = "[[Category:".. Y .."box artwork]]"
local badgeicon = "[[Category:Icônes de badges dans ".. Y .."]]"
local barnsquid = "[[Category:Barnsquids]]"
local brandlogo = "[[Category:".. Y .."brand logos]]"
local control = "[[Category:".. Y .."controller icons]]"
local controllerphoto = "[[Category:".. Y .."Controller photos]]"
local conceptart = "[[Category:".. Y .."concept artwork]]"
local clothingicon = "[[Category:".. Y .."clothing icons]]"
local challengepromo = "[[Category:".. Y .."Challenge winner promotional images]]"
local charactericon = "[[Category:".. Y .."character icons]]"
local characterrender = "[[Category:".. Y .."character renders]]"
local characterart = "[[Category:".. Y .."character artwork]]"
local creditsartwork = "[[Category:".. Y .."credits artwork]]"
local css = "[[Category:Images utilisées dans le style du site]]"
local diagram = "[[Category:".. Y .."diagrams]]"
local emoteicon = "[[Category:".. Y .."emote icons]]"
local decorationicon = "[[Category:".. Y .."decoration icons]]"
local gearpromo = "[[Category:".. Y .."gear promos]]"
local gearcloseup = "[[Category:".. Y .."gear close-ups]]"
local headgearcloseup = "[[Category:".. Y .."headgear close-ups]]"
local clothingcloseup = "[[Category:".. Y .."clothing close-ups]]"
local shoecloseup = "[[Category:".. Y .."shoe close-ups]]"
local headgearicon = "[[Category:".. Y .."headgear icons]]"
local icon = "[[Category:".. Y .."icons]]"
local internetarchive = "[[Category:Fichiers d'archives Internet]]"
local flag = "[[Category:".. Y .."flags]]"
local logo = "[[Category:".. Y .."logos]]"
local lockericon = "[[Category:".. Y .."locker icons]]"
local line = "[[Category:".. Y .."LINE stickers]]"
local main = "[[Category:".. Y .."]]"
local mainimage = "[[Category:".. Y .."images]]"
local miiverse = "[[Category:".. Y .."Miiverse posts]]"
local memcake = "[[Category:".. Y .."Mem cakes]]"
local mangascan = "[[Category:".. Y .."manga scans]]"
local map = "[[Category:".. Y .."maps]]"
local language = "[[Category:Langue]]"
local modeicon = "[[Category:".. Y .."mode icons]]"
local model = "[[Category:".. Y .."models]]"
local nintendobadgearcade = "[[Category:Icônes des badges dans Nintendo Badge Arcade]]"
local nsicon = "[[Category:".. Y .."Nintendo Switch icon parts]]"
local merch = "[[Category:".. Y .."merchandise images]]"
local promotional = "[[Category:".. Y .."promotional images]]"
local promoshot = "[[Category:".. Y .."promotional screenshots]]"
local promoart = "[[Category:".. Y .."promotional artwork]]"
local prerelease = "[[Category:".. Y .."pre-release images]]"
local photo = "[[Category:".. Y .."real life images]]"
local pccu = "[[Category:".. Y .."player customization close-ups]]"
local person = "[[Category:Personnes de la vie réelle]]"
local rating = "[[Category:".. Y .."rating icons]]"
local scan = "[[Category:".. Y .."scans]]"
local screenshot = "[[Category:".. Y .."screenshots]]"
local shoeicon = "[[Category:".. Y .."shoe icons]]"
local stageicon = "[[Category:".. Y .."stage icons]]"
local stagemap = "[[Category:".. Y .."stage maps]]"
local sprite = "[[Category:".. Y .."sprites]]"
local system = "[[Category:Consoles]]"
local splashtag = "[[Category:".. Y .."Splashtag banners]]"
local sunkenscroll = "[[Category:".. Y .."Sunken Scrolls]]"
local splatfestart = "[[Category:".. Y .."Splatfest artwork]]"
local splatfestteamart = "[[Category:".. Y .."Splatfest team artwork]]"
local splatfestteamtee = "[[Category:".. Y .."Splatfest team tees]]"
local splatfesticon = "[[Category:".. Y .."Splatfest icons]]"
local videoscreenshot = "[[Category:".. Y .."video screenshots]]"
local splatfestwin = "[[Category:".. Y .."Splatfest win screens]]"
local splatfestpromo = "[[Category:".. Y .."Splatfest promo images]]"
local stickericon = "[[Category:".. Y .."sticker icons]]"
local render = "[[Category:".. Y .."renders]]"
local tableturfcardicon = "[[Category:".. Y .."Tableturf Battle card icons]]"
local tableturfcardsleeveicon = "[[Category:".. Y .."Tableturf Battle card sleeve icons]]"
local texture = "[[Category:".. Y .."textures]]"
local user = "[[Category:Fichiers utilisateur]]"
local template = "[[Category:".. Y .."Template images]]"
local team = "[[Category:".. Y .."Teams]]"
local titlescreen = "[[Category:".. Y .."title screens]]"
local video = "[[Category:".. Y .."videos]]"
local wiki = "[[Category:Images d'Inkipédia]]"
local weaponrender = "[[Category:".. Y .."weapon renders]]"
local wallpaper = "[[Category:".. Y .."wallpapers]]"
local weaponartwork = "[[Category:".. Y .."weapon artwork]]"
local weaponicon = "[[Category:".. Y .."weapon icons]]"
local ilc = "[[Category:Concours de logo d'Inkipedia 2022]]"
local none = "[[Category:Fichiers avec types invalides]]"
local t = {}
t = {
['abilityicon'] = abilityicon,
['ability icon'] = abilityicon,
['amiibo'] = amiibo,
['2d'] = artwork,
['2dart'] = artwork,
['2d art'] = artwork,
['2d artwork'] = artwork,
['art'] = artwork,
['artwork'] = artwork,
['art work'] = artwork,
['3d'] = render,
['3dart'] = render,
['3d art'] = render,
['3d artwork'] = render,
['render'] = render,
['rendering'] = render,
['alternalog'] = alternalog,
['alterna log'] = alternalog,
['al'] = alternalog,
['badgeicon'] = badgeicon,
['badge icon'] = badgeicon,
['bicon'] = badgeicon,
['anim'] = animated,
['animated'] = animated,
['animation'] = animated,
['animated image'] = animated,
['animated images'] = animated,
['animated img'] = animated,
['gif'] = animated,
['album'] = album,
['albumart'] = album,
['music'] = music,
['song'] = music,
['songs'] = music,
['audio'] = audio,
['sound'] = audio,
['voice clip'] = audio,
['voice'] = audio,
['emoteicon'] = emoteicon,
['emote icon'] = emoteicon,
['emoticon'] = emoteicon,
['flag'] = flag,
['box'] = boxart,
['boxart'] = boxart,
['boxartwork'] = boxart,
['box art'] = boxart,
['box artwork'] = boxart,
['barnsquid'] = barnsquid,
['barn squid'] = barnsquid,
['award'] = barnsquid,
['brandlogo'] = brandlogo,
['brand logo'] = brandlogo,
['bl'] = brandlogo,
['conceptart'] = conceptart,
['conceptartwork'] = conceptart,
['concept art'] = conceptart,
['concept artwork'] = conceptart,
['early art'] = conceptart,
['early artwork'] = conceptart,
['earlyart'] = conceptart,
['earlyartwork'] = conceptart,
['button'] = control,
['buttons'] = control,
['control'] = control,
['controller'] = control,
['controller button'] = control,
['joystick'] = control,
['controllerphoto'] = controllerphoto,
['controller photo'] = controllerphoto,
['controlphoto'] = controllerphoto,
['control photo'] = controllerphoto,
['challengepromo'] = challengepromo,
['challenge promo'] = challengepromo,
['charactericon'] = charactericon,
['character icon'] = charactericon,
['characterrender'] = characterrender,
['character render'] = characterrender,
['cr'] = characterrender,
['characterart'] = characterart,
['characterartwork'] = characterart,
['character art'] = characterart,
['character artwork'] = characterart,
['charart'] = characterart,
['css'] = css,
['site styling'] = css,
['sitestyling'] = css,
['clothingicon'] = clothingicon,
['clothing icon'] = clothingicon,
['ci'] = clothingicon,
['creditsartwork'] = creditsartwork,
['creditsart'] = creditsartwork,
['credits artwork'] = creditsartwork,
['credits art'] = creditsartwork,
['credart'] = creditsartwork,
['diagram'] = diagram,
['graph'] = diagram,
['graphs'] = diagram,
['chart'] = diagram,
['decorationicon'] = decorationicon,
['decoration icon'] = decorationicon,
['decorations'] = decorationicon,
['decor icon'] = decorationicon,
['decoricon'] = decorationicon,
['gearcloseup'] = gearcloseup,
['gear close up'] = gearcloseup,
['gear close-up'] = gearcloseup,
['gear closeup'] = gearcloseup,
['gcu'] = gearcloseup,
['gear'] = gearcloseup,
['headgearcloseup'] = headgearcloseup,
['headgear close up'] = headgearcloseup,
['headgear close-up'] = headgearcloseup,
['headgear closeup'] = headgearcloseup,
['hcu'] = headgearcloseup,
['shoecloseup'] = shoecloseup,
['shoe close up'] = shoecloseup,
['shoe close-up'] = shoecloseup,
['shoe closeup'] = shoecloseup,
['scu'] = shoecloseup,
['clothingcloseup'] = clothingcloseup,
['clothing close up'] = clothingcloseup,
['clothing close-up'] = clothingcloseup,
['clothing closeup'] = clothingcloseup,
['ccu'] = clothingcloseup,
['gearpromo'] = gearpromo,
['gear promo'] = gearpromo,
['gear promotional'] = gearpromo,
['gp'] = gearpromo,
['headgearicon'] = headgearicon,
['headgear icon'] = headgearicon,
['hi'] = headgearicon,
['ico'] = icon,
['icon'] = icon,
['icons'] = icon,
['internetarchive'] = internetarchive,
['archive'] = internetarchive,
['logo'] = logo,
['logomark'] = logo,
['logos'] = logo,
['logotype'] = logo,
['wordmark'] = logo,
['map'] = map,
['maps'] = map,
['mangascan'] = mangascan,
['mangapage'] = mangascan,
['lockericon'] = lockericon,
['locker icon'] = lockericon,
['locker'] = lockericon,
['memcake'] = memcake,
['mem cake'] = memcake,
['miiverse'] = miiverse,
['main'] = main,
['mainimage'] = mainimage,
['mainimages'] = mainimage,
['line'] = line,
['LINE'] = line,
['line sticker'] = line,
['modeicon'] = modeicon,
['mode icon'] = modeicon,
['mi'] = modeicon,
['3dmodel'] = model,
['3d model'] = model,
['model'] = model,
['models'] = model,
['merch'] = merch,
['merchandise'] = merch,
['toy'] = merch,
['nintendobadgearcade'] = nintendobadgearcade,
['nintendo badge arcade'] = nintendobadgearcade,
['nba'] = nintendobadgearcade,
['nintendobadge'] = nintendobadgearcade,
['nintendo badge']= nintendobadgearcade,
['nsicon'] = nsicon,
['nsoicon'] = nsicon,
['nsoiconpart'] = nsicon,
['nso icon'] = nsicon,
['nso icon part'] = nsicon,
['nintendo switch online icon'] = nsicon,
['nintendo switch online icon part'] = nsicon,
['photo'] = photo,
['photos'] = photo,
['photography'] = photo,
['reallife'] = photo,
['real life'] = photo,
['promotional'] = promotional,
['promo'] = promotional,
['advertisement'] = promotional,
['ad'] = promotional,
['promoshot'] = promoshot,
['promotional screenshot'] = promoshot,
['promo screenshot'] = promoshot,
['promoart'] = promoart,
['promotional artwork'] = promoart,
['promo artwork'] = promoart,
['Promoart'] = promoart,
['Promotional Artwork'] = promoart,
['Promo Artwork'] = promoart,
['prerelease'] = prerelease,
['pre-release'] = prerelease,
['p-r'] = prerelease,
['beta'] = prerelease,
['pccu'] = pccu,
['player customization'] = pccu,
['player customization close up'] = pccu,
['player customization close-up'] = pccu,
['inkling customization'] = pccu,
['person'] = person,
['real person'] = person,
['human person'] = person,
['people'] = person,
['real people'] = person,
['rating'] = rating,
['ratings'] = rating,
['prtscr'] = screenshot,
['printscreen'] = screenshot,
['print screen'] = screenshot,
['scr'] = screenshot,
['screen'] = screenshot,
['screenshot'] = screenshot,
['scrshot'] = screenshot,
['screen shot'] = screenshot,
['language'] = language,
['lang'] = language,
['videoscreenshot'] = videoscreenshot,
['video screenshot'] = videoscreenshot,
['pixelart'] = sprite,
['pixel art'] = sprite,
['sprite'] = sprite,
['sprites'] = sprite,
['sys'] = system,
['system'] = system,
['system image'] = system,
['system images'] = system,
['console'] = system,
['switch'] = system,
['wiiu'] = system,
['shoeicon'] = shoeicon,
['shoe icon'] = shoeicon,
['stageicon'] = stageicon,
['stage icon'] = stageicon,
['stagemap'] = stagemap,
['stage map'] = stagemap,
['splashtag'] = splashtag,
['splashtag banner'] = splashtag,
['sunkenscroll'] = sunkenscroll,
['sunken scroll'] = sunkenscroll,
['splatfestart'] = splastfestart,
['splatfest art'] = splatfestart,
['splatfest artwork'] = splatfestart,
['splatfestartwork'] = splatfestart,
['sa'] = splatfestart,
['splatfestteamart'] = splatfestteamart,
['splatfest team art'] = splatfestteamart,
['splatfest team artwork'] = splatfestteamart,
['splatfestteamartwork'] = splatfestteamart,
['splatfestteam'] = splatfestteamart,
['splatfest team'] = splatfestteamart,
['st'] = splatfestteamart,
['sta'] = splatfestteamart,
['splatfestteamtee'] = splatfestteamtee,
['splatfest team tee'] = splatfestteamtee,
['splatfesttee'] = splatfestteamtee,
['splatfest tee'] = splatfestteamtee,
['stt'] = splatfestteamtee,
['splatfesticon'] = splatfesticon,
['splatfest icon'] = splatfesticon,
['si'] = splatfesticon,
['splatfestwin'] = splatfestwin,
['splatfest win'] = splatfestwin,
['splatfest victory'] = splatfestwin,
['splatfest winner'] = splatfestwin,
['sw'] = splatfestwin,
['splatfestpromo'] = splatfestpromo,
['splatfest promotional'] = splatfestpromo,
['sfp'] = splatfestpromo,
['scan'] = scan,
['scanned'] = scan,
['scans'] = scan,
['stickericon'] = stickericon,
['sticker icon'] = stickericon,
['tableturfcardicon'] = tableturfcardicon,
['tableturfbattlecardicon'] = tableturfcardicon,
['tableturf card icon'] = tableturfcardicon,
['tableturf battle card icon'] = tableturfcardicon,
['tableturf icon'] = tableturfcardicon,
['tableturf battle icon'] = tableturfcardicon,
['tableturfcardsleeveicon'] = tableturfcardsleeveicon,
['tableturfbattlecardsleeveicon'] = tableturfcardsleeveicon,
['tableturf card sleeve icon'] = tableturfcardsleeveicon,
['tableturf battle card sleeve icon'] = tableturfcardsleeveicon,
['template'] = template,
['team'] = team,
['teams'] = team,
['competitive'] = team,
['texture'] = texture,
['titlescreen'] = titlescreen,
['title screen'] = titlescreen,
['title'] = titlescreen,
['personal'] = user,
['personal img'] = user,
['personal image'] = user,
['user'] = user,
['userimg'] = user,
['user image'] = user,
['video'] = video,
['videos'] = video,
['inkipedia'] = wiki,
['wiki'] = wiki,
['wallpaper'] = wallpaper,
['wall paper'] = wallpaper,
['screensaver'] = wallpaper,
['background'] = wallpaper,
['weaponrender'] = weaponrender,
['weapon render'] = weaponrender,
['weapon model'] = weaponrender,
['weaponartwork'] = weaponartwork,
['weaponart'] = weaponartwork,
['weapon art'] = weaponartwork,
['weapon artwork'] = weaponartwork,
['weaponicon'] = weaponicon,
['weapon icon'] = weaponicon,
['ilc'] = ilc,
['ilc2022'] = ilc,
['logo contest'] = ilc,
['Inkipedia Logo Contest 2022'] = ilc,
['inkipedia logo contest 2022'] = ilc,
['Inkipedia Logo Contest'] = ilc,
['inkipedia logo contest'] = ilc,
}
if not t[X]
then return none
else return t[X]
end
end
function SRC(X)
local myself = "Media created or obtained by the uploader"
local user2 = "Media created or obtained by [[user:".. user .."|".. user .."]]"
local fandom = "FANDOM image [[Category:Images provenant de FANDOM]]"
local youtube = "YouTube image [[Category:Images provenant de YouTube]]"
local presskit = "Press kit image [[Category:Images de kits de presse non-publics]]"
local missing = "<span style='color: red'>''This file is missing a source.''</span>[[Category:Source manquante]]"
local splatnet = "This file has been taken from"
local splatnet1 = splatnet .. ' [[SplatNet]] [[Category:Fichiers source de SplatNet]]'
local splatnet2 = splatnet .. ' [[SplatNet 2]] [[Category:Fichiers source de SplatNet 2]]'
local splatnet3 = splatnet .. ' [[SplatNet 3]] [[Category:Fichiers source de SplatNet 3]]'
local splatune = "[[Splatune]] [[Category:Fichiers source de Splatune]]"
local splatune2 = "[[Splatune 2]] [[Category:Fichiers source de Splatune 2]]"
local splatune3 = "[[Splatune 3 (Splatoon 3 Original Soundtrack)|Splatune 3]] [[Category:Fichiers source de Splatune 3]]"
local haikarawalker = "This file has been taken from [[HaikaraWalker]]. [[Category:Fichiers source de HaikaraWalker]]"
local taos = "This file has been taken from ''[[The Art of Splatoon]]''. [[Category:Fichiers source de The Art of Splatoon]]"
local taos2 = "This file has been taken from ''[[The Art of Splatoon 2]]''. [[Category:Fichiers source de The Art of Splatoon 2]]"
local taos3 = "This file has been taken from ''[[The Art of Splatoon 3]]''. [[Category:Fichiers source de The Art of Splatoon 3]]"
local prima = "This file has been taken from a Prima guide. [[Category:Fichiers source de Prima]]"
local nso = "This file has been taken from Nintendo Switch Online. [[Category:Fichiers source de Nintendo Switch Online]]"
local t = {}
t = {
['me'] = myself,
['my'] = myself,
['myself'] = myself,
['self'] = myself,
['Me'] = myself,
['My'] = myself,
['Myself'] = myself,
['Self'] = myself,
['other'] = user2,
['someone'] = user2,
['someone else'] = user2,
['user'] = user2,
['Other'] = user2,
['Someone'] = user2,
['Someone else'] = user2,
['User'] = user2,
['gamepedia'] = fandom,
['fandom'] = fandom,
['wikia'] = fandom,
['gamefaqs'] = fandom,
['Gamepedia'] = fandom,
['Fandom'] = fandom,
['Wikia'] = fandom,
['Gamefaqs'] = fandom,
['GameFAQs'] = fandom,
['youtube'] = youtube,
['yt'] = youtube,
['Youtube'] = youtube,
['YT'] = youtube,
['YouTube'] = youtube,
['kit'] = presskit,
['press'] = presskit,
['presskit'] = presskit,
['press kit'] = presskit,
['Kit'] = presskit,
['Press'] = presskit,
['Presskit'] = presskit,
['Press kit'] = presskit,
['splatnet'] = splatnet1,
['splatnet1'] = splatnet1,
['splatnet 1'] = splatnet1,
['[[splatnet]]'] = splatnet1,
['[[splatnet1]]'] = splatnet1,
['[[splatnet 1]]'] = splatnet1,
['Splatnet'] = splatnet1,
['Splatnet1'] = splatnet1,
['Splatnet 1'] = splatnet1,
['[[Splatnet1]]'] = splatnet1,
['[[Splatnet 1]]'] = splatnet1,
['SplatNet1'] = splatnet1,
['SplatNet'] = splatnet1,
['SplatNet 1'] = splatnet1,
['[[SplatNet1]]'] = splatnet1,
['[[SplatNet 1]]'] = splatnet1,
['splatnet2'] = splatnet2,
['splatnet 2'] = splatnet2,
['[[splatnet2]]'] = splatnet2,
['[[splatnet 2]]'] = splatnet2,
['Splatnet2'] = splatnet2,
['Splatnet 2'] = splatnet2,
['[[Splatnet2]]'] = splatnet2,
['[[Splatnet 2]]'] = splatnet2,
['SplatNet2'] = splatnet2,
['SplatNet 2'] = splatnet2,
['[[SplatNet2]]'] = splatnet2,
['[[SplatNet 2]]'] = splatnet2,
['splatnet3'] = splatnet3,
['splatnet 3'] = splatnet3,
['[[splatnet3]]'] = splatnet3,
['[[splatnet 3]]'] = splatnet3,
['Splatnet3'] = splatnet3,
['Splatnet 3'] = splatnet3,
['[[Splatnet3]]'] = splatnet3,
['[[Splatnet 3]]'] = splatnet3,
['SplatNet3'] = splatnet3,
['SplatNet 3'] = splatnet3,
['[[SplatNet3]]'] = splatnet3,
['[[SplatNet 3]]'] = splatnet3,
['HaikaraWalker'] = haikarawalker,
['haikarawalker'] = haikarawalker,
['[[HaikaraWalker]]'] = haikarawalker,
['[[haikarawalker]]'] = haikarawalker,
['hw'] = haikarawalker,
['HW'] = haikarawalker,
['The Art of Splatoon 3'] = taos3,
['[[The Art of Splatoon 3]]'] = taos3,
['Art of Splatoon 3'] = taos3,
['the art of splatoon 3'] = taos3,
['The art of splatoon 3'] = taos3,
['[[The art of splatoon 3]]'] = taos3,
['art of splatoon 3'] = taos3,
['taos3'] = taos3,
['TAOS3'] = taos3,
['The Art of Splatoon 2'] = taos2,
['[[The Art of Splatoon 2]]'] = taos2,
['Art of Splatoon 2'] = taos2,
['the art of splatoon 2'] = taos2,
['The art of splatoon 2'] = taos2,
['[[The art of splatoon 2]]'] = taos2,
['art of splatoon 2'] = taos2,
['taos2'] = taos2,
['TAOS2'] = taos2,
['The Art of Splatoon'] = taos,
['[[The Art of Splatoon]]'] = taos,
['Art of Splatoon'] = taos,
['the art of splatoon'] = taos,
['The art of splatoon'] = taos,
['[[The art of splatoon]]'] = taos,
['art of splatoon'] = taos,
['taos'] = taos,
['TAOS'] = taos,
['Prima Official Starter Guide'] = prima,
['Prima Guide'] = prima,
['Prima guide'] = prima,
['prima guide'] = prima,
['Prima Games'] = prima,
['Prima games'] = prima,
['prima games'] = prima,
['prima official starter guide'] = prima,
['Prima'] = prima,
['prima'] = prima,
['nso'] = nso,
['NSO'] = nso,
['Switch Online'] = nso,
['Online'] = nso,
['Nintendo Switch Online'] = nso,
['switch online'] = nso,
['online'] = nso,
['nintendo switch online'] = nso,
['splatune'] = splatune1,
['splatune1'] = splatune1,
['splatune 1'] = splatune1,
['[[splatune]]'] = splatune1,
['[[splatune1]]'] = splatune1,
['[[splatune 1]]'] = splatune1,
['Splatune'] = splatune1,
['Splatune1'] = splatune1,
['Splatune 1'] = splatune1,
['[[Splatune1]]'] = splatune1,
['[[Splatune 1]]'] = splatune1,
['splatune2'] = splatune2,
['splatune 2'] = splatune2,
['[[splatune2]]'] = splatune2,
['[[splatune 2]]'] = splatune2,
['Splatune2'] = splatune2,
['Splatune 2'] = splatune2,
['[[Splatune2]]'] = splatune2,
['[[Splatune 2]]'] = splatune2,
['splatune3'] = splatune3,
['splatune 3'] = splatune3,
['[[splatune3]]'] = splatune3,
['[[splatune 3]]'] = splatune3,
['Splatune3'] = splatune3,
['Splatune 3'] = splatune3,
['[[Splatune3]]'] = splatune3,
['[[Splatune 3]]'] = splatune3,
}
if source and source ~= "" then
if not t[X] then
return X
else return t[X]
end
else return missing
end
end
function LIC(X)
local ccbysa10 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/1.0/deed.en Creative Commons Attribution-ShareAlike 1.0]''' license.''[[Category:Médias sous licence CC BY-SA 1.0]]"
local ccby20 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/2.0/deed.en Creative Commons Attribution 2.0]''' license.''[[Category:Média sous licence CC BY-SA 2.0]]"
local ccbysa21jp = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/2.1/jp/deed.en Creative Commons Attribution-ShareAlike 2.1 Japan]''' license.''[[Category:Média sous licence CC BY-SA 2.1]]"
local ccby25 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/2.5/deed.en Creative Commons Attribution 2.5]''' license.''[[Category:Média sous licence CC BY 2.5]]"
local ccbysa25 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/2.5/deed.en Creative Commons Attribution-ShareAlike 2.5]''' license.''[[Category:Médias sous licence CC BY-SA 2.5]]"
local ccby30 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/3.0/deed.en Creative Commons Attribution 3.0]''' license.''[[Category:Média sous licence CC BY 3.0]]"
local ccbync30 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-nc/3.0/ Creative Commons Attribution Non-Commercial 3.0]''' license.''[[Category:Média sous licence CC BY-NC 3.0]]"
local ccbyncsa30 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-nc-sa/3.0/ Creative Commons Attribution Non-Commercial 3.0]''' license.''[[Category:Media licensed under CC BY-NC-SA 3.0]]"
local ccbysa30 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/3.0/deed.en Creative Commons Attribution-ShareAlike 3.0]''' license.''[[Category:Média sous licence CC BY-SA 3.0]]"
local ccby40 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by/4.0/deed.en Creative Commons Attribution 4.0]''' license.''[[Category:Média sous licence CC BY 4.0]]"
local ccbysa40 = "''This file is distributed under the '''[https://creativecommons.org/licenses/by-sa/4.0/deed.en Creative Commons Attribution-ShareAlike 4.0]''' license.''[[Category:Média sous licence CC BY-SA 4.0]]"
local lgpl = "This library is free software; you can redistribute it and/or modify it under the terms of the '''[[wikipedia:GNU Lesser General Public License|GNU Lesser General Public License]]''' as published by the [[wikipedia:Free Software Foundation|Free Software Foundation]]; either version 2.1 of the License, or (at your option) any later version. This library is distributed in the hope that it will be useful, but without any warranty; without even the implied warranty of merchantability or fitness for a particular purpose. See [https://www.gnu.org/licenses/lgpl.html the GNU Lesser General Public License] for more details."
local pd = "''This file has been released into the '''[[Wikipedia:Public domain|public domain]]''' by the copyright holder, its copyright has expired, or it is ineligible for copyright. This applies worldwide.''[[Category:Média publié dans le domaine public]]"
local pds = "''This file has been released into the '''[[Wikipedia:Public domain|public domain]]''' by the uploading user. This applies worldwide.''[[Category:Média publié dans le domaine public]]"
local fairuse = "''Ce fichier est soumis à des [[Inkipédia:Copyrights|droits d'auteur]]. Les droits d\'auteur sont très probablement détenus par l'entreprise qui a publié le jeu ou le média représenté. '''En France''', son utilisation par Inkipédia est autorisée par l\''''article [https://www.legifrance.gouv.fr/affichCodeArticle.do?cidTexte=LEGITEXT000006069414&idArticle=LEGIARTI000027683084&dateTexte=20160312|L. 122-5]''' du '''[https://fr.wikipedia.org/wiki/Code_de_la_propri%C3%A9t%C3%A9_intellectuelle Code de la propriété intellectuelle]'''. Sa mise à disposition est autorisée dans la limite des droits que l\''''article [https://www.legifrance.gouv.fr/affichCodeArticle.do?cidTexte=LEGITEXT000006069414&idArticle=LEGIARTI000006279710&dateTexte=20100209|L. 713-3]''' accorde à son titulaire, et est reproduit ici en vertu de ces droits. '''Aux États-Unis d'Amérique''', l'utilisation de ce fichier par Inkipédia est soutenue comme étant une '''utilisation juste''' dans le cadre légal défini par le '''[https://fr.wikipedia.org/wiki/Fair_use fair use]'''. Le cas échéant, la permission de l\'auteur a été accordée. Ce fichier est utilisé sur le wiki uniquement dans l\'idée que les informations représentées sont destinées à servir de complément au jeu ou au média, et son utilisation sur le wiki ne :<ol><li>''Diminuera pas l\'expérience du jeu ou l\'utilisation du média en question.''</li><li>''Nuira pas aux ventes ou à la réputation de l\'auteur.''</li></ol></li></ol>[[Catégorie:Médias avec utilisation présumée équitable]]"
local t = {}
t = {
['ccbysa10'] = ccbysa10,
['ccybysa1.0'] = ccbysa10,
['cc by sa 1.0'] = ccbysa10,
['cc-by-sa-1.0'] = ccbysa10,
['cc-by-sa 1.0'] = ccbysa10,
['cc by-sa-1.0'] = ccbysa10,
['cc by-sa 1.0'] = ccbysa10,
['ccby20'] = ccby20,
['ccyby2.0'] = ccby20,
['cc by 2.0'] = ccby20,
['cc-by-2.0'] = ccby20,
['cc-by 2.0'] = ccby20,
['cc by-2.0'] = ccby20,
['cc by 2.0'] = ccby20,
['ccbysa21jp'] = ccbysa21jp,
['ccybysa2.1jp'] = ccbysa21jp,
['cc by sa 2.1 jp'] = ccbysa21jp,
['cc-by-sa-2.1 jp'] = ccbysa21jp,
['cc-by-sa 2.1 jp'] = ccbysa21jp,
['cc by-sa-2.1 jp'] = ccbysa21jp,
['cc by-sa 2.1 jp'] = ccbysa21jp,
['cc-by-sa 2.1 japan'] = ccbysa21jp,
['ccby25'] = ccby25,
['ccyby2.5'] = ccby25,
['cc by 2.5'] = ccby25,
['cc-by-2.5'] = ccby25,
['cc-by-2.5'] = ccby25,
['cc by-2.5'] = ccby25,
['cc by-2.5'] = ccby25,
['ccbysa25'] = ccbysa25,
['ccybysa2.5'] = ccbysa25,
['cc by sa 2.5'] = ccbysa25,
['cc-by-sa-2.5'] = ccbysa25,
['cc-by-sa 2.5'] = ccbysa25,
['cc by-sa-2.5'] = ccbysa25,
['cc by-sa 2.5'] = ccbysa25,
['ccby30'] = ccby30,
['ccyby3.0'] = ccby30,
['cc by 3.0'] = ccby30,
['cc-by-3.0'] = ccby30,
['cc-by-3.0'] = ccby30,
['ccbysa30'] = ccbysa30,
['ccybysa3.0'] = ccbysa30,
['cc by sa 3.0'] = ccbysa30,
['cc-by-sa-3.0'] = ccbysa30,
['cc-by-sa 3.0'] = ccbysa30,
['cc by-sa-3.0'] = ccbysa30,
['cc by-sa 3.0'] = ccbysa30,
['ccbync30'] = ccbync30,
['ccybync3.0'] = ccbync30,
['cc by nc 3.0'] = ccbync30,
['cc-by-nc-3.0'] = ccbync30,
['cc-by-nc 3.0'] = ccbync30,
['cc by-nc-3.0'] = ccbync30,
['cc by-nc 3.0'] = ccbync30,
['ccbyncsa30'] = ccbyncsa30,
['ccybyncsa3.0'] = ccbyncsa30,
['cc by nc sa 3.0'] = ccbyncsa30,
['cc-by-nc-sa-3.0'] = ccbyncsa30,
['cc-by-nc-sa 3.0'] = ccbyncsa30,
['cc by-nc-sa-3.0'] = ccbyncsa30,
['cc by-nc-sa 3.0'] = ccbyncsa30,
['ccby40'] = ccby40,
['ccyby4.0'] = ccby40,
['cc by 4.0'] = ccby40,
['cc-by-4.0'] = ccby40,
['cc-by-4.0'] = ccby40,
['ccbysa40'] = ccbysa40,
['ccybysa4.0'] = ccbysa40,
['cc by sa 4.0'] = ccbysa40,
['cc-by-sa-4.0'] = ccbysa40,
['cc-by-sa 4.0'] = ccbysa40,
['cc by-sa-4.0'] = ccbysa40,
['cc by-sa 4.0'] = ccbysa40,
['pd'] = pd,
['public'] = pd,
['publicdomain'] = pd,
['public domain'] = pd,
['lgpl'] = lgpl,
['GNU Lesser'] = lgpl,
['pds'] = pds,
['publicself'] = pds,
['publicdomain self'] = pds,
['public domain self'] = pds,
['public domain by myself'] = pds,
}
if not t[X]
then return fairuse
else return t[X]
end
end
local panel_type = ""
local panel_meta = ""
if not type or type == ""
then type = {}
else
type = mw.text.split(type, ',%s*')
for i = 1, #type do
type[i] = TEXT(type[i]) .. CAT(type[i],true)
end
if #type > 4
then panel_type = '<tr><th>Type(s)</th><td style="color: red">Way too many types!<br />Try using up to 4 types max.</td></tr>'
else panel_type = '<tr><th>Type(s)</th><td>'.. table.concat(type,", ") ..'</td></tr>'
end
end
if not meta or meta == ""
then meta = {}
else
meta = mw.text.split(meta, ',%s*')
for i = 1, #meta do
meta[i] = TEXT(meta[i]) .. CAT(meta[i],false)
end
if #meta > 4
then panel_meta = '<tr><th>Meta Type(s)</th><td style="color: red">Way too many types!<br />Try using up to 4 types max.</td></tr>'
else panel_meta = '<tr><th>Meta Type(s)</th><td>'.. table.concat(meta,", ") ..'</td></tr>'
end
end
local panel_game = '<tr><th>Game</th><td>\'\'[['.. game ..']]\'\'</td></tr>'
local panel_description = '<tr><th>Description</th><td>'.. description ..'</td></tr>'
local panel_user = '<tr><th>User</th><td>[[user:'.. user ..'|'.. user ..']]</td></tr>'
local panel_source = '<tr><th>Source</th><td>'.. SRC(source) ..'</td></tr>'
local panel_license = '<tr><th>License</th><td>'.. LIC(license) ..'</td></tr>'
local panel_resized = '<tr><th>Resized</th><td>This file has been resized.[[Category:Fichiers redimensionnés]]</td></tr>'
local panel_youtube = '<tr><th>YouTube</th><td>This file has been taken from YouTube, and should be re-captured in-game when possible.[[Category:Images provenant de YouTube]]</td></tr>'
local panel_fandom = '<tr><th>FANDOM</th><td>This file has been taken from FANDOM (or a subsidiary) and should be re-captured as soon as possible.[[Category:Images provenant de FANDOM]]</td></tr>'
if game == "" then panel_game = "" end
if user == "" then panel_user = "" end
if resized ~= "yes" then panel_resized = "" end
if youtube ~= "yes" then panel_youtube = "" end
if fandom ~= "yes" then panel_fandom = "" end
if description == "" or description == nil then
panel_description = "[[Category:Fichiers sans description]]"
end
if source == "" or source == nil then
panel_source = "[[Category:Fichiers sans source]]"
end
local panel = '<table class="wikitable" style="width: 100%"><tr><th colspan="2">Informations sur le fichier</th></tr>'.. panel_game .. panel_description .. panel_type .. panel_meta .. panel_user .. panel_source .. panel_resized .. panel_youtube .. panel_fandom .. panel_license ..'</table>'
table.insert(result, panel)
return table.concat(result, "")
end
return f