Utente:Samuele Papa/common.js: differenze tra le versioni
Contenuto cancellato Contenuto aggiunto
mNessun oggetto della modifica |
mNessun oggetto della modifica |
||
Riga 148:
curBook = caps[0].match(/[^(\{\{BibLink\|)]\w+/)[0];
curCap = caps[0].match(/[^(\{\{BibLink\|]\d+/)[0];
caps[0] = caps[0].replace(/[^\|]+\|[^\|]+\|/,"") //removes {{Biblink|whatever|
caps[0] = caps[0].replace(/\|/,". ")// replaces | with ". " because it's a chapter
caps[0] = caps[0].replace(/\{\{/,"")//removes remaining }}
// all this processing is needed in order not to remove
//too much information (i.e. all the chapters, versetti etc)
|