from typing import Dict


def generate_wiki_template_text(name: str, parameters: Dict[str, str]) -> str:
    """
    Generate wikitext for template call with name and parameters.

    Parameters should not contain unescaped '{', '}' or '|' characters,
    otherwsie generated text can be incorrect.
    """
    result = '{{' + name
    if len(parameters):
        result += '\n'
    for key, value in parameters.items():
        result += f'| {key} = {value}\n'
    result += '}}'
    return result