format output to wikicode