Template:CPDLno: Difference between revisions
eu>BarryJ No edit summary |
eu>BarryJ No edit summary |
||
Line 1: | Line 1: | ||
{{#ifexpr:{{{1|0}}}<>0| '''CPDL No. <font color=brown>{{#ifexpr:{{#len:{{{1|0}}}}}<5|{{padleft:{{{1|0}}}|5|0}}|{{{1|0}}}}}</font>:'''{{#ifexpr:{{{1|0}}}>0|[[Category:CPDL {{#sub:{{#ifexpr:{{#len:{{{1|0}}}}}<5|{{padleft:{{{1|0}}}|5|0}}|{{{1|0}}}}}|0|-2}}xy]]}}|''Enter number greater than zero.''}} [[Category:CPDL {{padleft: {{{1|0}}}|5|0}}| {{padleft:{{{1|0}}}|5|0}}]]<noinclude> | {{#ifexpr:{{{1|0}}}<>0| '''CPDL No. <font color=brown>{{#ifexpr:{{#len:{{{1|0}}}}}<5|{{padleft:{{{1|0}}}|5|0}}|{{{1|0}}}}}</font>:'''{{#ifexpr:{{{1|0}}}>0|[[Category:CPDL {{#sub:{{#ifexpr:{{#len:{{{1|0}}}}}<5|{{padleft:{{{1|0}}}|5|0}}|{{{1|0}}}}}|0|-2}}xy]]}}|''Enter number greater than zero.''}} [[Category:CPDL {{padleft: {{{1|0}}}|5|0}}| {{padleft:{{{1|0}}}|5|0}}]]<noinclude> | ||
{{prot-temp}} | {{prot-temp}} | ||
<div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #8888ff; padding: 1em 1em 1em 1em; background-color:#eeeeff"> | <div style="margin: 0; margin-right: 30px; margin-left: 30px; border: 1px solid #8888ff; padding: 1em 1em 1em 1em; background-color:#eeeeff"> | ||
Line 11: | Line 10: | ||
</div> | </div> | ||
[[Category:Experimental templates]] | [[Category:Experimental templates]] | ||
<!--{{#dpl: | <!--{{#dpl:title= Edition:CPDL {{#pad:{{{1|0}}}|5|0}} |oneresultheader= [[Edition:CPDL {{#pad:{{{1|0}}}|5|0}}|'''CPDL #<font color=blue>{{#pad:{{{1|0}}}|5|0}}</font>:''']] |noresultsheader= {{#if:{{{2|}}}|'''[http://{{SERVERNAME}}/wiki/choralwiki_edition_data_viewer.php?edition={{{1|0}}} CPDL #<font color=brown>{{#pad:{{{1|0}}}|5|0}}</font>:'''] |'''CPDL #<font color=brown>{{#pad:{{{1|0}}}|5|0}}</font>:''' }}|allowcachedresults=true }}<includeonly>[[Category:CPDL {{#sub: {{#pad:{{{1|0}}}|5|0}} |0|-2}}xy|{{#sub: {{#pad:{{{1|0}}}|5|0}} |3}} ]]</includeonly>--> | ||
</noinclude> | </noinclude> |
Revision as of 23:06, 7 December 2019
Enter number greater than zero.
This high-risk template has been protected from editing to prevent vandalism. Please use the talk page to ask an administrator about making an edit to change this template. |
Please do not delete this template. It accomplishes several purposes, important for tracking CPDL numbers and collecting information about editions.
(1) It is a test for categorizing and tracking CPDL numbers, via a scheme that pads CPDL numbers to 5 digits and categorizes, say CPDL #01234 in category:CPDL 012xy, with sortkey 34 (CPDL number modulo 100). Thus, there would be fewer than a thousand (currently less than 300) new "CPDL abcxx" categories created.
(2) If, say, the page "Edition:CPDL 01234" exists, it is intended to hold all the relevant information to the edition with CPDL edition number CPDL #01234, and indeed the "CPDL #01234:" would be a link to "Edition:CPDL 01234" (if the page does not exist, "CPDL #01234:" is not a link).