FlightGear wiki:Village pump: Difference between revisions

Jump to navigation Jump to search
→‎Set up a robot to fix all the broken "prettytable" table classes?: The new "keytable" class for keyboard shortcuts.
(→‎UTF-8 language pages cannot be edited: Non-latin characters in the URL causing the FG wiki breakage.)
(→‎Set up a robot to fix all the broken "prettytable" table classes?: The new "keytable" class for keyboard shortcuts.)
Line 734: Line 734:


: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 11:05, 13 June 2016 (EDT)
: [[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 11:05, 13 June 2016 (EDT)
=== A new "keytable" class ===
For an improved table formatting which sits well with the {{tl|key press}} template, I have defined the new "keytable" class in [[Mediawiki:common.css]].  This is for the elegant formatting of keyboard shortcut tables.  It uses high quality typesetting rules:  There is no background colour; uses generous margins and padding; only horizontal dividers at the top and bottom and between the header and main content; somewhat indented from the main text.  Here is an example (which will change as the "keytable" styles are refined):
{| class="keytable"
! Key
! Function
|-
| {{key press|d}}
| Open/close crew door
|-
| {{key press|D}}
| Open/close passenger door
|}
[[User:Bugman|Bugman]] ([[User talk:Bugman|talk]]) 07:49, 21 July 2016 (EDT)


== URL change notifications ==
== URL change notifications ==

Navigation menu