Dplnum

From DynamicPageList3 Manual
Revision as of 03:33, 21 April 2023 by imported>FrozenPlum (lsth transclude the modules back in from example subpages)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Manual dplnum


This module tries to guess a number that is buried in text, using a set of heuristic rules which may work or not. The idea is to extract the number, so it can be used as a sorting value in the column of a DPL table output.

Syntax

{{#dplnum:text}} where text is a number within some text.

Examples

Example set {{#lsth:Examples/Module: dplnum (example 1)|Example}}

Page Template:ViewTest/style.css must have content model "Sanitized CSS" for TemplateStyles (current model is "plain text").

Result set: {{#lsth:Examples/Module: dplnum (example 1)|Result}}