Module:Road data/strings/doc: Difference between revisions

Content deleted Content added
Mostly finished
Style
Line 141:
abbr = "SH %route%",
width = 40}
</source>
 
==Style==
There are a few style guidelines that should be followed:
# Align table fields using spaces. All tables should be aligned so that fields line up with each other, as shown in the above examples.
# Do not end tables on separate lines.
# Each table field should be on its own line.
# Add spaces to either side of an assignment operator (equals sign).
# Leave a blank line between types. Type aliases should be set off from their base type by a blank line, but no blank lines should be placed between the aliases themselves.
# Start each module with the comment stating the name of the country or state, followed by the root table declaration, as follows (from [[Module:Road data/strings/USA/AS]]):
<source lang="lua">
-- American Samoa
local AS = {}
</source>