TiddlyWiki widget names

What happens if two plugins define a custom widget with the same name and both plugins get imported into the same wiki?

The plugin, which is imported later in the chain will win. Usually plugins are sorted by name.

If you have a conflicting widget-name, you should resolve this issue by renaming your widget, if you control it.

The common rule is: Who published / created it first – wins.

If you use 2 3rd party plugins, the best way to resolve such an issue is be contacting the plugin authors, so they can resolve the problem.

Renaming a plugin, so it is evaluated last – Is a recipe for disaster.

-m

Will TiddlyWiki report such a widget name collision to the end user if it happens?

TW does not report widget name collision, since the startup mechanism does not track any code. It does only know the last plugin.

(Although unlikely) If this were to happen it is possible to give the widget an extra name via javascript. eg if my ‘mplayer’ widget got covered up by another widget then I would do this

and in a tiddler it can be renamed back ‘mplayer’ via including this in a tiddler:

\widget $mplayer()
<$parameters $params="all">
    <$genesis   $type="$bjsmplayer"  $remappable="no" 	$names="[<all>jsonindexes[]]" 
                $values="[<all>jsonindexes[]] :map[<all>jsonget<currentTiddler>]"/>
</$parameters>
\end