Many new users come to Stack Overflow and ask questions before they know the requirements of the site. This creates many duplicate, off-topic, and unanswerable questions. Some people don't care, but for those who want to learn to ask better questions, I am making this a place that can be linked to for your guidance.
The answers below are templates of what a good question might include. There are many different kinds of questions and there isn't a one-size-fits-all kind of template. However, if you don't know where to start, choosing the template that best fits your type of question will help. Click the edit button below the answer, and then copy the template text to your new question. Add or remove from it according to your situation.
And if you haven't seen them already, read the following:
- Stack Overflow Help Center: How do I ask a good question?
- How to create a Minimal, Complete, and Verifiable example (MVCE)
Meta Comments
Unlike previous meta feature-requests asking for some sort of required template built into the system (see here, here, here, and here), I am only soliciting answers right here that contain template samples which can be linked to from elsewhere. This is not a feature request to change the system in any way.
If I may, I'd like to request that meta discussion be kept to the comments, and the answers be reserved for actual question templates. If you have an issue with my idea and want to say more than a comment, I'd request that you make a new meta question and link to it in the comments.