-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
125 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,125 @@ | ||
[[Translation:en/Wiki/Manual of Style]] | ||
|
||
[[File:en/Wiki/StyleGuide.png|left|64px]] | ||
{{en/TOCright}} | ||
|
||
|
||
==一般规则== | ||
*保存前请预览(Preview)页面。 | ||
*尽可能与已有页面风格保持一致。 | ||
*若要测试代码或更大的变动,请使用[https://wiki.staging.openttd.org sandbox wiki]。这可以使维基页面免受不成熟想法的摧残。 | ||
|
||
==Folders== | ||
All wiki pages are sorted into folders. | ||
Images, templates and categories which are only referenced by pages in a certain folder, go into the same folder. | ||
{| | ||
|- | ||
| [[:Folder:Page/en/Manual/|Manual]] || Game manual, information for players. | ||
|- | ||
| [[:Folder:Page/en/Manual/Game Mechanics/| Manual/Game Mechanics]] || Detail pages for min/maxing with spoilers. | ||
|- | ||
| [[:Folder:Page/en/Manual/Tutorial/| Manual/Tutorial]] || Tutorial, first contact with the game. | ||
|- | ||
| [[:Folder:Page/en/Community/| Community]] || Community content that does not fit anywhere. Please prefer using your personal GitHub pages/repositories/wikis for personal content. | ||
|- | ||
| [[:Folder:Page/en/Development/| Development]] || Developing OpenTTD and content for OpenTTD. | ||
|- | ||
| [[:Folder:Page/en/Development/Script/| Development/Script]] || Information for developing AIs and GameScripts. | ||
|- | ||
| [[:Folder:Page/en/Development/NewGRF/| Development/NewGRF]] || Information for developing NewGRFs. | ||
|- | ||
| [[:Folder:Page/en/Development/Design Drafts/| Development/Design Drafts]] || Draft documents for changes with larger scope. Please prefer using your personal GitHub pages/repositories/wikis for personal projects. | ||
|- | ||
| [[:Folder:Page/en/Basesets/| Basesets]] || Pages for base sets like OpenGFX, OpenMSX and OpenSFX | ||
|- | ||
| [[:Folder:Page/en/Wiki/| Wiki]] || Pages about the wiki itself. | ||
|- | ||
| [[:Folder:Page/en/Archive/| Archive]] || Stuff that is only interesting to ''old people''. | ||
|- | ||
| [[:Folder:Page/en/Archive/OpenTTD/| Archive/OpenTTD]] || History of OpenTTD, TTDPatch, and friends. | ||
|- | ||
| [[:Folder:Page/en/Archive/Manual/Settings/| Archive/Manual/Settings]] || Old stub pages. Please improve the in-game tooltips and hints, instead of writing wiki pages about settings. | ||
|} | ||
|
||
==Articles== | ||
|
||
===Titles=== | ||
When creating an article, imagine what will be searched for.<br> | ||
e.g. A player wanting to know about [[en/Manual/Industries]] will most likely search for "industries", not industry. | ||
|
||
When in doubt (which shouldn't be often), use singular. | ||
|
||
===Images=== | ||
Use whatever format works best. PNG files are the best choice for most OpenTTD graphics. This is typical: | ||
{| | ||
!Code!!Result | ||
|- | ||
|<pre>[[File:en/Archive/Manual/Settings/Longerbridges.png|frame|Image caption]]</pre> | ||
|[[File:en/Archive/Manual/Settings/Longerbridges.png|frame|Image caption]] | ||
|} | ||
|
||
===Annotated screenshots=== | ||
[[File:en/Archive/Manual/WhyPresignals.png|frame|right|Format for labelling screenshots]] | ||
If you are posting screenshots to explain game concepts or junctions you should keep the amount of explanatory text in the actual image to a minimum and instead make reference to labelled parts in the main text. The labelled parts should be done in a contrasting colour (for temperate climate, white is good) using an anti-aliased sans-serif font in bold on a transparent background. Arrows can be used if needed but it is better to position the label near the item to be explained. The image on the right is an example of this format (but remember the labels don't necessarily have to be letters or numbers as long as they don't clutter the screenshot and leave the job of explaining what's going on to the main text). | ||
===Screenshots of windows=== | ||
If you need to include a screenshot of a game window, try to make sure you crop it to exactly the edges of the window for a more professional appearance. OpenTTD windows are perfect rectangles so this should be easy enough - zoom in if necessary. | ||
|
||
===Walkthroughs=== | ||
Use ordered or unordered lists to separate steps: | ||
{| | ||
!Code!!Result | ||
|- | ||
|<pre> | ||
#step 1 | ||
#step 2 | ||
#* step 2 note | ||
#* step 2 note</pre> | ||
| | ||
#step 1 | ||
#step 2 | ||
#* step 2 note | ||
#* step 2 note | ||
|} | ||
|
||
===Game version=== | ||
Concentrate on writing manual pages for the latest release version, not the [[en/Archive/Community/Nightly build]] or patch packs. If you really must include a non-release feature, mark the section with the {{en/S|en/Nightly}} or similar template. | ||
|
||
===British vs American English === | ||
The original TTD was British, so: | ||
*British English is the official English of this wiki. | ||
*The pound (£) is the official currency. You may place dollars ($) in parentheses after Pound quantities. | ||
*Metric units are official. You may place imperial units in parentheses after metric units. | ||
===In-Game Buttons, Menu Items etc=== | ||
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''. | ||
|
||
===Use of "meta" words=== | ||
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. | ||
|
||
==Templates== | ||
===Templates format=== | ||
Use the same format as {{en/S|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. | ||
|
||
===Common templates=== | ||
See [[en/Wiki/Templates|here]] for a list of commonly used templates. | ||
|
||
==See also== | ||
*[https://meta.wikimedia.org/wiki/Help:Editing Text Editing syntax in MediaWiki] | ||
*[https://www.wikipedia.org/wiki/Wikipedia:Extended_image_syntax Extended image syntax] | ||
*[https://www.wikipedia.org/wiki/Wikipedia:Picture_tutorial Picture tutorial] | ||
*[https://meta.wikimedia.org/wiki/Help:Table Editing Tables in MediaWiki] | ||
*[https://www.wikipedia.org/wiki/Help:Table Table (Wikipedia help)] | ||
*[https://www.wikipedia.org/wiki/Help:Template Template (Wikipedia help)] | ||
*[https://www.wikipedia.org/wiki/Help:Category Category (Wikipedia help)] | ||
*[https://www.mediawiki.org/wiki/Help:Magic_words Magic words in MediaWiki] | ||
*[https://www.mediawiki.org/wiki/Help:Extension:ParserFunctions ParserFunctions in MediaWiki] | ||