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)
 
 
(6 intermediate revisions by the same user not shown)
Line 1: Line 1:
==error with namespace and prefix==
+
The next serial number is '''
After creating pages named "Talk00001" and "Help:CPR-0001", I get errors like following:
+
{{#if:{{{namespace|}}}|{{{namespace|}}}:}}{{{prefix|}}}<!--
[[Image:N Maker Template error.png|500px]]
+
-->{{#pad:<!----------------- (X+1)                        =>  0000(X+1)
 +
      -->{{#expr:<!-----------0000X+1                      =>  (X+1)
 +
        -->{{#replace:<!------"Namespace:prefix0000X"       =>  "0000X"  
 +
            -->{{#replace:<!---"*[[Namespace:prefix0000X]]"  =>  "Namespace:prefix0000X"
 +
                -->{{#dpl:  <!--return pages named "*[[Namespace:prefix0000X]]"
 +
                  -->titleregexp=^{{{prefix|}}}[0-9]{{{{pad|5}}}}$<!---
 +
                  -->|namespace={{{namespace|}}}<!---
 +
                  -->|order=descending<!---
 +
                  -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!---
 +
                  -->|count=1
 +
                }}
 +
              |/^([^{{!}}]+\{{!}}){1}([^\]]+).*/ 
 +
              |\2
 +
              }}
 +
            |{{#if:{{{namespace|}}}|{{{namespace|}}}:}}{{{prefix|}}}
 +
            |
 +
            }}
 +
          +1
 +
          }}                   
 +
    |{{{pad|5}}}
 +
    |0
 +
    }}'''

Latest revision as of 14:11, 22 March 2009

The next serial number is {{#pad:Expression error: Unrecognized punctuation character "{".

   |5
   |0
   }}