Jump to content

Category:解析器扩展

From mediawiki.org
This page is a translated version of the page Category:Parser extensions and the translation is 57% complete.
Outdated translations are marked like this.

解析器擴充功能會改變或強化MediaWiki解讀維基標記語言的方式。從高層次來看,它們可歸納為三類:

  1. #新增標準令牌類型:自訂MediaWiki標記的標準做法是新增類似內建 MediaWiki XML標籤‎<標籤>)、模板{{...}})、或連結標記([[...]])的標記。例如,請看:
  2. #新增自訂令牌類型:某些擴充功能會定義新的令牌類型。 示例详见 分类:扩充语法扩展
  3. Fundamental changes to the parser: A few extensions attempt fundamentally change the parsing strategy so that markup from other sorts of wikis and content management can be used (must be used?) instead of the standard wiki markup. Like token changes, one must implement these extensions by adding functions to the parser and page output hooks. For examples, please see Category:Extended syntax extensions.

参阅: