After the US president pulled out of the hard-fought deal to combat global warming, climate change was always going to be centre-stage at this week's gathering of the G20.
After the US president decided last month to pull out of the hard-fought deal to combat global warming, climate change was always going to be centre-stage at this week's gathering of the G20 -- major economies that are together responsible for the vast majority of harmful emissions.
Ultimately, the final joint statement after the summit in Hamburg underlined that the 2015 Paris deal is "irreversible", while "taking note" of Washington's decision to quit the agreement.
The key risk for defenders of the global pact is that other countries could now follow Trump's lead.
The ink was barely dry on the G20 statement before Turkey's President Recep Tayyip Erdogan threatened not to ratify the deal without financial concessions.
"After that step taken by America, the position that we adopt is in the direction of not passing it in parliament," Erdogan said.
The rest of the G20 made an exceptional concession to the US by letting through a passage in their joint declaration specifically referring to Washington's position.
It confirms that the US is committed to lowering its emissions, so long as this is compatible with economic growth.
Andrew Light of the World Resources Institute said this was the most interesting line in the text, indicating it stood in "stark contrast" with Trump's arguments about pulling out in which he claimed that "fulfilling our commitments to Paris would hurt our economy".
Celine Bak of Canada's Centre for International Governance Innovation hailed the wording as "a clear victory for the G20, which knew how to formulate a statement that could allow President Trump to re-integrate into the Paris accord."
She is not alone in hoping Washington could be brought back into the fold.
French President Emmanuel Macron said he "never gives up hope on convincing" Trump to change his mind on the Paris deal, while British Prime Minister Theresa May also said she believed such a return was possible.
"It's good to be optimistic, but there comes a point where that turns into naivety," said Francois Julliard of Greenpeace France.
"Yes, the United States could come back to the Paris accord, but right now, in concrete terms, they're disengaging."
German Chancellor Angela Merkel, for her part, said she "did not share the optimism" of those hoping for a change of heart.
A problem for the optimists is that the US passage of the statement could help cracks grow in the united global front on climate change.
It clearly states Washington's wish to continue using and selling polluting fossil fuels.
"The strength of the Paris accord was that it was universal," said Julliard.
"Today we have one country -- and not just any country -- that is going to launch a parallel process of negotiations with countries that want to go into fossil fuels."
But Alden Meyer of the US Union of Concerned Scientists insisted the concession to America's attachment to oil and gas "will do nothing to slow the accelerating shift away from polluting fossil fuels towards a global economy powered by clean, renewable energy."
Ultimately, analysts say, US officials went into the G20 talks seeking to tout their enormous shale gas and oil reserves to other countries -- notably to Eastern European nations dependent on Russian gas.
"Trump's speech and visit to Poland (on the eve of the summit) are testament to that," said Bak.
Despite the uncertainties thrown up by the US manoeuvres, the rest of the G20 appear to be forging ahead with joint efforts on climate change -- with the notable exception of Turkey, which has now signalled it wants its own concessions.
Macron announced a new summit on climate change in France on December 12, notably to tackle the thorny issue of how to finance the shift to a cleaner economy.