wiki-link function debug+refactor.