mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-17 23:34:50 +00:00
Merge pull request #918 from pmario/fr-coremacro-classes
Like the tabs macro, the list macro should get a possibility to add a class parameter
This commit is contained in:
commit
e028b87ce8
@ -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}}>
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user