Jump to content

Template:Li/II: Difference between revisions

From LithoGraphica
Reversedragon (talk | contribs)
copy template from Template:li/I; try to pass classname to icon
 
Reversedragon (talk | contribs)
m arguments
Line 25: Line 25:


* <code>start</code> - Must be used on the first Item in the list for correct rendering. (Though if it is omitted, browsers may ignore the bug anyway.)
* <code>start</code> - Must be used on the first Item in the list for correct rendering. (Though if it is omitted, browsers may ignore the bug anyway.)
* <code>I</code>  - Icon Template, such as <code>S2/Fy</code>. If this is specified, you might not need <code>dimension</code> or <code>class</code> — check if the icon Template and its corresponding <code>/class</code> Template exist to make that possible.
* <code>II</code>  - Icon Template, such as <code>S2/Fy</code>. It is assumed that you will supply the dimension and main classname in this argument. (This parameter was originally <code>I</code> but is now <code>II</code> on this template to reflect that it is the second version.)
* <code>dimension</code> - Item dimensionality. Optional.
* <code>class</code> - For adding to the CSS classname applied to the tag. Optional.
* <code>class</code> - For customizing the CSS classname applied to the tag. Optional.
* <code>Q</code>  - Item number with commas, for use in ordered lists.
* <code>Q</code>  - Item number with commas, for use in ordered lists.
* <code>Q2</code> - Item number without commas, for use in ordered lists.
* <code>Q2</code> - Item number without commas, for use in ordered lists.
* <code>h4</code> - pProposition title, to be bolded and shown on table of contents. Optional.
* <code>h4</code> - Proposition title, to be bolded and shown on table of contents. Optional.
* <code>lang</code> - Language of text inside list item. If not specified, this list item will probably be assumed to have the same language as the page or section that contains it.
* <code>lang</code> - Language of text inside list item. If not specified, this list item will probably be assumed to have the same language as the page or section that contains it.


[[Category:Templates for markup]]  {{ArticleTitle|NoContents=y}}
[[Category:Templates for markup]]  {{ArticleTitle|NoContents=y}}

Revision as of 22:51, 23 June 2026

Description

This is a template meant to mirror the HTML li tag. The purpose of it is to make prototype pages more readable and intuitive and less easy to make typos. As such, most of the parameters for the tag have to do with Hue Items.

Parameters

  • start - Must be used on the first Item in the list for correct rendering. (Though if it is omitted, browsers may ignore the bug anyway.)
  • II - Icon Template, such as S2/Fy. It is assumed that you will supply the dimension and main classname in this argument. (This parameter was originally I but is now II on this template to reflect that it is the second version.)
  • class - For adding to the CSS classname applied to the tag. Optional.
  • Q - Item number with commas, for use in ordered lists.
  • Q2 - Item number without commas, for use in ordered lists.
  • h4 - Proposition title, to be bolded and shown on table of contents. Optional.
  • lang - Language of text inside list item. If not specified, this list item will probably be assumed to have the same language as the page or section that contains it.