In all actions by or against a county, and in actions or proceedings by or against county officers in their name of office, costs shall be awarded to the prevailing party as in actions between individuals.
Wis. Stat. § 814.23
A prevailing plaintiff in a habeas corpus proceeding may not be awarded costs. State ex rel. Korne v. Wolke, 79 Wis. 2d 22, 255 N.W.2d 446 (1977).