-
Notifications
You must be signed in to change notification settings - Fork 22.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
docs(meta): Add See also section guidelines to writing style guide #25191
Conversation
Preview URLs (15 pages)
Flaws (43)Note! 3 documents with no flaws that don't need to be listed. 🎉 URL:
URL:
URL:
URL:
URL:
No first query argument or 'browser-compat' or 'spec-urls' front-matter value passed` URL:
URL:
URL:
URL:
URL:
URL:
URL:
External URLs (11)URL:
URL:
(comment last updated: 2023-03-22 19:46:36) |
- [English Grammar FAQ](https://www-personal.umich.edu/~jlawler/aue.html) (alt.usage.english) | ||
- [Merriam-Webster's Concise Dictionary of English Usage](https://www.amazon.com/Merriam-Websters-Concise-Dictionary-English-Usage/dp/B004L2KNI2) (Amazon link): Scholarly but user-friendly, evidence-based advice; very good for non-native speakers, especially for preposition usage. | ||
- [English Language and Usage StackExchange](https://english.stackexchange.com/): Question and answer site for English language usage. | ||
- Preferred style guides: If you have questions about usage and style not covered here, we recommend referring to the [Microsoft Writing Style Guide](https://docs.microsoft.com/style-guide/welcome/) or [The Chicago Manual of Style](https://www.amazon.com/Chicago-Manual-Style-16th/dp/0226104206). |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This list still doesn't follow the new See also guide (which says titles-only), does it? ^^ I slightly prefer the original style (without a list), and I would rather change the title to "Further reading" if "See also" implies some kind of structure.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, you're right. This "See also" section in the writing style guide is still description-heavy and kinda non-compliant with the proposed guidelines. So, good catch! I guess I missed to make it titles-only in trying to first convert the subsections into a bulleted list. But before I fix that now, I would need clarifications about your other comments:
I slightly prefer the original style (without a list)
Did you mean in this particular case or in general for the "See also" sections elsewhere?
I would rather change the title to "Further reading" if "See also" implies some kind of structure.
Is this specific to content in this section or in general?
Are you saying that you'd like to keep the See also section in the writing style guide as is but rename the heading to "Further reading"?
The "See also" section in the style guide should be able to exemplify the guidelines recommended in the style guide. So it would be nice to make it a bulleted list of links and retain the title.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, my comment specifically refers to this page's See also—I agree with the guideline. I think the previous prose-like content is easy to read and also contains useful information, so making it a bulleted list seems like a net loss, apart from exemplification purposes.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, I see your point. I've updated the section title in this case to "Further reading".
Retaining the existing descriptive info for links and not getting rid of all of it is, in general, good advice. So now there is a guideline on how to retain that info, wherever it may already exist. Please see comment below.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Approving = expression of my agreement on the new rules (But we want to wait for other reviewers' expression of approval before merging)
Thank you, @teoli2003! |
|
||
Most of the guides, reference pages, and even glossary pages on MDN Web Docs contain a _See also_ section at the end of the article. This is a reference section containing cross-references to related topics within MDN and sometimes links to related external articles. For example, this is the [See also section](/en-US/docs/Web/CSS/@layer#see_also) for the `@layer` page. | ||
|
||
In general, present the links in a See also section in a [bulleted list](#lists) format with each item in the list as a phrase. In the [Learn web development](/en-US/docs/Learn) area on MDN, however, the See also section follows the [definition list](/en-US/docs/MDN/Writing_guidelines/Howto/Markdown_in_MDN#definition_lists) format. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm going to be the minority, but I prefer "succinct where possible". Consider @layer
linked here - as a reader and a writer, import
tells me enough, while to me the fact that !important
is a flag seems a little unnecessary. I mean if I know what it is then I know its a flag, and if I don't then having that information won't change my desire to click or not click it.
Phrases where they tell you something useful are excellent, but fewer words is better.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
PS, and this does not match the guide. The see also section here says use bulleted list, but bulleted list says that we use bulleted list with phrase and punctuation. Here we have no punctuation.
Upshot, we should fix the example of "how to do it right" so that it does it right :-)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the feedback, Hamish.
-
I've actually incorporated this now (I agree). I've removed the guideline about adding a descriptor for the keyword. :)
-
I've added an updated version of this
@layer
example to clarify what it would look like (though I've yet to update all other examples demo'ed in the discussion.). It is also the example we're linking to in the style guide in the "See also" guideline section. -
Also, I've updated the "bulleted list" guideline in the style guide. Only complete sentences end in period. If the list item is a phrase, it will not end in a period, which is what the above
@layer
"See also" is following (6af59ab)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@dipikabh I like what you've done in #25191 (comment)
I'm a little concerned with the use of the term "phrase" -it has many definitions, and a phrase can be a sentence.
Consider using the terms "single word", "incomplete sentence" and/or "topic title" or similar (i.e. a topic title might be a complete sentence, but normally we won't want to put a full stop after it - though it does not harm.
FWIW My preference (when I control the rules an open source doc set):
- If it is a sentence, capitalize the first letter
- No full stops by default - for either a sentence or a partial sentence.
- Try avoid multiple sentences in bullet points. But if there are multiple sentences, these should be fully punctuated, including the final sentence.
This ensures that in the majority of cases there are no full stops, which is more consistent, and looks better in cases when you have lists with mixed sentences and partial sentences. The purist in me says use full punctuation everywhere, but this does not look as good, and is annoying to enforce when no one does so any more. Just my two bits.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A phrase is never a complete sentence. Nevertheless, I've added a clarification for the term in "Bulleted lists" in the "Lists" section.
I agree with point 3. Some of this is already documented in "Bulleted lists". I've additionally added the following (borrowed from microsoft's guideline):
If one or more list items are complete sentences, use a period after every list item, even if a list item contains three or fewer words.
Point 2 - A sentence would always need to end in a period. The above rule will help if there is a mix of complete and incomplete sentences. And we're also emphasizing to follow the same sentence structure across all list items.
Updates are in b178e10. Let me know what you think @hamishwillee.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks @dipikabh - I've noted the only "annoyance" here b178e10#r104453682
But looks fine to me! Thanks.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for sharing, @hamishwillee. I hope the response answers your concern.
I'll be opening another PR to address some of the examples I had brought up in the original discussion. We can tweak/clarify the guidelines further, if needed, as we go along.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Despite my comment https://github.com/mdn/content/pull/25191/files#r1133465543 , this is a heap better and more consistent. Approving.
After feedback from @Josh-Cena and @hamishwillee (I agree with both the comments), here's a slight tweak to the original proposal:
|
files/en-us/mdn/writing_guidelines/writing_style_guide/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/writing_guidelines/writing_style_guide/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/writing_guidelines/writing_style_guide/index.md
Outdated
Show resolved
Hide resolved
files/en-us/mdn/writing_guidelines/writing_style_guide/index.md
Outdated
Show resolved
Hide resolved
This pull request has merge conflicts that must be resolved before it can be merged. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, @dipikabh - no other comments for me after you resolved the outdated ones. Thanks for the lift! 🎉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The text looks alright to me, but its implications as manifested in the examples (#25380 (comment)) worry me. So I'd like to discuss over the examples and get them merged before approving this one. In particular, any non-structured description text is going to make the list much harder to maintain and keep consistent across related pages.
Thank you all for your feedback and the brainstorming to iron out the guidelines for "See also". The main points in the style guide can be viewed here: See also guidelines. @hamishwillee rightly pointed out what we say in the bulleted lists section should be in sync with the lists in "See also" and that's been clarified as well, hopefully. It would be good to land this soon so we can start using the guidelines 🙂. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Thanks for the work!
|
||
- Keep the descriptive text surrounding the link minimal. In case of a description, add it after the link text and a colon. Word the description as a phrase with no ending punctuation. Keep all linked text at the beginning to aid in scanning the list of links. | ||
- **Correct**: {{cssxref(":checked")}}, {{cssxref(":indeterminate")}}: CSS selectors for styling checkboxes | ||
- If the links can be grouped by a theme, add a lead-in sentence to describe the list of links. End the lead-in sentence with a colon. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there an example for this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needed to be removed because of the updated guideline just before it. (1e8d353)
Thanks for the approvals and support, everyone. Merging this now. As always, if there are still any points we want to clarify further or feel the need to add to guidelines, especially after we start complying with the guidelines (there might be more varied instances in the existing "See also" sections), we can do so in subsequent follow-up PRs. |
@dipikabh I was trying to apply the guideline on external see also links. I have several questions:
It may help to give a few more examples on external links. For example, here are a few I attempted:
|
These are all good questions, for which I believe we have no rules yet. FWIW I would normally do a list like the one above as follows:
Why?
All that said, I do not feel strongly about this. It just appeals to my minimalist tendencies. |
Motivation
This discussion describes the existing inconsistencies across the See also sections and the proposed set of guidelines to follow from here on.
Details of changes
Updated the "See also" section to refer to the guidelines in the writing style guide.
TO DO