You can edit almost every page by Creating an account. Otherwise, see the FAQ.

Module:IMDB

Uit EverybodyWiki Bios & Wiki
Ga naar:navigatie, zoeken

--Enkel een test
IMDB = {};
IMDB.getId = function(prefix, frame)
if (frame.args["id"]=="" ) then   return  frame:preprocess("{{#property:p345}}")
else return prefix..frame.args["id"] end
end
IMDB.getLabel = function(frame)
    if (frame.args["label"]=="" ) then   return  mw.title.getCurrentTitle().prefixedText
else return frame.args["label"] end
end        

IMDB.linkNaam = function(frame) 
return IMDB.link(frame, false, "nm");
end
--Parameters: frame wordt doorgegeven; cusief geeft aan of de naam cursief moet worden weergeven; prefix is het standaardprefix van dit type item
IMDB.link = function(frame, cursief, prefix) 
    local schuin = "";
    if cursief then schuin = "''" end
 local str = "[[Bestand:Comicsfilm.png|12px|Icoontje film]] "..schuin.."[http://www.imdb.com/name/"..IMDB.getId(prefix,frame).."/ "..IMDB.getLabel(frame).."]"..schuin.."  in de [[Internet Movie Database]]"
    return str    
end
IMDB.linkTitel = function(frame) 
return IMDB.link(frame, true, "tt");
end
IMDB.linkBedrijf = function(frame) 
return IMDB.link(frame, false, "co");   
end
IMDB.linkPersonage = function(frame) 
return IMDB.link(frame, false, "ch");
end
return IMDB

Dit Module "IMDB" is uit Wikipedia. De lijst van zijn auteurs is te zien in zijn historische.