Module:Infobox/Logiciel/Bac à sable

Une page de Wikipédia, l'encyclopédie libre.

 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 Logiciel/Bac à sable.


local general = require "Module:Infobox/Fonctions"
local wikidata = require "Module:Wikidata"

return {
	maincolor = '#E1E1E1',
	parts = {
		general.title('informatique'),
		general.logo(),
		general.mainimage('Article à illustrer Logiciel'),
		{
			type = 'table', title = 'Informations', rows	= {
				{type = 'row', label = 'Créateur', plurallabel  ='Créateurs', value = 'créateur', property = 'P170'},
				{type = 'row', label = 'Fondateur', plurallabel  ='Fondateurs', value = 'fondateur', property = 'P112'},
				{type = 'row', label = '[[Développeur|Développé par]]', plurallabel  ='[[Développeur|Développé par]]', value = 'développeur', property = 'P178'},
				{type = 'row', label = 'Executable', plurallabel  ='Exécutables', value = {"exécutable","exécutables"}},
				{type = 'row', label = 'Première version', value = 'première version', wikidata = 
					{property = {'P571', 'P580', 'P348'}, qualifier = 'P548', qualifconjtype = 'comma', qualiflinktopic='-', qualifiervalue = 'Q56514665', showqualifiers = {'P1476','P400','P306','P577'}, addcat = 'true', showsource = 'true', conjtype = 'new line'}
					},
				{type = 'row', label = "[[Version d'un logiciel|Dernière version]]", value = 'date de dernière version', wikidata = 
					{property = 'P348', showqualifiers={'P1476','P400','P306','P577'}, addcat  ='true', linkback = 'true', showsource = 'true', conjtype = 'new line', qualifconjtype = 'comma', qualiflinktopic='-',excludequalifier='P548',excludequalifiervalue={'Q3295609','Q2122918','Q1072356'},novaluelabel={property='P348',showonlyqualifier='P548', excludequalifier='P548',excludequalifiervalue={'Q3295609','Q2122918','Q1072356'}}}
				},
				{type = 'row', label = "[[Version d'un logiciel|Version avancée]]", value = 'date de version avancée', wikidata = 
					{property = 'P348', qualifier='P548',qualifconjtype='comma',qualiflinktopic='-',qualifiervalue={'Q3295609','Q2122918','Q1072356'}, showqualifiers={'P1476','P400','P306','P577'},addcat='true',linkback='true',showsource='true',conjtype='new line'}
					},
				{type = 'row', label = '[[Dépôt (informatique)|Dépôt]]', value = 'dépôt', property = 'P1324'},
				{type = 'row', label = 'État du projet', plurallabel  ='Exécutables', value = 'état'},
				{type = 'row', label = '[[Langage de programmation|Écrit en]]', value = 'langage de programmation', property = 'P277'},
				{type = 'row', label = "[[Système d'exploitation]]", plurallabel  ="[[Système d'exploitation|Systèmes d'exploitation]]", value = {"système d'exploitation","systèmes d'exploitation"}, property = 'P306'},
				{type = 'row', label = '[[Plate-forme (informatique)|Environnement]]', plurallabel  ='[[Plate-forme (informatique)|Environnements]]', value = {'environnement','environnements'}, property = 'P400'},
				{type = 'row', label = '[[Langage de programmation|Écrit en]]', value = 'langage de programmation', property = 'P277'},
				{type = 'row', label = '[[Format de données|Formats]] lus', value = 'importe', property = 'P1072'},
				{type = 'row', label = '[[Format de données|Formats]] écrits', value = 'exporte', property = 'P1073'},
				{type = 'row', label = '[[Internationalisation (informatique)|Langues]]', value = 'langues', property = 'P407'},
				{type = 'row', label = 'Type', value = 'type', property = 'P31'},
				{type = 'row', label = '[[Politique de distribution]]', value = 'politique de prix'},
				{type = 'row', label = function (localdata)
					if localdata['licences'] then
						return 'Licences' else
							return 'Licence'
						end
					end,
					plurallabel  ='Licences', value = {'licence','licences'}, property = 'P275'},
				general.website()
			}	    
    	}
	}
}