mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-28 20:12:41 +00:00
23 lines
1002 B
Plaintext
23 lines
1002 B
Plaintext
caption: duplicateslugs
|
|
created: 20200509141702846
|
|
modified: 20200509141702846
|
|
op-input: a [[selection of titles|Title Selection]]
|
|
op-output: input titles that yield duplicate slugs
|
|
op-purpose: find titles that yield duplicate slugs
|
|
tags: [[Filter Operators]]
|
|
title: duplicateslugs Operator
|
|
type: text/vnd.tiddlywiki
|
|
|
|
<<.from-version "5.1.23">> The <<.olink slugify>> operator can be used to transform arbitrary tiddler titles into human readable strings suitable for use in URLs or filenames. However, it is possible for multiple different titles to slugify to the same string. The <<.olink duplicateslugs>> operator can be used to display a warning. For example:
|
|
|
|
<$macrocall $name='wikitext-example-without-html'
|
|
src='<$list filter="[!is[system]duplicateslugs[]limit[1]]" emptyMessage="There are no duplicate slugs">
|
|
The following tiddlers have duplicate slugs:
|
|
|
|
<ul>
|
|
<$list filter="[!is[system]duplicateslugs[]]">
|
|
<li><$link><$text text=<<currentTiddler>>/></$link></li>
|
|
</$list>
|
|
</ul>
|
|
</$list>'/>
|