Difference between revisions of "Template:DPL Page Name S/N Maker test"

From FollowTheScore
Jump to: navigation, search
(New page: ==error with namespace and prefix== After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following: 500px)
 
Line 1: Line 1:
==error with namespace and prefix==
+
{{#dpl:        <!--- return pages named "Namespace:prefix0000X
After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following:
+
                -->titleregexp=^{{{prefix|CPR-}}}[0-9]{{{{pad|5}}}}$<!---
[[Image:N Maker Template error.png|500px]]
+
                -->|namespace={{{namespace|Help}}}<!---
 +
                -->|order=descending<!---
 +
                -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!---
 +
                -->|count=1
 +
              }}
 +
 
 +
----
 +
{{#dpl:        <!--- return pages named "Namespace:prefix0000X
 +
                -->titleregexp=^{{{prefix|}}}[0-9]{{{{pad|5}}}}$<!---
 +
                -->|namespace={{{namespace|Talk}}}<!---
 +
                -->|order=descending<!---
 +
                -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!---
 +
                -->|count=1
 +
              }}
 +
----
 +
            {{#replace:
 +
              {{#dpl:        <!--- return pages named "Namespace:prefix0000X
 +
                -->titleregexp=^{{{prefix|CPR-}}}[0-9]{{{{pad|5}}}}$<!---
 +
                -->|namespace={{{namespace|Help}}}<!---
 +
                -->|order=descending<!---
 +
                -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!---
 +
                -->|count=1
 +
              }}
 +
              |/^([^{{!}}]+\{{!}}){1}([^\]]+).*/
 +
              |\2
 +
            }}
 +
 
 +
----
 +
        {{#replace:
 +
            {{#replace:
 +
              {{#dpl:        <!--- return pages named "Namespace:prefix0000X
 +
                -->titleregexp=^{{{prefix|CPR-}}}[0-9]{{{{pad|5}}}}$<!---
 +
                -->|namespace={{{namespace|Help}}}<!---
 +
                -->|order=descending<!---
 +
                -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!---
 +
                -->|count=1
 +
              }}
 +
              |/^([^{{!}}]+\{{!}}){1}([^\]]+).*/
 +
              |\2
 +
            }}
 +
          |{{{prefix|ECP-}}}
 +
 
 +
To be continue,I am busy now.

Revision as of 02:35, 22 March 2009



           {{#replace:
             |/^([^|]+\|){1}([^\]]+).*/
             |\2
           }}

        {{#replace:
           {{#replace:
             |/^([^|]+\|){1}([^\]]+).*/
             |\2
           }}
          |ECP-

To be continue,I am busy now.