{if $prefs.ajax_autosave eq "y"}
{self_link _icon_name="back" _ajax="n" _class="tips" _title=":{tr}Popup preview{/tr}" _onclick="ajax_preview( 'editwiki', autoSaveId );$('#autosave_preview').hide();return false;"} {/self_link} {self_link _icon_name="remove" _ajax="n" _class="tips" _title=":{tr}Close preview{/tr}" _onclick="$('#autosave_preview').hide();return false;"} {/self_link}
{jq} $("#preview_diff_style").change(function(){ ajaxLoadingShow($("#autosave_preview .wikitext")); setCookie("preview_diff_style", $(this).val(), "preview", "session"); $.get($.service("edit", "preview"), { editor_id: 'editwiki', autoSaveId: autoSaveId, inPage: 1, {{if isset($smarty.request.hdr)}hdr: {$smarty.request.hdr},{/if}} diff_style: $(this).val() }, function(data) { $("#autosave_preview .wikitext").html(data); ajaxLoadingHide(); }); }); {/jq}
{/if} {if $prefs.feature_jquery_ui eq "y"} {jq} $('#autosave_preview').resizable({ handles:{'s':'#autosave_preview_grippy'}, alsoResize:'#autosave_preview>div', resize: function(event, ui) { setCookie("wiki", $('#autosave_preview').height(), "preview", "session"); } }).height(getCookie("wiki", "preview", "")); $("#autosave_preview>div").height(getCookie("wiki", "preview", "")); {/jq} {/if}

{tr}Preview:{/tr} {$page|escape}

{if $prefs.feature_wiki_description eq 'y'} {$description} {/if}
{tr}Note: Remember that this is only a preview, and has not yet been saved!{/tr}
{$parsed}
{if $has_footnote and isset($parsed_footnote)}
{$parsed_footnote}
{/if}
{if $prefs.ajax_autosave eq "y"}
{/if}
{* Information below the wiki content must not overlap the wiki content that could contain floated elements *}