Diferencia entre revisiones de «Plantilla:PAGENAMEBASE»

De Familia Sanchez Arjona
Saltar a: navegación, buscar
m (Protected Template:PAGENAMEBASE: Highly visible template: Used in Template:Taxobox ([edit=sysop] (indefinite) [move=sysop] (indefinite)))
(updated to use newer, faster, stronger {{tl|strfind short}})
Línea 1: Línea 1:
{{#ifexpr: {{str find|{{PAGENAME}}|(}} != -1
+
{{Strloc prefix|{{{1|{{PAGENAME}}}}}|
  | {{str ≤ len | {{PAGENAME}} | 49
+
  strloc= {{strfind_short|{{{1|{{PAGENAME}}}}}|(|1|
                                <!-- The max {{str find}} can handle is 50 -->
+
    lenstr= {{strlen_quick|{{{1|{{PAGENAME}}}}}|}}}}-2
  | {{str left| {{PAGENAME}} | {{#expr:{{str find|{{PAGENAME}}|(}}-2}} }} <!-- Short enough for {{str find}} to work, and contains a "(" -->
 
  | {{PAGENAME}} <!-- Too long for {{str find}} -->
 
  }} <!-- PAGENAME contains a "(" -->
 
  | {{PAGENAME}} <!-- No "(" found in PAGENAME -->
 
 
}}<noinclude>
 
}}<noinclude>
 
{{documentation}}
 
{{documentation}}
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
<!-- Add categories and interwikis to the /doc subpage, not here! -->
 
</noinclude>
 
</noinclude>

Revisión del 02:11 13 feb 2011

Plantilla:Strloc prefix

50px Template documentation[create]