-
Current state of the See also sectionThe "See also" section across our reference and guide pages are not all that consistent.
After looking around at other technical docs and style guides, I have proposed some guidelines here for the "See also" section on MDN. After there is a consensus, I can add these guidelines to the writing style guide as well as add examples to the template pages. The See also section in the Writing style guide itself uses subsections to list references. This section would need also to be fixed to comply with the guidelines we settle on here. We can start following these guidelines in the newer pages we write and fix existing pages only as and when we get the chance while making other updates. Proposal for the guidelines on MDNUPDATE (23 MAR): PLEASE CHECK THE PULL REQUEST FOR THE LATEST VERSION. These guidelines have changed slightly after further conversations in the pull request. Here’s a proposal for the guidelines for the “See also” sections on MDN. I have included examples later to illustrate these guidelines. All the Learn entry points for CSS, HTML, JavaScript, and so on follow a definition list format in the “See also” section (one example shown below). We can keep using this format but only for the Learn area. Link text
Descriptive text
Order of links
|
Beta Was this translation helpful? Give feedback.
Replies: 7 comments 6 replies
-
UPDATE (23 MAR): PLEASE CHECK THE PULL REQUESTS FOR THE LATEST VERSIONS OF THE GUIDELINES AND EXAMPLES.
Note for all lists here as per new guidelines: Unable to show here but the external link arrow icon will be rendered on MDN for all external links. Also, ignore the break in link appearing after the code-formatted text - this is markdown on GitHub. Example 1WAI-ARIA basics - Learn web development As per new guidelines, this would be:
Here’s an explanation for each of the list items:
Example 2<input type="checkbox"> - HTML As per new guidelines, this would be:
Example 3As per new guidelines, this would be:
Example 4As per new guidelines, this would be:
Example 5As per new guidelines, this would be:
Example 6As per new guidelines, this would be:
Example 7The Learn entry points for CSS, HTML, JavaScript (screenshot below), MathML, Web performance, and Server-side website programming follow a definition list format in the “See also” section (one example shown below). We can keep using this format but only for the Learn area. The ‘See also’ in the following Learn area landing pages is a bulleted list and we might want to change them to a definition list format: Accessibility, Getting started with the web, Web forms |
Beta Was this translation helpful? Give feedback.
-
A concern was raised about the use of “See” in “See also” because the word is unfair to the visually challenged. Here’s what I found:
It is okay to retain the section title “See also” on MDN because it is commonly used in other reference docs and widely accepted. |
Beta Was this translation helpful? Give feedback.
-
Great work! With Example #5, I think a paragraph full of links is difficult to read and challenging to click on. I would argue for sub-lists when a bullet list has more than 3 to 5 links, or some similar rule. With external links, I would like to see the year of publication follow the link. This way our readers and writers get a sense of the relevance of the associated content. I do think we should list the type of content a link is. We have property, keyword, function, which is great. yes. keep. But we also need something similar for guides, learn, landing page. Not those words per see, but as most links within a see also are on the same or very similar topic, they're going to have similar titles. being able to determine which is the most appropriate link for your needs is good user experience. |
Beta Was this translation helpful? Give feedback.
-
Nit: in example 6, the first bullet would be " I do have one problem, though: by adding extra text, link formatting becomes infinitely harder. I can no longer create ad-hoc links by using xref macros. I wonder how useful it is compare to present and future authoring efforts. |
Beta Was this translation helpful? Give feedback.
-
I also agree that this is great work. Nevertheless, we should modify this rule:
I agree that we should use the feature type as an epithet of the property, function, or expression, but the link should only span the noun used as an epithet. E.g., instead of: We will have:
(Remember that, unlike in GitHub, links on MDN are underlined – and that's good. But this makes a long link more difficult to read) Reasons:
Side note: even if we keep this rule, we need to rephrase it as these are not adjectives; they are nouns, as are the feature names before them. The feature names are nouns used as adjectives modifying the noun (not the opposite, as the proposed rule states incorrectly). |
Beta Was this translation helpful? Give feedback.
-
Pull request to implement the changes as discussed: mdn/content#25191 |
Beta Was this translation helpful? Give feedback.
-
Please check the pull requests for the latest versions of the guidelines and examples. |
Beta Was this translation helpful? Give feedback.
Please check the pull requests for the latest versions of the guidelines and examples.