Ryebot (Diskussion | Beiträge) K ({{doc}} → {{dokumentation}}) |
K (sync :: en revid:891675::) |
||
Zeile 1: | Zeile 1: | ||
<includeonly><!-- |
<includeonly><!-- |
||
− | -->< |
+ | --><div class="dotlist {{#switch:{{{bold|{{#dplvar:_dotlist_flag_bold|}}}}}|n|no=nobold}} {{{space|{{#dplvar:_dotlist_flag_space|}}}}} {{#switch:{{{dot|{{#dplvar:_dotlist_flag_dot|}}}}}|n|no=nodot}} {{{class|{{#dplvar:_dotlist_flag_class|}}}}}" style="{{#if:{{{inline|}}}|display:inline-block;}}{{{css|{{#dplvar:_dotlist_flag_css|}}}}};{{{style|}}}"><!-- |
-->{{#if:{{{title|}}}|<span class="title">{{{title|}}}</span>}}<!-- |
-->{{#if:{{{title|}}}|<span class="title">{{{title|}}}</span>}}<!-- |
||
-->{{#if:{{{paren|}}}|(}}<ul><!-- |
-->{{#if:{{{paren|}}}|(}}<ul><!-- |
||
Zeile 7: | Zeile 7: | ||
-->}}<!-- |
-->}}<!-- |
||
--></ul>{{#if:{{{paren|}}}|)}}<!-- |
--></ul>{{#if:{{{paren|}}}|)}}<!-- |
||
− | --></ |
+ | --></div><!-- |
--></includeonly><!-- |
--></includeonly><!-- |
||
− | --><noinclude>{{ |
+ | --><noinclude>{{doc}}</noinclude> |
Version vom 7. April 2020, 15:04 Uhr
Diese Seite ist nicht oder unvollständig übersetzt. | |
Hilf mit, indem du den Text übersetzt und anschließend diesen Hinweis entfernst. Dies entfernt diese Seite auch aus der Liste von Seiten mit unzureichender Übersetzung. |
A helper template to generate dot-seperated list.
You can use {{dotlist/options}}
to change default value for some parameters.
Verwendung
- Unnamed Parameters
Every unnamed parameter will output as an item of list.
- title =
(Optional) An extra title before list.
- bold = n
(Optional) If set, title will display in normal weight (not in bold).
- paren = y/yes
(Optional) The list itself(excluding title) will be in parentheses. See examples below.
- inline = y/yes
(Optional) If set, dotlist will output as a <span> element. By default it's <div>
- space = l/xl/xxl/xxxl/xxxxl
(Optional) You can use them to increase the space between items.
- class =
(Optional) Custom css class(es). You can use class = l/xl/xxl/xxxl/xxxxl
to increase the space between items.
- css or style =
(Optional) Custom css rules. Note: if you set default css with {{dotlist/options}}(by css= or style=), then css= will override default css, but style= will not(appended instead).
For example:
{{dotlist/options|css=color:red; padding:1em;}} {{dotlist|css=margin:1em;}}
, the resulting css is:margin:1em;
.{{dotlist/options|css=color:red; padding:1em;}} {{dotlist|style=text-align:center;}}
, the resulting css is:color:red; padding:1em; text-align:center;
.{{dotlist/options|css=color:red; padding:1em;}} {{dotlist|css=margin:1em;|style=text-align:center;}}
, the resulting css is:margin:1em; text-align:center;
.
Examples
|
before list: after
|
|
before
|
|
before list: after
|
|
before list: after
|
|
before list: after
|
Dotlists can be nested.
|
before list: after
|
parentheses for sub-dotlist, and with no bold title.
|
before list: after
|