Dropped the examples for extraction of specific compressed archives, tar
has had autodetection of the compression for over two decades.
Removed the dashes. No versions of tar require them and all they do is
cost you POSIX compatibility. (POSIX tar did *not* allow for the
dashes.)
List content of tar file.
I recommend reducing amount of options regarding compressed files since on some OS are allowed only in -c mode.
Basically :
-j : bzip2
-J : xz
-z : bzip2
Additionally the extract should manage as tar -xf file no matter which compression.