Sandbox:Module:Test: Difference between revisions

From Elwiki
No edit summary
No edit summary
Line 1: Line 1:
{{#invoke:Test|main
require('Module:CommonFunctions')
|name=Ain
require('Module:InfoboxProto');
|color={{ColorSel|Character|Ain}}
local getArgs = require('Module:Arguments').getArgs
|image={{Tabber
local p = {}
|Normal=[[File:Portrait - Ain.png|340px]]
 
|Spiritualism=[[File:Portrait - Ain (Spiritualism).png|340px]]
-- Main process
}}
function p.main(frame)
|class=[[File:Mini Icon - Ain.png]] Ain
    local args = getArgs(frame);
|weapon=Pendulum, Projection Weapons, Cycle Magic
 
|age=Unknown (Appears 21 years old)
    local infobox = require('Module:InfoboxProto').main(frame);
|race=Angel
 
|tree=<span style="display:none">{{</span>
    if (args.name1 == nil and args.name2 == nil) then
{{Class Tree|
        addField('name', 'Full Name');
| 1-1=[[File:Icon - Lofty Executor.png|40px|link=Lofty: Executor]]
    end
| 1-2=[[File:Icon - Arme Thaumaturgy.png|40px|link=Arme Thaumaturgy]]
    addField2('name', 'Full Name');
| 1-3=[[File:Icon - Richter.png|40px|link=Richter]]
    addField('class');
| 2-0=[[File:Icon - Ain.png|40px|link=Ain]]
    addField2('classes', 'Classes');
| 2-1=[[File:Icon - Lofty Anpassen.png|40px|link=Lofty: Anpassen]]
    addField('weapon', nil, true);
| 2-2=[[File:Icon - Erbluhen Emotion.png|40px|link=Erbluhen Emotion]]
    addField('age', nil, true);
| 2-3=[[File:Icon - Bluhen.png|40px|link=Bluhen]]
    addField('race', nil, true);
| 3-1=[[File:Icon - Lofty Wanderer.png|40px|link=Lofty: Wanderer]]
    addField('Birth', 'Birthday', true);
| 3-2=[[File:Icon - Apostasia.png|40px|link=Apostasia]]
    addField('Height', nil, true);
| 3-3=[[File:Icon - Herrscher.png|40px|link=Herrscher]]
    addField('Weight', nil, true);
| 4-1=[[File:Dunno.png|40px|link=]]
    addField('Blood', 'Blood Type', true);
| 4-2=[[File:Dunno.png|40px|link=]]
    addField('ESP', '[[El Search Party Collection|ESP Collection]]');
| 4-3=[[File:Dunno.png|40px|link=]]
    addField('tree', 'Class Tree');
}}
    addField('VA', 'Voice Actors', true);
<span style="display:none">}}</span>
    addField('RD', 'Release Date');
|VA=[[File:Korean_Flag.png|20px]] 김승준 (Kim Seung-jun)<br>[[File:Japanese Flag.png|20px]] 武内 駿輔 (Takeuchi Shunsuke)<br>[[File:German_Flag.png|20px]] Oliver Wronka<br>[[File:Spanish_Flag.png|20px]] Masumi Matsada<br>[[File:French_Flag.png|20px]] Slimane Yefsah<br>[[File:Italian_Flag.png|20px]] Omar Maestroni<br>[[File:Polish_Flag.png|20px]] Kamil Pruban<br>[[File:English Flag.png|20px]] Jay Britton
    addField('TRD', 'Transcendence Release Date');
|RD=[[File:Korean_Flag.png|20px]] 15 December 2016<br>[[File:Japanese Flag.png|20px]] 21 December 2016<br>[[File:American Flag.png|20px]] 21 December 2016<br>[[File:Chinese Flag.png|20px]] 11 January 2017<br>[[File:Taiwanese Flag.png|20px]] 12 January 2017<br>[[File:European Union Flag.png|20px]] 13 June 2017
    addField('MRD', 'Master Class Release Date');
|height=182 cm (6 ft)
    addField('theme');
|weight=73 kg/0 kg (Spiritualism) (161 lb/0 lb)
    addField('video', 'Job Path Story Movie');
|theme=[http://www.youtube.com/watch?v=4In7L44yKTk '''''li_tutorial_ain01''''']
    addField('stat', 'Statistics');
|stats=
   
{{CharStats
    return tostring(infobox);
| Color={{ColorSel|CharStats|Ain}}
 
| Speed=2
end
| Range=2
 
| Difficulty=2
return p
| Damage=M
}}
}}
<div style="clear:both"></div>
<br>
{{#invoke:Test|main
|name=Demersio
| colset=2
| nameset=2
| fullname1=Luciela "Lu" R. Sourcream
| fullname2=Ciel
|color={{ColorSel|Character|Lu/Ciel}}
|image=[[File:Portrait - Demersio.png|450px]]
|class=[[File:Mini Icon - Demersio.png]] Demersio
| classesset=Demersio
| classes1=[[File:Mini Icon - Nihilida.png]] Nihilida
| classes2=[[File:Mini Icon - Tyrannus.png]] Tyrannus
| weaponset=2
| weapon1=Magic Gauntlets
| weapon2=Gun Blades
| ageset=2
| age1=Unknown
| age2=29
| raceset=2
| race1=Demon
| race2=Demon
| ESP=Adaptability
| tree=<span style="display:none">{{</span>
{{Class Tree|
| 4-0=[[File:Icon - LuCiel (Lu).png|40px|link=Lu/Ciel]]
| 4-1=[[File:Icon - Emptiness.png|40px|link=Emptiness]]
| 4-2=[[File:Icon - Turbids.png|40px|link=Turbids]]
| 4-3=[[File:Icon - Demersio.png|40px|link=Demersio]]
}}
<span style="display:none">}}</span>
|RD=[[File:Korean Flag.png|20px]] 28 April 2022<br>
|MRD=[[File:Korean_Flag.png|20px]] 28 April 2022<br>
|video=<center>{{#ev:youtube|xjLBdFBDGzc|400}}</center>
|stat=
{{CharStats
| Color={{ColorSel|CharStats|Lu/Ciel}}
| Speed=
| Range=2
| Difficulty=
| Damage=M
}}}}

Revision as of 22:42, 28 April 2022

require('Module:CommonFunctions') require('Module:InfoboxProto'); local getArgs = require('Module:Arguments').getArgs local p = {}

-- Main process function p.main(frame)

   local args = getArgs(frame);
   local infobox = require('Module:InfoboxProto').main(frame);
   if (args.name1 == nil and args.name2 == nil) then
       addField('name', 'Full Name');
   end
   addField2('name', 'Full Name');
   addField('class');
   addField2('classes', 'Classes');
   addField('weapon', nil, true);
   addField('age', nil, true);
   addField('race', nil, true);
   addField('Birth', 'Birthday', true);
   addField('Height', nil, true);
   addField('Weight', nil, true);
   addField('Blood', 'Blood Type', true);
   addField('ESP', 'ESP Collection');
   addField('tree', 'Class Tree');
   addField('VA', 'Voice Actors', true);
   addField('RD', 'Release Date');
   addField('TRD', 'Transcendence Release Date');
   addField('MRD', 'Master Class Release Date');
   addField('theme');
   addField('video', 'Job Path Story Movie');
   addField('stat', 'Statistics');
   
   return tostring(infobox);

end

return p