Modulo:Software/Archivio/Linguaggi di programmazione: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica |
hasProprietaryCategory required only for true |
||
Riga 22:
]]
local hasProprietaryCategory = {
['c'] = true
}
local SEPARATOR = '<br />'
function p.main(frame)
local wd_languages = mWikidata._getProperty( { 'P277', from = 'Q161234' }, true )▼
--[[
* true → Una table
* Emerge l'inutilità di Module:Arguments.▼
]]
--[[
▲ * Emerge l'inutilità di Module:Arguments.
* Si fa qualcosa solo se non sono stati specificati linguaggi▼
*
]]
local
local categorizzare = frame.args[2]
local libero = frame.args[3]
local s = ''
local ok = true
Line 51 ⟶ 48:
local language = languages[language_wikilink]
if language then
if
s = s .. frame:expandTemplate{▼
* Di default non ha la categoria proprietaria
]]
if hasProprietaryCategory[language] == nil then
hasProprietaryCategory[language] = false
end
local separator = i > 1 and SEPARATOR or ''
▲ s = s .. separator .. frame:expandTemplate{
title = 'Software/Linguaggio',
args = {
Line 63 ⟶ 70:
end
else
--[[
* Linguaggio non ancora previsto
]]
ok = false
end
Line 70 ⟶ 80:
end
▲ --[[
if not ok then
s = s .. '[[Categoria:Linguaggio di programmazione da Wikidata non previsto]]'
|