Thread:Kelerik/@comment-25435121-20150323003602/@comment-17486224-20150323011529

I did simplify the code a bit. You can read the documentation at Template:Card.