This is incorrect. Wikipedia relies primarily on secondary sources, which makes it a tertiary source, and it describes itself this way.[1] The World Factbook does not collect the information it provides, making it a secondary source.
[1]: https://en.wikipedia.org/wiki/WP:PSTS
It can be both. It uses Primary and Secondary sources. That is why you check the references and use them appropriately.
It can be both. It uses Primary and Secondary sources. That is why you check the references and use them appropriately.