import mwparserfromhell
import pywikibot
ma_page = pywikibot.Site('en','wikipedia')
page = pywikibot.Page(ma_page,'Solid')
mon_text = page.get()
wikicode = mwparserfromhell.parse(mon_text)
templates = wikicode.filter_templates()
print(templates)
['{{Other uses}}', '{{pp-semi|small=yes}}', '{{pp-move-indef}}', '{{refimprove|date=May 2017}}', '{{Continuum mechanics}}', '{{multiple image\n   | align     = left\n   | image1    = Silica.svg\n   | alt1      = Atoms of Si and O; each atom has the same number of bonds, but the overall arrangement of the atoms is random.\n   | width1    = 200\n   | image2    = SiO² Quartz.svg\n   | alt2      = Regular hexagonal pattern of Si and O atoms, with a Si atom at each corner and the O atoms at the centre of each side.\n   | width2    = 200\n   | footer    = Schematic representation of a random-network glassy form (left) and ordered crystalline lattice (right) of identical chemical composition.\n}}', '{{further|Bonding in solids}}', '{{Cite book|url=https://books.google.com/books?id=_uUlDwAAQBAJ&pg=PA39&dq=sodium+chloride+made+up+of+ionic+sodium+and+chlorine+ionically+bonded+together&hl=en&sa=X&ved=0ahUKEwjx1aHLur7UAhUU0GMKHSTlCqkQ6AEIKDAB#v=onepage&q=sodium%20chloride%20made%20up%20of%20ionic%20sodium%20and%20chlorine%20ionically%20bonded%20together&f=false|title=GENERAL BIOLOGY I: Molecules, Cells and Genes|last=Holley|first=Dennis|date=2017-05-31|publisher=Dog Ear Publishing|isbn=9781457552748|language=en}}', '{{Cite book|url=https://books.google.com/books?id=HI9qBAAAQBAJ&pg=PA93&dq=in+diamond++atoms+share+electrons+forming+covalent+bonds&hl=en&sa=X&ved=0ahUKEwiggrOLu77UAhVF02MKHXJnAuMQ6AEINjAD#v=onepage&q=in%20diamond%20%20atoms%20share%20electrons%20forming%20covalent%20bonds&f=false|title=Nanotechnology: Understanding Small Systems, Third Edition|last=Rogers|first=Ben|last2=Adams|first2=Jesse|last3=Pennathur|first3=Sumita|date=2014-10-28|publisher=CRC Press|isbn=9781482211726|language=en}}', '{{Cite book|url=https://books.google.com/books?id=on_SBwAAQBAJ&pg=PA15&dq=in+silicon+atoms+share+electrons+forming+covalent+bonds&hl=en&sa=X&ved=0ahUKEwiihf6nu77UAhUL7WMKHQ3XC3UQ6AEIIjAA#v=onepage&q=in%20silicon%20atoms%20share%20electrons%20forming%20covalent%20bonds&f=false|title=Accidental Injury: Biomechanics and Prevention|last=Nahum|first=Alan M.|last2=Melvin|first2=John W.|date=2013-03-09|publisher=Springer Science & Business Media|isbn=9781475722642|language=en}}', '{{Cite book|url=https://books.google.com/books?id=oEvTt1ZFo_MC&pg=PA60&dq=in+metal+electrons+shared+through+metallic+bonding&hl=en&sa=X&ved=0ahUKEwj-0sK8u77UAhUByWMKHTRnCNwQ6AEIPjAE#v=onepage&q=in%20metal%20electrons%20shared%20through%20metallic%20bonding&f=false|title=Materials Science|last=Narula|first=G. K.|last2=Narula|first2=K. S.|last3=Gupta|first3=V. K.|date=1989|publisher=Tata McGraw-Hill Education|isbn=9780074517963|language=en}}', '{{Main|Metal}}', '{{Cite book|url=https://books.google.com/books?id=0ID973WaVBoC&pg=PA58&dq=strong,+dense,+and+good+conductors+of+electricity+and+heat+metals&hl=en&sa=X&ved=0ahUKEwiY1tbJ5-HTAhUFjlQKHYHmAPsQ6AEIKzAB#v=onepage&q=strong,%20dense,%20and%20good%20conductors%20of%20electricity%20and%20heat%20metals&f=false|title=Science Foundation|last=Arnold|first=Brian|date=2006-07-01|publisher=Letts and Lonsdale|isbn=9781843156567|language=en}}', '{{Cite book|url=https://books.google.com/books?id=NH23yrRwbU4C&pg=PA78&dq=strong,+dense,+and+good+conductors+of+both+electricity+and+heat+metals&hl=en&sa=X&ved=0ahUKEwjj_fuR5-HTAhXGw1QKHWReD2gQ6AEIOTAE#v=onepage&q=strong,%20dense,%20and%20good%20conductors%20of%20both%20electricity%20and%20heat%20metals&f=false|title=The Facts on File Chemistry Handbook|last=Group|first=Diagram|date=2009-01-01|publisher=Infobase Publishing|isbn=9781438109558|language=en}}', '{{cite book| author = Mortimer, Charles E.|title = Chemistry: A Conceptual Approach|location = New York:|publisher = D. Van Nostrad Company| edition = 3rd |date= 1975| isbn = 0-442-25545-4}}', '{{Main|Minerals}}', '{{Cite book|url=https://books.google.com/books?id=j9guFwAQZjsC&pg=PA666&dq=Minerals+are+naturally+occurring+solids+formed+through+various+geological+processes+under+high+pressures.&hl=en&sa=X&ved=0ahUKEwj91Ifyt8PUAhVBT2MKHX8WAsAQ6AEILDAC#v=onepage&q=Minerals%20are%20naturally%20occurring%20solids%20formed%20through%20various%20geological%20processes%20under%20high%20pressures.&f=false|title=Drilling in Extreme Environments: Penetration and Sampling on Earth and other Planets|last=Bar-Cohen|first=Yoseph|last2=Zacny|first2=Kris|date=2009-08-04|publisher=John Wiley & Sons|isbn=9783527626632|language=en}}', '{{Main|Ceramic engineering}}', '{{Cite web|url=http://autocww.colorado.edu/~toldy3/E64ContentFiles/Construction/Ceramics.html|title=Ceramics|website=autocww.colorado.edu|access-date=2017-05-09}}', '{{Main|Glass-ceramic}}', '{{Main|Organic chemistry}}', '{{Main|Wood}}', '{{Main|Polymer}}', '{{Main|Composite material}}', '{{Main|Semiconductors}}', '{{Main|Nanotechnology}}', '{{Cite journal|last1 = Buffat|first1 = Ph.|last2 = Borel|first2 = J.-P. |title = Size effect on the melting temperature of gold particles \n|journal = Physical Review A|volume = 13|issue = 6\n|pages = 2287|date = 1976|doi = 10.1103/PhysRevA.13.2287|bibcode = 1976PhRvA..13.2287B }}', '{{cite book|url=https://books.google.com/?id=-Ll6qjWB-RUC&pg=PA164|pages=164–167|title=Handbook of materials and techniques for vacuum devices|author=Walter H. Kohl|publisher=Springer|date=1995|isbn=1-56396-387-6}}', '{{cite journal|doi=10.1088/1468-6996/10/4/045004|title=Inherent tensile strength of molybdenum nanocrystals|date=2009|last1=Shpak|first1=Anatoly P.|first2=Sergiy O.|first3=Tatjana I|first4=Igor M|journal=Science and Technology of Advanced Materials|volume=10|page=045004|last2=Kotrechko|last3=Mazilova|last4=Mikhailovskij|bibcode=2009STAdM..10d5004S|issue=4|pmc=5090266|pmid=27877304}}', '{{Main|Biomaterials}}', '{{main|Solar cell}}', '{{Reflist|30em}}', '{{State of matter}}', '{{Authority control}}']