Template:Li: Difference between revisions
Appearance
search hint |
m readable version |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly><onlyinclude>{{#if:{{{start|}}}||</li>}}<li {{#if:{{{I|}}}|{{Template:I{{{I|}}}/class}}}} {{#if:{{{class|}}}|class{{=}}"{{{class|}}}"}} {{#if:{{{Q2|}}}|data-qid{{=}}"{{{Q|}}}" value{{=}}"{{{Q2|}}}"|value{{=}}"{{{Q|}}}"}} {{#if:{{{dimension|}}}|data-dimension{{=}}"{{{dimension|}}}"}}>{{#if:{{{Q2|}}}{{{Q2|}}}|<span class="search-hint" aria-hidden="true" style="height: 0px; width: 0px; display: inline-block; overflow: hidden;">{{#if:{{{Q2|}}}|{{{Q2|}}}|{{{Q|}}}}}</span>}}{{#if:{{{h4|}}}|<h4>{{{h4}}}</h4>}}</includeonly></onlyinclude><!-- | <includeonly><onlyinclude>{{#if:{{{start|}}}||</li>}}<li {{#if:{{{lang|}}}|lang{{=}}"{{{lang|}}}"}} {{#if:{{{I|}}}|{{Template:I{{{I|}}}/class}}}} {{#if:{{{class|}}}|class{{=}}"{{{class|}}}"}} {{#if:{{{Q2|}}}|data-qid{{=}}"{{{Q|}}}" value{{=}}"{{{Q2|}}}"|value{{=}}"{{{Q|}}}"}} {{#if:{{{dimension|}}}|data-dimension{{=}}"{{{dimension|}}}"}}>{{#if:{{{Q2|}}}{{{Q2|}}}|<span class="search-hint" aria-hidden="true" style="height: 0px; width: 0px; display: inline-block; overflow: hidden;">{{#if:{{{Q2|}}}|{{{Q2|}}}|{{{Q|}}}}}</span>}}{{#if:{{{h4|}}}|<h4>{{{h4}}}</h4>}}</includeonly></onlyinclude><!-- | ||
more readable version: | |||
{{#if:{{{start|}}}||</li>}} | |||
<li {{#if:{{{lang|}}}|lang{{=}}"{{{lang|}}}"}} | |||
{{#if:{{{I|}}}|{{Template:I{{{I|}}}/class}}}} {{#if:{{{class|}}}|class{{=}}"{{{class|}}}"}} | |||
{{#if:{{{Q2|}}}|data-qid{{=}}"{{{Q|}}}" value{{=}}"{{{Q2|}}}"|value{{=}}"{{{Q|}}}"}} | |||
{{#if:{{{dimension|}}}|data-dimension{{=}}"{{{dimension|}}}"}}> | |||
{{#if:{{{Q2|}}}{{{Q2|}}} | |||
|<span class="search-hint" aria-hidden="true" style="height: 0px; width: 0px; display: inline-block; overflow: hidden;"> | |||
{{#if:{{{Q2|}}} | {{{Q2|}}} | {{{Q|}}} }} | |||
</span>}} | |||
{{#if:{{{h4|}}}|<h4>{{{h4}}}</h4>}} | |||
-->== Description == | -->== Description == | ||
| Line 13: | Line 25: | ||
* <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> - | * <code>h4</code> - pProposition 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. | |||
[[Category:Templates for markup]] {{ArticleTitle|NoContents=y}} | [[Category:Templates for markup]] {{ArticleTitle|NoContents=y}} | ||
Latest revision as of 21:26, 14 March 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[edit]
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.)I- Icon Template, such asS2/Fy. If this is specified, you might not needdimensionorclass— check if the icon Template and its corresponding/classTemplate exist to make that possible.dimension- Item dimensionality. Optional.class- For customizing 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- pProposition 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.