Help:DPL 手册

来自Terraria Wiki
跳转到导航 跳转到搜索
需要更新
此页面的(部分)内容需要更新,原因:
需要进行翻译。
你可以帮助我们来更新此页面。

Template:DPL Manual

DynamicPageList is a versatile MediaWiki extension that allows a wiki page to display lists of data compiled "live" from wiki pages.

Gamepedia Wikis use DPL version 3 (DPL3), a version built and maintained by Gamepedia Staff, based on the original legacy DPL/DPL2 code.

Note

A DPL manual is also provided at Gamepedia Help Wiki: Extension:DPL3/Manual. That manual was created using a new proprietary format.

The documentation here was taken directly from the repository available at http://semeb.com/dpldemo/. It retains the legacy format of the official DPL documentation, and is provided as an alternative to the Gamepedia Help version, as some users found it confusing.

General info

  • Authors and History
  • Source and Installation
  • Compatibility
  • General Usage and Invocation Syntax
    • There are two different methods of invoking DPL, each with its own advantages and disadvantages. This is an important distinction, so be sure to check this section.

Bug reporting and feature requests

Please post all bug reports, feature requests or calls for help on this extension's Mediawiki talk page.

Modules

  • dpl -- this is the main module. The list below describes its parameters.
  • #dplvar: A small cache that can hold a few variable values.
  • #dplnum: A small function that extracts numbers from strings.
  • #dplreplace: A function for string replacement, based on regular expressions (regex).
  • #dplmatrix: A small matrix generator that takes an indented list as input.
  • #dplchapter: A function that transcludes portions of another article (not described / not public so far).

DPL parameters