Difference between revisions of "Template:DPL Page Name S/N Maker test"
From FollowTheScore
Roc michael (talk | contribs) |
Roc michael (talk | contribs) |
||
Line 1: | Line 1: | ||
− | {{# | + | The next serial number is ''' |
− | + | {{#if:{{{namespace|}}}|{{{namespace|}}}:}}{{{prefix|}}}<!-- | |
− | + | -->{{#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 | ||
}} | }} | ||
+ | |{{{namespace|}}}:{{{namespace|}}} | ||
+ | | | ||
+ | }} | ||
+ | +1 | ||
+ | }} | ||
+ | |{{{pad|5}}} | ||
+ | |0 | ||
+ | }}''' | ||
− | + | {{#inputbox: | |
− | {{# | + | |type=create |
− | + | |buttonlabel={{{buttonlabel|creat}}} | |
− | + | |width={{{width|25}}} | |
− | + | |editintro={{{editintro|}}} | |
− | + | |preload={{{preload|}}} | |
− | + | |break=no | |
− | + | |default={{#if:{{{namespace|}}}|{{{namespace|}}}:}}{{{prefix|}}}<!-- | |
− | ---- | + | -->{{#pad:<!----------------- (X+1) => 0000(X+1) |
− | {{#replace: | + | -->{{#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 | ||
}} | }} | ||
− | + | |{{{namespace|}}}:{{{namespace|}}} | |
− | + | | | |
− | + | }} | |
− | + | +1 | |
+ | }} | ||
+ | |{{{pad|5}}} | ||
+ | |0 | ||
+ | }} | ||
+ | }}<noinclude> | ||
---- | ---- | ||
− | {{# | + | {{#if:{{{namespace|}}}|{{{namespace|}}}:}}{{{prefix|}}}<!-- |
− | -->{{#replace:<!--- | + | -->{{#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|CPR-}}}[0-9]{{{{pad|5}}}}$<!--- | |
− | + | -->|namespace={{{namespace|Help}}}<!--- | |
+ | -->|order=descending<!--- | ||
+ | -->|noresultsheader={{#pad:0|{{{pad|5}}}|0}}<!--- | ||
+ | -->|count=1 | ||
+ | }} | ||
+ | |/^([^{{!}}]+\{{!}}){1}([^\]]+).*/ | ||
+ | |\2 | ||
}} | }} | ||
− | + | |{{{namespace|Help}}}:{{{namespace|CPR-}}} | |
− | + | | | |
− | }} | + | }} |
− | + | +1 | |
− | + | }} | |
− | + | |{{{pad|5}}} | |
+ | |0 | ||
+ | }} | ||
To be continue,I am busy now. | To be continue,I am busy now. | ||
+ | </noinclude> |
Revision as of 12:55, 22 March 2009
The next serial number is {{#pad:Expression error: Unrecognized punctuation character "{".
|5 |0 }}
{{#inputbox:
|type=create |buttonlabel=creat |width=25 |editintro= |preload= |break=no |default={{#pad:Expression error: Unrecognized punctuation character "{". |5 |0 }}
}}
{{#pad:Expression error: Unrecognized punctuation character "{".
|5 |0 }}
To be continue,I am busy now.