There are related questions: Aber, position in a sentence, Position of “aber” after first element of sentence, Position der Konjuktion "aber". I've read these, the Wiktionary entries (English and German), and the DWDS entry, but I'm still a bit confused. In particular I'm puzzled by this Usage note in Wiktionary:
"Unlike most other conjunctions, aber doesn't need to be the first word of a clause and can thereby emphasize the preceding word(s): Ich bin dafür, er aber lehnt es ab. — “I’m in favour, but he has rejected it.” In such a construction, aber can be considered an adverb, though the usual interpretation is that it is still a conjunction."
This confirms some of the information given in the SE posts, but it doesn't explain a sentence I recently came across:
"Kein Grund sich zu entschuldigen, aber es ist wirklich schön, dass du es getan hast."
"Das war aber deine Schuld!"
Context: The two people have just collided in a hallway; the first person thinks she's owed an apology and sarcastically thanks the second person for it even though he didn't offer one. The second person is annoyed by this and says it was her fault in the first place. (My transcription probably isn't completely accurate. The emphasis is mine.)
To summarize what I think is happening:
- When "aber" begins a clause it functions as a conjunction and can be translated as "but".
- When following another word it functions as an adverb as described in the usage note. I think a more natural translation of the Wikipedia example would be "I’m in favour; he, however, has rejected it." For some reason this meaning is still listed under "conjuntion" in dictionaries.
- When following the verb, it functions as a modal particle and conveys "to the contrary". So "It was (to the contrary) your fault!" There are other meanings of "aber" as a modal particle, but they don't seem to fit here.
So my problem with the usage note is that it covers 2 but not 3. The speaker was not trying to single out "war", so at best the note is incomplete. I think 3 is confirmed by many of these DWDS search results. Is my summary correct and should the note be amended? Or have I misunderstood something?