Template:Unbulleted indent list/doc: Difference between revisions
m Fix redlinks Tag: 2017 source edit |
m More tweaks to wikicode example styling Tag: 2017 source edit |
||
(One intermediate revision by the same user not shown) | |||
Line 7: | Line 7: | ||
== Usage == | == Usage == | ||
{{Infobox | {{Infobox | ||
| title = <big>'''Example'''</big> | |||
| title = Example | |||
| label1 = First label | | label1 = First label | ||
| data1 = Some data | | data1 = Some data | ||
| label2 = Awards | | label2 = Awards | ||
| data2 = {{Unbulleted indent list|[[wikipedia:Royal Geographical Society's Founder's Medal|Royal Geographical Society's Founder's Medal]] (1888)|[[wikipedia:Knight Commander of the Order of the Bath|Knight Commander of the Order of the Bath]] (1896)|[[wikipedia:Chevalier dans l'Ordre de la Légion d'Honneur|Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)}} | | data2 = {{Unbulleted indent list|[[wikipedia:Royal Geographical Society's Founder's Medal|Royal Geographical Society's Founder's Medal]] (1888)|[[wikipedia:Knight Commander of the Order of the Bath|Knight Commander of the Order of the Bath]] (1896)|[[wikipedia:Chevalier dans l'Ordre de la Légion d'Honneur|Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)}} | ||
| label3 = Second label | | label3 = {{Nowrap|Second label}} | ||
| data3 = Some more data | | data3 = Some more data | ||
}} | }} | ||
<pre style="border: 3px ridge #ccc; | <pre style="border: 3px ridge #ccc; min-width: 25vw; overflow: auto; padding: 1em 6em 1em 1em; width: fit-content;"><nowiki> | ||
{{Infobox | {{Infobox | ||
| label1 = Some data | | label1 = Some data | ||
| awards = {{Unbulleted indent list | | awards = {{Unbulleted indent list | ||
Line 32: | Line 30: | ||
==== Custom indentation ==== | ==== Custom indentation ==== | ||
{{Infobox | {{Infobox | ||
| title = <big>'''Example'''</big> | |||
| title = Example | |||
| label1 = First label | | label1 = First label | ||
| data1 = Some data | | data1 = Some data | ||
| label2 = Awards | | label2 = Awards | ||
| data2 = {{Unbulleted indent list|[[wikipedia:Royal Geographical Society's Founder's Medal|Royal Geographical Society's Founder's Medal]] (1888)|[[wikipedia:Knight Commander of the Order of the Bath|Knight Commander of the Order of the Bath]] (1896)|[[wikipedia:Chevalier dans l'Ordre de la Légion d'Honneur|Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)}} | | data2 = {{Unbulleted indent list|indent=2em|[[wikipedia:Royal Geographical Society's Founder's Medal|Royal Geographical Society's Founder's Medal]] (1888)|[[wikipedia:Knight Commander of the Order of the Bath|Knight Commander of the Order of the Bath]] (1896)|[[wikipedia:Chevalier dans l'Ordre de la Légion d'Honneur|Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)}} | ||
| label3 = Second label | | label3 = {{Nowrap|Second label}} | ||
| data3 = Some more data | | data3 = Some more data | ||
}} | }} | ||
< | <div style="background-color: #f8f9fa; border: 3px ridge #ccc; color: #000; font-family: Menlo, Consolas, Monaco, 'Noto Mono', 'Nimbus Mono L', monospace; font-size: 1em; min-width: 25vw; padding: 1em 6em 1em 1em; overflow: auto; white-space: pre; width: fit-content;">{{Infobox<br /> | label1 = Some data<br /> | awards = {{Unbulleted indent list|<span style="background-color: lightgreen; border: 2px dashed red; padding: 1px 4px;">indent=2em</span><br />    | [[Royal Geographical Society's Founder's Medal]] (1888)<br />    | [[Knight Commander of the Order of the Bath]] (1896)<br />    | [[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)<br />   }}<br /> | label2 = Some more data<br/>}}</div> | ||
</ | |||
=== TemplateData === | === TemplateData === |
Latest revision as of 14:07, 27 September 2024
This is a documentation subpage for Template:Unbulleted indent list. It may contain usage information, categories and other content that is not part of the original template page. |
This template uses Lua: |
The {{Unbulleted indent list}}
template is very similar to {{Unbulleted list}}
, except that it automatically indents the wrapped parts of long items which appear beneath an entry. This makes it easier to distinguish multiple such items when width is limited—such as in {{Infobox}}
—and makes more efficient use of horizontal space by eliminating the need for bullet markers to indicate the start of each entry.
This template provides a WCAG-compliant and accessible alternative to <br />
-separated lists.
Usage
First label | Some data |
---|---|
Awards | |
Second label | Some more data |
{{Infobox | label1 = Some data | awards = {{Unbulleted indent list | [[Royal Geographical Society's Founder's Medal]] (1888) | [[Knight Commander of the Order of the Bath]] (1896) | [[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899) }} | label2 = Some more data }}
Custom indentation
First label | Some data |
---|---|
Awards | |
Second label | Some more data |
| label1 = Some data
| awards = {{Unbulleted indent list|indent=2em
| [[Royal Geographical Society's Founder's Medal]] (1888)
| [[Knight Commander of the Order of the Bath]] (1896)
| [[Chevalier dans l'Ordre de la Légion d'Honneur]] (1899)
}}
| label2 = Some more data
}}
TemplateData
TemplateData for Unbulleted indent list
Show an unbulleted list the any wrapped lines of entries indented
Parameter | Description | Type | Status | |
---|---|---|---|---|
Content | 1 | Every line should start with a pipe character. | Content | required |
Indentation | in indent | Custom indentation width for wrapped lines of list entries; must have valid CSS length unit appended
| Line | optional |
List style | list_style | CSS declarations for the <ul> XHTML tag
| Line | optional |
See also
- {{Unbulleted list}}