维基风格指南
/File/en/Translation.png
该文档正从 英语 翻译为 汉语
源文档标题: en/Wiki/Manual of Style
完成度: 1%
  
  • 请帮助改进本文。
  • 参考风格指南编写正确的版本。
  • 在完成翻译后移除该模板。
/File/en/Wiki/StyleGuide.png

Contents

一般规则

文件夹

所有维基页面都会被分入某个文件夹。

只被某文件夹中的页面引用的图像、模板和分类页面会被分入相同的文件夹。

务必在创建文件夹和页面时以中文进行命名!
游戏手册 游戏手册与游戏信息。
Manual/游戏机制 游戏内各数据的范围与计算机制。
Manual/Tutorial 游戏教程。
社区 由游戏社区创造的内容,如AI、NewGRF等。
开发 OpenTTD及相关内容的开发。
开发/脚本 AI和脚本的开发信息。
开发/NewGRF NewGRF的开发信息。
开发/Design Drafts Draft documents for changes with larger scope. Please prefer using your personal GitHub pages/repositories/wikis for personal projects.
Basesets Pages for base sets like OpenGFX, OpenMSX and OpenSFX
Wiki 关于维基自身。
Archive 一些档案资料。
Archive/OpenTTD OpenTTD, TTDPatch和相似游戏的历史。
Archive/Manual/Settings Old stub pages. Please improve the in-game tooltips and hints, instead of writing wiki pages about settings.

文章

页面名

重申:务必在创建文件夹和页面时以中文进行命名!

页面名需要便于读者检索。例如一名读者想要知道关于飞机的知识,他大概率会搜索“飞机”而不是“飞行器”。

如果一个页面被引用,便不能随意对其进行重命名,而需要在Github上提交申请。因此,不能确定页面名时,务必提交问题进行集体讨论。

图像

必须是PNG、GIF或JPEG格式,建议使用PNG格式。 以下是代码的基本语法,其中仅有“图片地址”是必要的:

[[File:图片地址|大小(px)|边框(border/frameless/frame/thumb)|水平位置(left/right/center/none)|链接(link=)|文字说明]]

以下是示例:

代码 效果
[[File:en/Archive/Manual/Settings/Longerbridges.png|frame|标题]]
标题

若要了解更多语法知识,请参考Media Wiki的帮助页面

带注释的屏幕截图

带注释的屏幕截图

如果想要对图片内容进行解释,请将解释文本置于文章段落中,图片中仅留有供主文引用的标记符号。标记符号应位于需要解释的对象附近,使用与背景对比鲜明的颜色,并采用抗锯齿、无衬线的加粗字体。

右图便是一个很好的例子。

关于游戏窗口的屏幕截图

如果要使用屏幕截图,务必进行恰当裁剪,不要将游戏窗口外的内容截进来。

步骤

Use ordered or unordered lists to separate steps:

Code Result
#step 1
#step 2
#* step 2 note
#* step 2 note

  1. step 1
  2. step 2
    • step 2 note
    • step 2 note

游戏版本

Concentrate on writing manual pages for the latest release version, not the Nightly build (en) or patch packs. If you really must include a non-release feature, mark the section with the {{en/Nightly}} or similar template.

语言与单位

The original TTD was British, so:

游戏内的按键、菜单按键等

When quoting an in-game button, menu item, command etc. italics should be used, without quotation marks. For example:

To adjust patch settings click Configure Patches.

元词的使用

Avoid using the word wiki and other words describing the mechanics unless it's absolutely necessary. The name of what you are editing is documentation, manual, tutorial etc. - the wiki is just the medium for delivery, so ideally it shouldn't be mentioned.

A similar thing goes for things like "page", "section" or "link" when linking to other pages - you should use the page's title as the link text. A good way to decide on this sort of thing is to imagine it as a printed document and see if it makes sense - obviously the word "click" doesn't make sense in that context.

We are aiming for media-independent information here that's useful in whatever format it ends up as. Of course meta words can be appropriate if it's an article like this one about how to use the wiki.

模板

模板格式

Use the same format as {{en/Nightly}}. Include instructions for other users!

Pick the colour scheme best suited to the message you want to convey - red for impending doom (e.g. deletion), yellow for warning, green for current tasks, blue for information.

普通模板

See here for a list of commonly used templates.

站外资料