Contenuto cancellato Contenuto aggiunto
Jarekt (discussione | contributi)
Riga 21:
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)
::We have to correct the position of the template in thousands of pages anyway. I think you better complete the procedure you started, and then we refine position with another bot. But place the template even if you don't find Portale; just place it at the bottom of the page, it is temporarily invisible --[[Utente:Bultro|Bultro]] ([[Discussioni utente:Bultro|m]]) 14:28, 12 feb 2013 (CET)