Modulo:DTBase: differenze tra le versioni
Da Wikitrek.
mNessun oggetto della modifica |
Wikimedia Commons description added |
||
| (3 versioni intermedie di uno stesso utente non sono mostrate) | |||
| Riga 132: | Riga 132: | ||
demb = 'Memory Beta (tedesco)', | demb = 'Memory Beta (tedesco)', | ||
fanlore = 'Fanlore', | fanlore = 'Fanlore', | ||
trekipedia = 'Trekipedia' | trekipedia = 'Trekipedia', | ||
commonswiki = 'Wikimedia Commons' | |||
} | } | ||
| Riga 176: | Riga 177: | ||
if (SourcesP[Property]) then | if (SourcesP[Property]) then | ||
--ID is for external source | --ID is for external source | ||
if AllSources == nil then | |||
AllSources = {} | |||
end | |||
table.insert(AllSources, "* " .. frame:expandTemplate{title = 'CitazioneIEEE', args = {'Contributori Memory Alpha', Item.sitelinks['itma'].title, 'Memory Alpha', Item.claims[Property][1].qualifiers['P201'][1].datavalue.value.time, p.ExtIDLink(Property, Item.claims[Property][1].mainsnak.datavalue.value)}}) | table.insert(AllSources, "* " .. frame:expandTemplate{title = 'CitazioneIEEE', args = {'Contributori Memory Alpha', Item.sitelinks['itma'].title, 'Memory Alpha', Item.claims[Property][1].qualifiers['P201'][1].datavalue.value.time, p.ExtIDLink(Property, Item.claims[Property][1].mainsnak.datavalue.value)}}) | ||
else | else | ||
| Riga 209: | Riga 214: | ||
URL = mw.wikibase.getEntity(Property).claims[ExtIDP][1].mainsnak.datavalue.value | URL = mw.wikibase.getEntity(Property).claims[ExtIDP][1].mainsnak.datavalue.value | ||
if string.find(Value, "[%%%+%-%*%?]") ~= nil then | if string.find(Value, "[%%%+%-%*%?]") ~= nil and string.find(Value, " ") ~= nil then | ||
FullLink = string.gsub(URL, '$1', mw.uri.encode(Value, "QUERY"):gsub("%%", "%%%%")) | FullLink = string.gsub(URL, '$1', mw.uri.encode(Value, "QUERY"):gsub("%%", "%%%%")) | ||
else | else | ||