localp={}--[[mainThis function returns parameter 1 as a warning if the page containing it is being previewed.Usage:{{#invoke:Preview warning|main|warning_text}}]]functionp.main(frame)localpreview=frame.args[1]:match('^%s*(.-)%s*$')or''ifpreview==''thenpreview='Something is wrang wi this template'endifframe:preprocess("{{REVISIONID}}")==""thenreturn'<div class="hatnote" style="color:red"><strong>Wairnin:</strong> '..preview..' (this message is shawn anerly in preview)</div>'endendreturnp