wiki
News_styling_criteria查看官网原文 ↗
这篇还没汉化,先拿英文原文顶着。(有想看的页面?催更就完事了。)

News styling criteria

Note: For wiki articles, see Article styling criteria

News posts, or news articles, exist on a slightly different system to the main osu! wiki, but follow similar principles. Writing them involves careful attention to a few key features and formats as outlined below.

Like wiki articles, all news posts should aim to have proper spelling and grammar at a bare minimum, as well as having correct and up-to-date information.

Anyone interested in contributing to or writing news posts, reach out in the #osu-news channel of the osu! Discord server. Alternatively contact Hivie, RandomeLoL, Walavouchey, or any active wiki or news maintainer.

For tournaments and contests, advertising registrations in dedicated news posts requires approval from the Tournament Committee and Contest Committee beforehand, respectively. See the Official tournament support and Official beatmapping contest support pages for rules and information on this.

Locales

The news system does not support locales. All articles must be in English (preferably British English), with a consistent register.

What this register entails depends on the focus and tone of the article, but it must be consistent. Articles that sound professional must always sound professional. Articles that are conversational must always be conversational.

Writing standards

All news posts must be written with a few key concepts in mind: conciseness, audience, and presentation.

Conciseness

News posts should be short and sweet, with appropriate information condensed as much as possible without being overly dense.

Provide links to in-depth resources instead of referencing them directly in text. Use visual displays wherever possible to convey large amounts of information at a glance.

Audience

osu!'s chief audience is mainly teenagers and young adults, though we are an all-ages community. Consider the attention span of said demographic — conciseness ties in very closely to this.

Consider well what you write within your article and whether it would interest the community at large enough to warrant including it.

Presentation

News posts must aim to be as pleasingly neutral as possible in terms of presentation.

Pleasingly neutral, however vague, refers to an article that is both light and robust, saying what it needs to say without giant blocks of text. It must be consistent in formatting, style and register. Large quantities of information should be supported or supplanted with visual aids.

Formatting

File names

News posts are markdown files (.md) placed in the news/ directory of the osu-wiki GitHub repository, under the following format:

news/yyyy/yyyy-mm-dd-news-post-title.md

The file name must contain the whole title, with all spaces replaced with hyphens (-) and all additional characters (such as punctuation marks) removed with no replacement.

Structure

All news article files need to be structured in the following manner:

---
layout: post
title: News Post Title
date: 2017-08-17 03:00:00 +0000
series: miscellaneous
---

Short preview paragraph

![](/wiki/shared/news/2017-08-17-news-post-title/banner.jpg)

Content

—Author

News post notification category listing on the website's account settings page

Markdown

Markdown usage is covered by the article styling criteria, but the following points concern news articles specifically:

Images

Note: For image format and quality standards, see Article styling criteria § Formats and quality

Images linked in news articles must either be hosted on osu! servers (i.e. assets.ppy.sh) or be placed in the osu-wiki GitHub repository.

News articles that use images have their own folder within the wiki/shared/news/ directory, with the same name as the news post file name. Example: wiki/shared/news/2017-08-17-news-post-title/banner.jpg.

Banners

News posts must have an image after the preview paragraph for use as a banner (also called cover). The first image in an article will be used as its banner on the front page, news listing, and news article view.

These banners appear in many different aspect ratios in different places of the website and on different devices, and should therefore be designed with any cropping due to this in mind.

News post banner aspect ratio reference

Use this banner visualisation tool to check how the banner will appear in different parts of the website.

Banners should have a minimum 1000x200 px base size. A version with each dimension doubled should be provided if the source image is large enough to support it (resulting in banner.jpg and banner@2x.jpg). Banner images appearing in multiple news articles should be put in the wiki/shared/news/banners/ directory.

Design

The following applies to all media in news posts and includes common reasons for requested changes or inquiries by the news team:

Text size reference

Some community members spare no effort in creating quality graphics or even animated videos for inclusion in news posts. However, please contact the news team early regarding designs and assets if possible, as any required changes may cause unexpected delays or omission from the news post.

HTML and embedded content

Limited use of HTML is allowed for the purposes of embedding off-site content such as YouTube videos, Twitch VODs, or other applets designed to showcase osu! or osu!-related content.

The width of all embedded content frames must be set to 95% with the exception of tall aspect ratios. To be included in articles in general, embedded content must support display at full-width styling without breaking or looking awful.

Video embed hosted on assets.ppy.sh

<div align="center" class="osu-md__paragraph">
    <video width="95%" controls>
        <source src="https://assets.ppy.sh/artists/172/release_showcase.mp4" type="video/mp4" preload="none">
    </video>
</div>

Example of video embed via assets.ppy.sh

Video embed hosted on YouTube

<div align="center" class="osu-md__paragraph">
    <iframe width="95%" style="aspect-ratio: 16 / 9;" src="https://www.youtube.com/embed/cXkiX7u4a9g" frameborder="0" allowfullscreen></iframe>
</div>

Example of video embed via YouTube

Video embed hosted on Twitch

<div align="center" class="osu-md__paragraph">
    <iframe width="95%" style="aspect-ratio: 16 / 9;" src="https://player.twitch.tv/?autoplay=false&parent=osu.ppy.sh&video=2321612622" allowfullscreen="true" scrolling="no"></iframe>
</div>

Example of video embed via Twitch

Audio preview

<audio controls>
    <source src="https://assets.ppy.sh/artists/493/0401%2B/d0tc0mmie%20-%20Strobe%20Light%20feat.%20Kasane%20Teto.mp3">
</audio>

Example of audio preview embed

PDF files

Note that the PDF file must less than ~20 MB in order to embed via https://docs.google.com/gview.

<div align="center">
    <iframe width="95%" style="aspect-ratio: 1.414;" src="https://docs.google.com/gview?url=https://assets.ppy.sh/media/yuzu/yuzu-embed.pdf&embedded=true" frameborder="0" allowfullscreen></iframe>
</div>

Example of PDF embed

Chat-style quotes

For interviews or quotes with user avatars, include the following styling at the beginning of the relevant section in the news post:

<style>
    .news-chat-quote__avatar {
        float: left;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        margin-left: -50px;
    }

    .news-chat-quote__text-container {
        margin-left: 50px;
    }

    .news-chat-quote__username {
        font-weight: 600;
        margin-bottom: 2px;
    }

    .news-chat-quote__colour-no-group {
        color: #FFFFFF;
    }
</style>

Here, the news-chat-quote__colour-{group} CSS styling corresponds to a user group colour:

Group Colour
gmt #99EB47
nat #FA3703
dev #E45678
alm #999999
spt #EBD047
bn #A347EB
lvd #FFD1DC
ppy #0066FF
fa #00FFFF
bsc #76AEBC
tc #FFB969
no-group #FFFFFF

Then, wrap sections of indented content within a <div> and prepend an avatar and username before each part that should display them, as shown below:

<div class="news-chat-quote__text-container">

<a class="avatar news-chat-quote__avatar" href="https://osu.ppy.sh/users/10365024" style="background-image: url('/wiki/shared/avatars/Sakura006.jpg')"></a>

<p class="news-chat-quote__username"><a class="news-chat-quote__colour-no-group" href="https://osu.ppy.sh/users/10365024">Sakura006</a></p>

Indented markdown content

</div>

Example of chat-style quote