Manual of Style: Difference between revisions
m Minor changes to "Videos" section and "Article sections" |
mNo edit summary |
||
(9 intermediate revisions by 5 users not shown) | |||
Line 1: | Line 1: | ||
{{Notice | |||
|icon=✦ | |||
|color=var(--border-color-success) | |||
|background=var(--background-color-success-subtle) | |||
|Editors are generally expected to adhere to this standard, applying common sense and allowing for occasional exceptions. Significant edits to this page should reflect a consensus. If uncertain, please discuss on the talk page first. | |||
}} | |||
<strong>This Manual of Style</strong> (hereinafter referred to as <strong>"MoS"</strong> or <strong>"MOS"</strong>) is designed to ensure that all content on the NixOS Wiki is presented in a clear and consistent manner. It provides guidelines on language usage, article structure, formatting, and other stylistic elements to maintain a high standard of quality across the wiki. This guide is intended for all contributors, whether they are new to editing or have extensive experience, to assist them in creating content that is both informative and accessible. | <strong>This Manual of Style</strong> (hereinafter referred to as <strong>"MoS"</strong> or <strong>"MOS"</strong>) is designed to ensure that all content on the NixOS Wiki is presented in a clear and consistent manner. It provides guidelines on language usage, article structure, formatting, and other stylistic elements to maintain a high standard of quality across the wiki. This guide is intended for all contributors, whether they are new to editing or have extensive experience, to assist them in creating content that is both informative and accessible. | ||
Editors | Technical writing is a skill that gets better with practice. This Manual of Style will help editors do that. It's OK to try to stick to it for the most part at first. A wiki thrives on all users helping each other to create better content. | ||
Editors should compose articles using language that is clear, concise, and readily comprehensible. Articles must be organized with consistent, reader-friendly layouts and formatting, as delineated in this guide. | |||
Any new content incorporated into this page must directly address a persistently recurring style issue. | Any new content incorporated into this page must directly address a persistently recurring style issue. | ||
== Rules of | == Rules of thumb == | ||
* <strong>Use | * <strong>Use common sense:</strong> Always apply logic and reason when contributing to the wiki. | ||
* <strong>Cite | * <strong>Cite reliable sources:</strong> Aim to ensure that all information added is verifiable and comes from reliable sources. | ||
* <strong>Maintain | * <strong>Maintain neutrality:</strong> Strive to present information in a neutral and unbiased manner. | ||
* <strong>Be | * <strong>Be clear and concise:</strong> Use clear, concise, and grammatically correct language to ensure readability and understanding. | ||
* <strong>Follow | * <strong>Follow site guidelines:</strong> Adhere to the site's guidelines and policies at all times. | ||
* <strong>Avoid | * <strong>Avoid edit wars:</strong> Engage in constructive discussions to resolve content disputes rather than engaging in edit wars. | ||
* <strong>Protect | * <strong>Protect privacy:</strong> Do not share personal information about yourself or others without consent. | ||
* <strong>Contribute | * <strong>Contribute constructively:</strong> Aim to improve the quality of the content and the overall user experience. | ||
* <strong>Use | * <strong>Use proper formatting:</strong> Follow the wiki's formatting guidelines to ensure consistency and readability. | ||
* <strong>Stay | * <strong>Stay on topic:</strong> Ensure that contributions are relevant to the subject matter of the page. | ||
* <strong>Report | * <strong>Report issues:</strong> Report any issues or inappropriate behavior to the administrators promptly. | ||
* <strong>Be | * <strong>Be patient and helpful:</strong> Assist new users and be patient with those who are still learning the ropes. | ||
* <strong>Respect | * <strong>Respect others:</strong> Treat all users with respect and courtesy. Personal attacks and harassment are strictly prohibited. | ||
* <strong>No | * <strong>No advertising, vandalism, or spamming:</strong> Contributions should be constructive and relevant. Any form of advertising, vandalism, or spamming will not be tolerated. | ||
* '''Stay on topic:''' This wiki is only about NixOS, Nixpkgs, Nix and the Nix-ecosystem. | |||
== Content | == Content policy == | ||
=== Plagiarizing === | === Plagiarizing === | ||
Line 34: | Line 39: | ||
* <strong>Definition:</strong> Plagiarism includes copying text, images, or other media without crediting the original source. | * <strong>Definition:</strong> Plagiarism includes copying text, images, or other media without crediting the original source. | ||
* <strong>Consequences:</strong> Plagiarized content will be removed immediately. Contributors who repeatedly plagiarize may be banned. | * <strong>Consequences:</strong> Plagiarized content will be removed immediately. Contributors who repeatedly plagiarize may be banned. | ||
* <strong>Prevention:</strong> Always cite your sources. Use quotation marks for direct quotes and provide proper references. | * <strong>Prevention:</strong> Always cite your sources. Use quotation marks for direct quotes and provide proper references. Don't just copy&paste a single sentence, but change it at least a little. | ||
=== Vandalism === | === Vandalism === | ||
Line 40: | Line 45: | ||
Vandalism refers to any act of deliberately adding false or misleading information, deleting content, or otherwise compromising the integrity of the wiki. | Vandalism refers to any act of deliberately adding false or misleading information, deleting content, or otherwise compromising the integrity of the wiki. | ||
* <strong>Types of | * <strong>Types of vandalism:</strong> This includes adding false information, deleting pages, inserting inappropriate content, and spamming links. | ||
* <strong>Response:</strong> Vandalized pages will be promptly reverted to their previous state. Persistent vandals will be blocked from editing. | * <strong>Response:</strong> Vandalized pages will be promptly reverted to their previous state. Persistent vandals will be blocked from editing. | ||
* <strong>Reporting:</strong> Users are encouraged to report vandalism immediately. | * <strong>Reporting:</strong> Users are encouraged to report vandalism immediately. | ||
=== Spam and | === Spam and advertisement === | ||
Spamming and advertising are prohibited to keep the wiki free from clutter and irrelevant content. | Spamming and advertising are prohibited to keep the wiki free from clutter and irrelevant content. | ||
Line 52: | Line 57: | ||
* <strong>Action:</strong> Spammers will have their content removed and may be banned from editing. Legitimate contributions should not include promotional content. | * <strong>Action:</strong> Spammers will have their content removed and may be banned from editing. Legitimate contributions should not include promotional content. | ||
=== Unofficial | === Unofficial wikis === | ||
Hostility towards other wikis is not tolerated. Editors who make hostile comments about other wikis will be warned and may be blocked. | Hostility towards other wikis is not tolerated. Editors who make hostile comments about other wikis will be warned and may be blocked. | ||
* <strong>Linking to | * <strong>Linking to other wikis:</strong> Linking to other wikis is not prohibited if such links contribute to the quality of the content. | ||
* <strong>Contribution | * <strong>Contribution recommendation:</strong> It is recommended that editors only contribute to one wiki at a time to ensure they do not inadvertently violate the copyright policies of the wikis they edit. | ||
== Article titles, headings, and sections == | == Article titles, headings, and sections == | ||
Line 65: | Line 70: | ||
=== Article titles === | === Article titles === | ||
Article titles should be clear and descriptive, providing a succinct summary of the article's content. Avoid using jargon or overly technical terms unless they are widely understood within the context of the wiki. Titles should be formatted in | Article titles should be clear and descriptive, providing a succinct summary of the article's content. Avoid using jargon or overly technical terms unless they are widely understood within the context of the wiki. Titles should be formatted in sentence case with capitalizing only the first letter of the first word. | ||
* <strong>Consistency:</strong> Ensure that article titles are consistent with the titles of related content to maintain a cohesive structure across the wiki. | * <strong>Consistency:</strong> Ensure that article titles are consistent with the titles of related content to maintain a cohesive structure across the wiki. | ||
* <strong>Avoid | * <strong>Avoid redundancy:</strong> Do not include unnecessary words or phrases that do not add value to the title. | ||
=== Section | === Section organization === | ||
Proper section organization is crucial for creating well-structured, easily navigable articles. A logical and consistent structure helps readers find information quickly and understand the content more effectively. | Proper section organization is crucial for creating well-structured, easily navigable articles. A logical and consistent structure helps readers find information quickly and understand the content more effectively. | ||
==== Hierarchy and | ==== Hierarchy and structure ==== | ||
* Use a clear hierarchy of headings to organize content: | * Use a clear hierarchy of headings to organize content: | ||
Line 85: | Line 90: | ||
* Arrange sections in a logical order, typically following this pattern: | * Arrange sections in a logical order, typically following this pattern: | ||
1. Introduction (no heading) | 1. Introduction (the introduction has no heading) | ||
2. Installation | 2. Installation | ||
3. Configuration | 3. Configuration | ||
4. Tips and | 4. Tips and tricks | ||
5. Troubleshooting | 5. Troubleshooting | ||
6. References | 6. See also | ||
7. References | |||
==== Standard | ==== Standard section structure (applications) ==== | ||
For consistency across the wiki, use the following structure where applicable: | For consistency across the wiki, use the following structure where applicable: | ||
Line 100: | Line 106: | ||
== Installation == | == Installation == | ||
==== | ==== Shell ==== | ||
==== | ==== System setup ==== | ||
== Configuration == | == Configuration == | ||
Line 108: | Line 113: | ||
==== Advanced ==== | ==== Advanced ==== | ||
== Tips and | == Tips and tricks == | ||
== Troubleshooting == | == Troubleshooting == | ||
== | |||
== See also == | |||
== References == | == References == | ||
Line 121: | Line 126: | ||
While consistency is important, remember that different topics may require different structures. Use your judgment to adapt the standard structure when necessary, always prioritizing clarity for the reader. | While consistency is important, remember that different topics may require different structures. Use your judgment to adapt the standard structure when necessary, always prioritizing clarity for the reader. | ||
=== Section | === Section headers === | ||
Section headers should be concise and accurately reflect the content of the section. They should provide a clear indication of what the reader can expect to find in that section. | Section headers should be concise and accurately reflect the content of the section. They should provide a clear indication of what the reader can expect to find in that section. | ||
Line 128: | Line 133: | ||
* <strong>Consistency:</strong> Maintain consistency in the formatting and style of section headers throughout the article. | * <strong>Consistency:</strong> Maintain consistency in the formatting and style of section headers throughout the article. | ||
=== Length | === Length restrictions === | ||
Be mindful of length restrictions when crafting titles and section headings. Excessively long names can make navigation difficult and negatively impact readability. | Be mindful of length restrictions when crafting titles and section headings. Excessively long names can make navigation difficult and negatively impact readability. | ||
* <strong>Limit | * <strong>Limit characters:</strong> Section headings should ideally remain under 40 characters. | ||
* <strong>Conciseness:</strong> Strive for brevity without sacrificing clarity. Consider rephrasing complex ideas or breaking them down into multiple sections. | * <strong>Conciseness:</strong> Strive for brevity without sacrificing clarity. Consider rephrasing complex ideas or breaking them down into multiple sections. | ||
Line 143: | Line 148: | ||
* <strong>Articles, blog posts, and short stories:</strong> Use double quotation marks | * <strong>Articles, blog posts, and short stories:</strong> Use double quotation marks | ||
** Example: "Understanding Nix Flakes", "The NixOS | ** Example: "Understanding Nix Flakes", "The NixOS installation guide" | ||
* <strong>Software names, tools, and commands:</strong> Use regular text, typically with initial capitalization | * <strong>Software names, tools, and commands:</strong> Use regular text, typically with initial capitalization | ||
Line 158: | Line 163: | ||
* <strong>Short quotes (less than 40 words):</strong> Use double quotation marks ("") and incorporate into the text. | * <strong>Short quotes (less than 40 words):</strong> Use double quotation marks ("") and incorporate into the text. | ||
** Example: According to the documentation, "NixOS is a Linux distribution built on top of the Nix | ** Example: According to the documentation, "NixOS is a Linux distribution built on top of the Nix Package Manager." | ||
* <strong>Long quotes (40 words or more):</strong> Use block quotes by indenting the entire quote or using the <strong>blockquote</strong> tag. | * <strong>Long quotes (40 words or more):</strong> Use block quotes by indenting the entire quote or using the <strong>blockquote</strong> tag. | ||
Line 175: | Line 180: | ||
Proper capitalization improves readability and maintains a professional appearance: | Proper capitalization improves readability and maintains a professional appearance: | ||
* <strong>Article titles:</strong> Use | * <strong>Article titles:</strong> Use sentence case, capitalizing only the first word. | ||
** Example: Installing NixOS on a | ** Example: Installing NixOS on a virtual machine | ||
* <strong>Section headers:</strong> | * <strong>Section headers:</strong> | ||
** Main sections (==): Use | ** Main sections (==): Use sentence case | ||
** Subsections (===, ====): Use sentence case | ** Subsections (===, ====): Use sentence case | ||
* <strong>Proper nouns:</strong> Always capitalize names of specific people, places, organizations, and NixOS-specific components. | * <strong>Proper nouns:</strong> Always capitalize names of specific people, places, organizations, and NixOS-specific components. | ||
Line 185: | Line 190: | ||
* <strong>Common nouns:</strong> Do not capitalize unless they are part of an official name or at the beginning of a sentence. | * <strong>Common nouns:</strong> Do not capitalize unless they are part of an official name or at the beginning of a sentence. | ||
** Example: " | ** Example: "Every distribution has a package manager." but "Nix Package Manager" | ||
* <strong>Acronyms and initialisms:</strong> Generally use all caps, but follow official styling if different. | * <strong>Acronyms and initialisms:</strong> Generally use all caps, but follow official styling if different. | ||
Line 242: | Line 247: | ||
** Use numerals for 10 and above. | ** Use numerals for 10 and above. | ||
** Use commas for numbers with four or more digits (e.g., 1,000, 10,000). | ** Use commas for numbers with four or more digits (e.g., 1,000, 10,000). | ||
** Use dots as decimal separator (e.g. 1,000.23 ) | |||
** For very large numbers, consider using words (e.g., 1 million instead of 1,000,000). | ** For very large numbers, consider using words (e.g., 1 million instead of 1,000,000). | ||
Line 254: | Line 260: | ||
** Include the time zone when relevant (e.g., 14:30 UTC). | ** Include the time zone when relevant (e.g., 14:30 UTC). | ||
* <strong> | * <strong>Software versions:</strong> | ||
** | ** Software versions are subject to change. Only add software versions when required by the content. | ||
==== Abbreviations ==== | ==== Abbreviations ==== | ||
Line 340: | Line 346: | ||
When using these terms: | When using these terms: | ||
* Be consistent in capitalization (e.g., always "NixOS", never "Nixos" or "NIXOS"). | * Be consistent in capitalization (e.g., always "NixOS", never "Nixos" or "NIXOS"). | ||
* Use the full term on first mention, followed by any abbreviation in parentheses if it will be used later. | * Use the full term on first mention, followed by any abbreviation in parentheses if it will be used later. | ||
Line 353: | Line 358: | ||
* Use double square brackets to create a wikilink: <syntaxhighlight lang="mediawiki">[[Page Name]]</syntaxhighlight> | * Use double square brackets to create a wikilink: <syntaxhighlight lang="mediawiki">[[Page Name]]</syntaxhighlight> | ||
* If the link text should differ from the page name, use a pipe character: <syntaxhighlight lang="mediawiki">[[Page Name|displayed text]]</syntaxhighlight> | * If the link text should differ from the page name, use a pipe character: <syntaxhighlight lang="mediawiki">[[Page Name|displayed text]]</syntaxhighlight> | ||
* For section links, use a hash symbol: <syntaxhighlight lang="mediawiki">[[Page Name#Section Name]]</syntaxhighlight> | * For section links, use a hash symbol. Please note: Section headings are sometimes changed during editing - it may be overlooked to change all the necessary references to them as well. Section links should therefore be used sparingly: <syntaxhighlight lang="mediawiki">[[Page Name#Section Name]]</syntaxhighlight> | ||
==== External linking ==== | ==== External linking ==== | ||
Line 390: | Line 395: | ||
Proper image file naming helps with organization and searchability: | Proper image file naming helps with organization and searchability: | ||
* '''Descriptive names:''' Use clear, descriptive file names (e.g., " | * '''Descriptive names:''' Use clear, descriptive file names (e.g., "nixos-installation-partitioning.png"). | ||
* '''Lowercase:''' Use lowercase letters to avoid case-sensitivity issues. | * '''Lowercase:''' Use lowercase letters to avoid case-sensitivity issues. | ||
* '''Hyphens:''' Use hyphens (-) to separate words, not underscores or spaces. | * '''Hyphens:''' Use hyphens (-) to separate words, not underscores or spaces. | ||
Line 406: | Line 411: | ||
* <strong>Relevance:</strong> Only include videos that directly support the article's content. | * <strong>Relevance:</strong> Only include videos that directly support the article's content. | ||
* <strong> | * <strong>Linking:</strong> Use reputable video hosting platforms (e.g., YouTube, Vimeo) to link videos. | ||
* <strong>Permissions:</strong> Ensure you have the right to use and link the video content. | * <strong>Permissions:</strong> Ensure you have the right to use and link the video content. | ||
* <strong>Captions:</strong> Include a descriptive caption below the video. | * <strong>Captions:</strong> Include a descriptive caption below the video. | ||
Line 461: | Line 466: | ||
| Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3 | | Row 2, Cell 1 || Row 2, Cell 2 || Row 2, Cell 3 | ||
|} | |} | ||
</syntaxhighlight>Writers who use the GUI editor must then add (using the „Edit source“ mode):<syntaxhighlight lang="mediawiki"> | |||
style="text-align: center; width: 500px;" | |||
</syntaxhighlight> | </syntaxhighlight> | ||
Line 481: | Line 488: | ||
Translating wiki content is crucial for making information accessible to a global audience. Proper translation not only conveys information accurately but also respects cultural nuances. | Translating wiki content is crucial for making information accessible to a global audience. Proper translation not only conveys information accurately but also respects cultural nuances. | ||
=== General | === General principles === | ||
* <strong>Accuracy:</strong> Strive for translations that faithfully represent the original content without altering meaning or omitting information. | * <strong>Accuracy:</strong> Strive for translations that faithfully represent the original content without altering meaning or omitting information. | ||
* <strong>Clarity:</strong> Prioritize clear, understandable language over literal translations. | * <strong>Clarity:</strong> Prioritize clear, understandable language over literal translations. | ||
* <strong>Consistency:</strong> Maintain consistent terminology and style across all translated pages. | * <strong>Consistency:</strong> Maintain consistent terminology and style across all translated pages. | ||
* <strong>Cultural | * <strong>Cultural sensitivity:</strong> Be mindful of cultural differences and adapt content appropriately. | ||
=== Translation | === Translation process === | ||
==== Preparation ==== | ==== Preparation ==== | ||
Line 498: | Line 505: | ||
==== Translation ==== | ==== Translation ==== | ||
* <strong>Translate | * <strong>Translate content:</strong> Begin with the main body of the article. | ||
* <strong>Maintain | * <strong>Maintain structure:</strong> Preserve the original article's structure and formatting. | ||
* <strong>Technical | * <strong>Technical terms:</strong> Use glossaries for consistent translation of technical terms. | ||
* <strong>Proper | * <strong>Proper nouns:</strong> Generally, do not translate names of tools, projects, or people. | ||
==== Review and | ==== Review and refinement ==== | ||
* <strong>Self- | * <strong>Self-review:</strong> Proofread your translation for accuracy and fluency. | ||
* <strong>Peer | * <strong>Peer review:</strong> If possible, have a native speaker review the translation. | ||
* <strong>Technical | * <strong>Technical review:</strong> Ensure technical accuracy, especially for code snippets and commands. | ||
=== Language- | === Language-specific guidelines === | ||
* Maintain a separate page for language-specific translation guidelines. | * Maintain a separate page for language-specific translation guidelines. | ||
Line 515: | Line 522: | ||
* Provide guidance on translating or adapting idiomatic expressions. | * Provide guidance on translating or adapting idiomatic expressions. | ||
=== Handling | === Handling untranslatable content === | ||
* <strong>Code | * <strong>Code snippets:</strong> Generally, do not translate code. Provide translated comments if necessary. | ||
* <strong>Commands:</strong> Keep command syntax unchanged, but translate descriptions and explanations. | * <strong>Commands:</strong> Keep command syntax unchanged, but translate descriptions and explanations. | ||
=== Metadata and | === Metadata and navigation === | ||
* <strong>Page | * <strong>Page titles:</strong> Use translated titles, but include the original title in parentheses. | ||
* <strong>Categories:</strong> Create and use translated category names. | * <strong>Categories:</strong> Create and use translated category names. | ||
* <strong>Interlanguage | * <strong>Interlanguage links:</strong> Add appropriate interlanguage links to connect corresponding articles across languages. | ||
=== Quality | === Quality assurance === | ||
* Regularly review and update translations to ensure they remain accurate and up-to-date. | * Regularly review and update translations to ensure they remain accurate and up-to-date. | ||
Line 534: | Line 541: | ||
== Templates == | == Templates == | ||
Templates are pre-formatted pieces of content that can be reused across multiple pages. They help maintain consistency and reduce repetitive work. | Templates are pre-formatted pieces of content that can be reused across multiple pages. They help maintain consistency and reduce repetitive work. For a detailed list of templates, see [[Help:Template]]. | ||
=== Common templates === | === Common templates === |