Difference between revisions of "Template:LCCN/sandbox"
Jump to navigation
Jump to search
imported>Headbomb |
imported>AManWithNoPlan (update to match actual template) |
||
| Line 1: | Line 1: | ||
| − | {{#if:{{{3|}}} | + | <includeonly><!-- |
| − | + | -->{{#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|}}} |
| − | + | |{{#iferror:{{#expr:{{padleft:|2|{{{1|}}} }} }}|2 | |
| − | }} | + | |{{#ifeq:{{padright:{{{1|}}}|10|x}}|{{{1|}}}|2|0}} }} }}<!-- |
| + | -->}}</includeonly> | ||