Thread:Extension talk:TemplateData/HowTo add a VisualEditor's TemplateData for a Magic Word ?/reply

This is not possible yet. However, there is an open bug for allowing documentation of parser functions, one type of magic word. Legoktm has an in-progress patchset.