Difference between revisions of "Template:LCCN/sandbox"

From blackwiki
Jump to navigation Jump to search
imported>Headbomb
imported>AManWithNoPlan
(Undid revision 689975370 by AManWithNoPlan (talk))
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{#if:{{{3|}}}
+
<includeonly>{{LCCN/prepare
|{{hide in print|1=[[Library of Congress Control Number|LCCN]]&nbsp;[http://lccn.loc.gov/{{{1|}}}{{padleft:{{{3|}}}|{{#expr:10-({{str len|{{{1|}}}}}+{{str len|{{{3|}}}}})}}|0}} {{{1|}}}{{padleft:{{{3|}}}|{{#expr:10-({{str len|{{{1|}}}}}+{{str len|{{{3|}}}}})}}|0}}]}}<!--
+
|{{{1|}}}
-->{{only in print|1=LCCN&nbsp;{{{1|}}}{{padleft:{{{3|}}}|{{#expr:10-({{str len|{{{1|}}}}}+{{str len|{{{3|}}}}})}}|0}}}}[[Category:Articles using legacy format in Template:LCCN]]
+
|{{#iferror:{{#expr:{{padleft:|2|{{{1|}}} }} }}|2
|{{#if:{{{1|}}}
+
|{{#ifeq:{{padright:{{{1|}}}|10|x}}|{{{1|}}}|2|0}} }} }}</includeonly>
  |{{hide in print|1=[[Library of Congress Control Number|LCCN]]&nbsp;[http://lccn.loc.gov/{{{1|}}} {{{1|}}}]}}<!--
 
-->{{only in print|1=LCCN&nbsp;{{{1|}}}}}
 
}}
 
}}
 

Latest revision as of 15:28, 10 November 2015