Help page: Edit

Editing Help:List

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.

Latest revision Your text
Line 434: Line 434:
 
In a numbered list in a large font, some browsers do not show more than two digits (2 spaces width) of indentation, unless extra indentation is applied (if there are multiple columns: for each column). This is fixed by increasing the default indentation of 3.2em by 2em more, and it can be done in multiple ways:
 
In a numbered list in a large font, some browsers do not show more than two digits (2 spaces width) of indentation, unless extra indentation is applied (if there are multiple columns: for each column). This is fixed by increasing the default indentation of 3.2em by 2em more, and it can be done in multiple ways:
  
When using explicit HTML {{tag|li|open}} list items, use an explicit CSS margin spacing of 4em to double the default 2em spacing. Though not the simplest, this is {{em|the [[w:Web standards|cleanest]] and most versatile method}}, as it does not rely on any peculiarities of the parser, nor on abusing any [[w:Semantic HTML|semantic markup]] for purely visual purposes. It allows starting with a number other than 1 (''see below''). It is {{strong|the recommended method for complex lists}}.
+
When using explicit HTML {{tag|li|open}} list items, use an explicit CSS margin spacing of 4em to double the default 2em spacing. Though not the simplest, this is {{em|the [[Web standards|cleanest]] and most versatile method}}, as it does not rely on any peculiarities of the parser, nor on abusing any [[Semantic HTML|semantic markup]] for purely visual purposes. It allows starting with a number other than 1 (''see below''). It is {{strong|the recommended method for complex lists}}.
  
 
{{markup
 
{{markup
Line 461: Line 461:
 
}}
 
}}
  
The parser translates an ordered list, {{tag|ol|open}}, without any list items, {{tag|li|open}} (in this case, it contains just another {{tag|ol|open}}) into a {{tag|div|open}} with a <code>style="margin-left: 2em;"</code>, causing indentation of the contents. This is {{strong|a versatile but potentially confusing method}}, as it allows starting with a number other than 1 (''see below''). While the parser corrects it on-the-fly, only MediaWiki experts know this, with the result that other editors are likely to try to "correct" it by removing what looks like redundant {{tag|ol|open}} code.
+
The parser translates an ordered list, {{tag|ol|open}}, without any list items, {{tag|li|open}} (in this case, it contains just another {{tag|ol|open}}) into a {{tag|div|open}} with a <code>style="margin-left: 2em;"</code>, causing indentation of the contents. This is {{strong|a versatile but potentially confusing method}}, as it allows starting with a number other than 1 (''see below''). It is {{em|[[kludge]]y, unnecessarily complex, and looks like invalid HTML}}. While the parser corrects it on-the-fly, only MediaWiki experts know this, with the result that other editors are likely to try to "correct" it by removing what looks like redundant {{tag|ol|open}} code.
 
{{markup
 
{{markup
 
|<syntaxhighlight lang="html"><ol>
 
|<syntaxhighlight lang="html"><ol>
Line 495: Line 495:
 
}}
 
}}
  
A list of one or more lines starting with a colon creates an HTML5 ''description list'' (formerly ''definition list'' in HTML4 and ''association list'' in draft HTML5), without terms to be defined/described/associated, but with the items as descriptions/definitions/associations, hence indented. However, if the colons are in front of the codes "*" or "#" of an unordered or ordered list, the list is treated as one description/definition, so the whole list is indented.  
+
A list of one or more lines starting with a colon creates an HTML5 ''[[description list]]'' (formerly ''definition list'' in HTML4 and ''association list'' in draft HTML5), without terms to be defined/described/associated, but with the items as descriptions/definitions/associations, hence indented. However, if the colons are in front of the codes "*" or "#" of an unordered or ordered list, the list is treated as one description/definition, so the whole list is indented.  
  
{{strongbad|Deprecated method}}: The technique below produces poorly formed (though technically [[w:Validator#HTML validator|DTD-validating]]) markup and abuses the [[w:semantic HTML]] purpose of description lists for a purely visual effect, and is thus a usability and accessibility problem.
+
{{strongbad|Deprecated method}}: The technique below produces poorly formed (though technically [[Validator#HTML validator|DTD-validating]]) markup and abuses the [[semantic HTML]] purpose of description lists for a purely visual effect, and is thus a usability and accessibility problem. It will work in a hurry, but {{em|should be replaced with cleaner code}}; see [[WP:Manual of Style/Glossaries]] for several approaches.  
  
 
{{markup
 
{{markup

Please note that all contributions to BattleTechWiki are considered to be released under the GNU FDL 1.2 (see BattleTechWiki:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel Editing help (opens in new window)

Advanced templates:

Editing: {{Merge}}   {{Moratorium}}   {{Otheruses| | | }}

Notices: {{NoEdit}}   {{Sign}}   {{Unsigned|name}}   {{Welcome}}

Administration: {{Essay}}   {{Policy}}   {{Procedure}}

Templates used on this page:

This page is a member of 2 hidden categories: