• Welcome to the Kancolle Wiki!
  • If you have any questions regarding site content, account registration, etc., please visit the KanColle Wiki Discord

Difference between revisions of "Module:VoiceActorData"

From Kancolle Wiki
Jump to navigation Jump to search
com>Ckwng
(Created page with "local BaseData = require("Module:BaseData") local VoiceActorData = BaseData() --The name of the voice actor. function VoiceActorData:name() return self._name end --A group...")
 
com>Ckwng
Line 1: Line 1:
local BaseData = require("Module:BaseData")
+
local PersonData = require("Module:PersonData")
  
local VoiceActorData = BaseData()
+
local VoiceActorData = PersonData()
 
 
--The name of the voice actor.
 
function VoiceActorData:name()
 
return self._name
 
end
 
 
 
--A group of values passable to Formatting:format_external_link() to create a wikitext link to this voice actor (usually on MyAnimeList).
 
function VoiceActorData:link()
 
if self._page then
 
return self._page, self:name()
 
else
 
return self:name()
 
end
 
end
 
 
 
--The name of the voice actor in Japanese.
 
function VoiceActorData:japanese_name()
 
return self._japanese_name
 
end
 
 
 
--The reading of the voice actor's Japanese name.
 
function VoiceActorData:reading()
 
return self._reading
 
end
 
 
 
function VoiceActorData:create(artist)
 
artist = artist or {}
 
setmetatable(artist, artist)
 
artist.__index = self
 
artist.__call = self.__call
 
return artist
 
end
 
  
 
return VoiceActorData
 
return VoiceActorData

Revision as of 07:19, 3 August 2016

Documentation for this module may be created at Module:VoiceActorData/doc

local PersonData = require("Module:PersonData")

local VoiceActorData = PersonData()

return VoiceActorData