This summary is not the rule. The rule text controls.
If you're involved in a court case under this rule, the judge has the power to decide who pays court costs and attorney fees. The judge can order any party to pay these costs, or split the costs between parties, based on what seems fair given the circumstances of the case.
There's one important limit on this power. If you're the person who filed the petition (the petitioner) and you lose your case, either because the court rules against you or dismisses your petition based on the actual facts and legal issues, you cannot be awarded attorney fees. In other words, you can't win money for your legal fees if you lose your case on its merits.
This means the judge has broad flexibility in most situations to decide who covers legal costs, but petitioners specifically can't collect attorney fees if their case doesn't succeed. This encourages people to only bring petitions they believe have real merit, since losing means they'll cover their own legal costs.