I'm having trouble trying to do bullet points using the MediaWiki API, I can't work out how to get it to do the new line, everything ends up on the same line.
I've tried using
$maps[] = "* " . $mapName . "<br/>";
$maps[] = "* " . $mapName . "\n";
$maps[] = "* " . $mapName . "\r\n";
None of which work
I'm updating the wiki using
$endPoint = "URL";
$params4 = [
"action" => "edit",
"title" => $title,
"text" => $content,
"token" => $csrf_Token,
"format" => "json"
];
$ch = curl_init();
curl_setopt( $ch, CURLOPT_URL, $endPoint );
curl_setopt( $ch, CURLOPT_POST, true );
curl_setopt( $ch, CURLOPT_POSTFIELDS, http_build_query( $params4 ) );
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, true );
curl_setopt( $ch, CURLOPT_COOKIEJAR, "cookie.txt" );
curl_setopt( $ch, CURLOPT_COOKIEFILE, "cookie.txt" );
$output = curl_exec( $ch );
curl_close( $ch );
Got it working using
$maps[] = "* [[" . $mapName . "]]<br/>%0D%0A";