Template:Louvre number/sandbox
m
← Older revision
Revision as of 21:39, 14 March 2013
Line 6:
Line 6:
flat autocat
flat autocat
−
-->{{#switch: {{NAMESPACE}} | Category|File= [[Category:Musée du Louvre:Inventory/{{first word|{{{1}}}}}|{{numbersort|{{first word|{{remove first word|{{{1|}}} }} }}]]}}
+
-->{{#switch: {{NAMESPACE}} | Category|File= [[Category:Musée du Louvre:Inventory/{{first word|{{{1}}}}}|{{numbersort|{{first word|{{remove first word|{{{1|}}} }} }}]]}} unusual cases
+
| {{#ifeq: {{str endswith|{{{1|}}}|DR}}{{str endswith|{{{1|}}}|LR}}{{str endswith|{{{1|}}}|NI}} | yes
+
| {{str left|{{{1|}}}|{{#expr: {{str len|{{{1|}}}}} - 2}} }} [[:Category:Musée du Louvre:Inventory/{{str right|{{{1|}}}|{{#expr: {{str len|{{{1|}}}}} - 2}} }}|{{str right|{{{1|}}}|{{#expr: {{str len|{{{1|}}}}} - 2}} }}]]
+
}}
}}
}}