Style guide
This page gives example code and advice for styling the wiki. If editors stick to these guidelines, the Chinese Grammar Wiki will have a consistent style and appearance, which is beneficial to users.
Contents
Example sentences
The wiki uses either a span or a div, both with CSS class liju, to style example sentences. Usage of these is covered below. In either case, separate words in the sentence with spaces to allow browser plugins and other software to parse them more accurately. The CSS class will not show these spaces, so the sentence will still display correctly.
Individual
Wrap the sentence in a span with class liju, and indent it using a colon (:). Separate words with spaces.
: 我 吃了 馒头。
大标题文字
Lists
Wrap the entire list (or lists, if you want separate sections) in a div with class liju. Separate words with spaces.
- 你 把 作业 做 完 了 吗 ?
- 你 看 完 了 那 部 电影 吗 ?
- 谁 能 把 ‘ 打喷嚏 ’ 的 ‘ 嚏 ’ 写 对 ?
- 我们 刚才 听到 的 音乐 是 哪个 乐队 的 ?
- 你 有 没有 记住 我的 名字?
- 他 是 不 是 我们 昨天 看到 的 人?
Tables
Wrap the whole table in a div with class liju. Separate words with spaces.
Subject | RC compound verb | Aspect particle | Object | |
---|---|---|---|---|
我 | 看到 | 了 | 你 | 。 |
我 | 看见 | 过 | 那 个 有名的 人 | 。 |
我 | 听见 | 过 | 这 个 声音 | 。 |
Rules for spacing words
Separating words with spaces in the example sentences helps software to parse them more accurately. The CSS style ensures that the user sees a nicely displayed sentence that is not broken up by spaces.
- Separate all parts of speech (nouns, verbs, adjectives etc.). 我 喜欢 红色 的 自行车。
- Separate all particles, e.g. 吃 饭 了 吗?
- Separate numbers and measure words, e.g. 一 个 苹果.