Jump to content
This wiki has been automatically closed because there have been no edits or log actions made within the last 60 days. If you are a user (who is not the bureaucrat) that wishes for this wiki to be reopened, please request that at Requests for reopening wikis. If this wiki is not reopened within 6 months it may be deleted. Note: If you are a bureaucrat on this wiki, you can go to Special:ManageWiki and uncheck the "Closed" box to reopen it.

Dplnum: Difference between revisions

43 bytes removed ,  4 years ago
no edit summary
m (Alianin moved page DPL:Dplnum to Extension:DPL3/Dplnum without leaving a redirect: Changing namespaces.)
No edit summary
Line 1:
{{DPL Manualmanual|section=dplnum}}
 
=== Syntax ===
 
=== Syntax ===
<pre><nowiki>
{{#dplnum:text}}
</nowiki></pre>
 
=== Effect ===
Tries to guess a number that is buried in the text.
Uses a set of heuristic rules which may work or not.
 
TriesThe idea is to guessextract athe number so that isit buriedcan be used as a sorting value in the textcolumn of a DPL table output.
Uses a set of heuristic rules which may work or not.
 
The idea is to extract the number so that it can be used as a sorting value in the column of a DPL table output.
 
=== Example ===
 
=== Example ===
<nowiki> {{#dplnum:this is 4711 a text with a number}} </nowiki> returns: {{#dplnum:this is 4711 a text with a number}}
<nowiki> {{#dplnum:well above 47 Mio. US$}} </nowiki> returns: {{#dplnum:well above 47 Mio US$}}
Line 25 ⟶ 22:
<nowiki> {{#dplnum:it is 4,13}} </nowiki> returns: {{#dplnum:it is 4,13}}
<nowiki> {{#dplnum:it is 0,13}} </nowiki> returns: {{#dplnum:it is 0,13}}
 
[[Category:DPL Manual]]
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.