The ankle sprain that has kept Trent Williams sidelined the past two games is still a problem, and Williams said it’s possible he’ll have to play through pain for much of the season.

Williams is questionable for Sunday’s game against San Francisco, and Coach Mike Shanahan says the second-year left tackle will be a gametime decision.

“I feel like if I had to go, I can go out there and be effective,” Williams said Friday after practice. “But I don’t know how good a 75 percent me is over a 100 percent Sean [Locklear]. I don’t want to be selfish. I want to play, but I want to help the team also.”

The offensive line could see some shuffling with or without Williams in the lineup. If he plays, it’s possible Locklear shifts over to left guard and Will Montgomery moves back to center. If Williams can’t go, the Redskins could stick with Locklear at left tackle, insert rookie Maurice Hurt at left guard and put Montgomery at center. Last week’s lineup — with Locklear at left tackle, Montgomery at left guard and Erik Cook at center — was partly to blame for the team’s 10 sacks allowed, and the Redskins were considering other options for this week’s game.

Williams was limited in practice Friday and said he tweaked the ankle earlier in the week, suffering a minor setback.

“It’s like every day it’s something,” Williams said. “You feel every little dent in the ground with a bad ankle.”

Williams said he’s played through similar pain in the past, but Redskins coaches will have to decide how much pain they want him to play through whenever he returns to the Washington lineup

“This a whole other level. College, you can go out there with one leg and still help the team,” Williams said.

“It’s all up to coach,” he continued, “how much he wants me to play through.”