Manual:$wgOut/zh

细节
The OutputPage object is output variable that can be modified to change rendering of the page. It encapsulates the entire HTML page that will be sent in response to any server request.

The OutputPage object is used by calling its functions to add text, headers, etc., in any order, and then calling  to send it all. The OutputPage object also conducts the output encoding.

例子
For example, you can add debug information.

(If using the default MonoBook skin, you will need to uncomment the line " " in MonoBook.php)

Other examples of using $wgOut:

Deprecation
As with other globals, the use of $wgOut should be avoided when alternative methods are available. For example, when writing a special page, use the  method provided by the  class, e.g.:

