Extension:AddHTML/zh

功能

 * Secure: Only people who can edit 'protected' pages (sysops) can use the tag
 * Inserts HTML code section either through:
 * inline code without the tagged section e.g.  code here
 * or through PHP code
 * Parser Cache friendly

限制
The tag can only be used on pages which are 'protected', which means you might be forced to protect a page in order to use some HTML, which otherwise you would permit open editing on.

The extension currently does not work with current versions of MediaWiki. 阅读Thread:Project:Support_desk/Problem_after_modify_server以获取更多信息.

例子1
and use an extension such as  to populate the section # 'xyz' with HTML code.

例子2
 function disp_prompt { var name=prompt("Please enter your name","t3h h4x0r") if (name!=null && name!="") {   document.write("Hello " + name + "! How are you today?") } } 

安全
Pages where 'addhtml' is used must be protected or else an 'unauthorized use of addhtml' message will be displayed. If you have several 'sysop' users, you must trust them all not to abuse this feature.