mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-11 18:00:26 +00:00
add class parameter to list-links macro
This commit is contained in:
parent
32fcd2e21b
commit
59f04ffd31
@ -1,8 +1,8 @@
|
|||||||
title: $:/core/macros/list
|
title: $:/core/macros/list
|
||||||
tags: $:/tags/Macro
|
tags: $:/tags/Macro
|
||||||
|
|
||||||
\define list-links(filter,type:"ul",subtype:"li")
|
\define list-links(filter,type:"ul",subtype:"li",class:"")
|
||||||
<$type$>
|
<$type$ class="$class$">
|
||||||
<$list filter="$filter$">
|
<$list filter="$filter$">
|
||||||
<$subtype$>
|
<$subtype$>
|
||||||
<$link to={{!!title}}>
|
<$link to={{!!title}}>
|
||||||
|
@ -17,6 +17,7 @@ Das "list" Makro erstellt Linklisten von Tiddlern.
|
|||||||
|1 |filter |Filter Ausdruck | |
|
|1 |filter |Filter Ausdruck | |
|
||||||
|2 |type |"HTML tag", der als Hülle verwendet werden soll. Möglich sind:<br />"ul" .. "unordered list" oder <br />"ol" .. "ordered list" |"ul" |
|
|2 |type |"HTML tag", der als Hülle verwendet werden soll. Möglich sind:<br />"ul" .. "unordered list" oder <br />"ol" .. "ordered list" |"ul" |
|
||||||
|3 |subtype |"HTML tag" der als Listen Element verwendet werden soll. |"li" |
|
|3 |subtype |"HTML tag" der als Listen Element verwendet werden soll. |"li" |
|
||||||
|
|4 |class |Das Listen Element `<ul> oder <ol>` bekommt eine CSS Klasse zugewiesen zB: `<ul class="three-columns"` | |
|
||||||
|
|
||||||
!! Beispiele
|
!! Beispiele
|
||||||
|
|
||||||
|
@ -15,6 +15,7 @@ There are several variants of the macro:
|
|||||||
|1st |filter |Filter expression | |
|
|1st |filter |Filter expression | |
|
||||||
|2nd |type |HTML tag to be used for the list wrapper |"ul" |
|
|2nd |type |HTML tag to be used for the list wrapper |"ul" |
|
||||||
|3rd |subtype |HTML tag to be used for list entries |"li" |
|
|3rd |subtype |HTML tag to be used for list entries |"li" |
|
||||||
|
|4th |class |The list element `<ul> or <ol>` gets a CSS class. eg: `<ul class="three-columns"` | |
|
||||||
|
|
||||||
! Examples
|
! Examples
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user