croptool icon indicating copy to clipboard operation
croptool copied to clipboard

Bug when cropping template {{Book}} with other templates inside

Open bennylin opened this issue 9 months ago • 1 comments

Have been reported in #222

  • https://commons.wikimedia.org/w/index.php?title=File:Pirandello_-_Come_prima,meglio_di_prima(page_5_crop).jpg&diff=prev&oldid=985836904

Basically when the {{Book}} template has other templates inside, it cut the top part of the template, like example above, or below:

  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_279_crop)_-_Malay_language.jpg&diff=prev&oldid=1021231801
  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_280_crop)_-_Malay_language.jpg&diff=prev&oldid=1021231914
  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_281_crop)_-_Batak_language.jpg&diff=prev&oldid=1021232171
  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_282_crop)_-_Batak_language.jpg&diff=prev&oldid=1021233109
  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_283_crop)_-_Javanese_language.jpg&diff=prev&oldid=1021233319
  • etc.
  • https://commons.wikimedia.org/w/index.php?title=File:Standard_Alphabet_(1863)Harvard(page_287_crop)_-_Bugis_language.jpg&diff=next&oldid=1021234052

Basically there must be some code that look for closing template }} and mistook these {{language}} or {{Creator}} templates.

bennylin avatar Apr 15 '25 20:04 bennylin