[ === main === ]
	[ ' dummy | default * // ADD_NO_DIV ' ]<div id="page-edit">
		[ ' message ' ]
		[ ' warning ' ]
		[= f _ =
			[= l _ =
				<div class="page-properties">[ ' accessmode ' ]<br><br><br>
				<span title="[ ' language ' ] ([ ' charset ' ])">[ ' lang ' ]&nbsp;&nbsp;</span></div>
			=]
			[= p _ =
				[ '' buttons '' ]
				<section id="preview" class="preview">
					<p class="preview"><span>[ ' _t: EditPreview ' ] ([ ' chars ' ] [ ' _t: Chars ' ])</span></p>
					<h1>[ ' title | e ' ]</h1>
					[ ' preview | pre ' ]
				</section>
				<br>
			=]
			<form action="[ ' href: edit ' ]" method="post" id="edit_page" name="edit_page" cf="true">
				[ ' csrf: edit_page ' ]
				[= new _ =
					<input type="hidden" name="page_lang" value="[ ' lang | e attr ' ]">
					<input type="hidden" name="tag" value="[ ' tag | e attr ' ]">
					<input type="hidden" name="add" value="1">
				=]
				[ '' buttons '' ]
				<br>
				<noscript><div class="errorbox-js">[ ' _t: WikiEditInactiveJs ' ]</div></noscript>
				[= e _ =
					<br>
					<label for="page_title">[ ' label ' ]</label><br>
					<input type="text" id="page_title" class="input-title" maxlength="250" value="[ ' title | e attr ' ]" size="100" name="title" >
					<br>
				=]
				[= r _ =
					<br>
					<h1>[ ' title | e ' ]</h1>
				=]

				<input type="hidden" name="previous" value="[ ' previous | e attr ' ]"><br>
				<textarea id="postText" class="textarea-page" name="body" rows="40" cols="60" required>[ ' body | pre ' ]</textarea>
				<br>

				[= n _ =
					<label for="edit_note">[ ' _t: EditNote ' ]:</label><br>
					<input type="text" id="edit_note" class="input-summary" maxlength="200" value="[ ' note | e attr ' ]" size="100" name="edit_note">
					<br>
				=]
				[= minor _ =
					<input type="checkbox" id="minor_edit" value="1" name="minor_edit">
					<label for="minor_edit">[ ' _t: EditMinor ' ]</label>
					<br>
				=]
				[= reviewed _ =
					<input type="checkbox" id="reviewed" value="1" name="reviewed">
					<label for="reviewed">[ ' _t: Reviewed ' ]</label>
					<br>
				=]
				[= a _ =
					<input type="checkbox" name="noid_publication" id="noid_publication" value="[ ' pageid ' ]" [ ' checked ' ]>
					<label for="noid_publication">[ ' _t: PostAnonymously ' ]</label>
					<br>
				=]
				[= w _ =
					<input type="checkbox" name="watchpage" id="watchpage" value="1" [ ' checked ' ]>
					<label for="watchpage">[ ' _t: NotifyMe ' ]</label>
					<br>
				=]
				[= c _ =
					<br>[ ' _t: Categories ' ]: 
					[ ' categories ' ]
				=]
				[ ' captcha ' ]
				<script>
					wE = new WikiEdit();
						[= autocomplete _ =
							if (AutoComplete) { wEaC = new AutoComplete( wE, "[ ' href: edit ' ]" ); }
						=]
					wE.init('postText', '[ ' wikiedit ' ]');
					[= user _ =
						var timeout = [ ' heartbeat ' ];
						var name = 'edit_page';
					=]
				</script>
				<br>
				[ '' buttons '' ]
			</form>
		=]
	</div>


[= buttons =]
<button type="submit" class="btn-ok" form="edit_page" name="save">[ ' _t: SaveButton ' ]</button>&nbsp;
<button type="submit" class="btn-ok" form="edit_page" name="preview">[ ' _t: EditPreviewButton ' ]</button>&nbsp;
<a href="[ ' href: ' ]" class="btn-link"><button type="button" class="btn-cancel">[ ' _t: CancelButton ' ]</button></a>

[ === similarTags === ]
<ol>
	[= l _ =
		<li>['' page '']</li>
	=]
</ol>
