Difference between revisions of "Template:LCCN/sandbox"
Jump to navigation
Jump to search
imported>AManWithNoPlan (testing) |
imported>AManWithNoPlan (current version) |
||
| Line 1: | Line 1: | ||
| − | <includeonly> | + | <includeonly><!-- |
| − | {{LCCN/prepare | + | -->{{#if:{{{3|}}}|<!-- |
| + | Legacy code to handle old uses: | ||
| + | -->{{LCCN/core|1={{{1}}}|2={{{3}}} }}[[Category:Articles using legacy format in Template:LCCN]]<!-- End legacy code. | ||
| + | -->|<!--Smart code using just one parameter:-->{{LCCN/prepare | ||
|{{{1|}}} | |{{{1|}}} | ||
|{{#iferror:{{#expr:{{padleft:|2|{{{1|}}} }} }}|2 | |{{#iferror:{{#expr:{{padleft:|2|{{{1|}}} }} }}|2 | ||
| − | |{{#ifeq:{{padright:{{{1|}}}| | + | |{{#ifeq:{{padright:{{{1|}}}|10|x}}|{{{1|}}}|2|0}} }} }}<!-- |
| − | </includeonly> | + | -->}}</includeonly> |