Contenuto cancellato Contenuto aggiunto
Nessun oggetto della modifica
Jarekt (discussione | contributi)
Riga 20:
==JarektBot==
Please add {{tl|controllo di autorità}} in the "Collegamenti esterni" section, not after the navigation templates. The section should be created if not present; it is always the last section of the page. --[[Utente:Bultro|Bultro]] ([[Discussioni utente:Bultro|m]]) 10:35, 10 feb 2013 (CET)
:At the moment I only add {{tl|controllo di autorità}} above {{tl|Portale}} template (I do not even add it if I do not find {{tl|Portale}}) as it was requested by [[utente:Nemo]] and approved after testing. At the moment the insertion code is: <code>new_src_text = re.sub(ur'\{\{[Pp]ortale\|', authority_text+u'{{Portale|', new_src_text)</code>. We can make this logic more complicated, if it is needed. I could add it just after "== Collegamenti esterni ==", if found and than just above {{tl|Portale}} otherwise. Would that be better? I do not think I can write robust code for finding the bottom of Collegamenti esterni section. --[[Utente:Jarekt|Jarekt]] ([[Discussioni utente:Jarekt|msg]]) 21:59, 10 feb 2013 (CET)