1
0
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:
Mario Pietsch 2014-09-28 10:32:54 +02:00
parent 32fcd2e21b
commit 59f04ffd31
3 changed files with 4 additions and 2 deletions

View File

@ -1,8 +1,8 @@
title: $:/core/macros/list
tags: $:/tags/Macro
\define list-links(filter,type:"ul",subtype:"li")
<$type$>
\define list-links(filter,type:"ul",subtype:"li",class:"")
<$type$ class="$class$">
<$list filter="$filter$">
<$subtype$>
<$link to={{!!title}}>

View File

@ -17,6 +17,7 @@ Das "list" Makro erstellt Linklisten von Tiddlern.
|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" |
|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

View File

@ -15,6 +15,7 @@ There are several variants of the macro:
|1st |filter |Filter expression | |
|2nd |type |HTML tag to be used for the list wrapper |"ul" |
|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