def colspan(text, cs=2):
    """Format colspan for text in wikitext table markup"""
    text = str(text)
    if '|' not in text[1:]:
        return f"| colspan='{cs}' | {text}\n"
    else:
        parts = text.split('|')
        return f"|{parts[1]}colspan='{cs}' | {parts[-1]}"