From: W. Trevor King Date: Mon, 4 Oct 2010 19:05:07 +0000 (-0400) Subject: Documented the linktoimgonly plugin. X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=723e4e093c19b52e7811ff3bd071cdb3fd793370;p=ikiwiki.git Documented the linktoimgonly plugin. --- diff --git a/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn b/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn index e92cc1b1c..d6ab5186e 100644 --- a/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn +++ b/doc/forum/link_to_an_image_inside_the_wiki_without_inlining_it.mdwn @@ -67,3 +67,4 @@ Any hints? --[[jerojasro]] linktext => $params{text}, noimageinline => 1); +>>>>>> Added [[plugins/linktoimgonly]] plugin to ikiwiki repository. --[[wtk]] diff --git a/doc/ikiwiki/directive/ltio.mdwn b/doc/ikiwiki/directive/ltio.mdwn new file mode 100644 index 000000000..9d64a53c7 --- /dev/null +++ b/doc/ikiwiki/directive/ltio.mdwn @@ -0,0 +1,15 @@ +The `ltio` directive is supplied by the [[!iki plugins/linktoimgonly +desc=linktoimgonly]] plugin. + +By default ikiwiki [[inlines WikiLinks to images|ikiwiki/WikiLinnk]], +but sometimes you want a text link instead. The `ltio` directive +forces a text link. + +## usage + + \[[!ltio image1.jpg]] + +The image file will be searched for using the same rules as used to find +the file pointed to by a [[ikiwiki/WikiLink]]. + +[[!meta robots="noindex, follow"]] diff --git a/doc/plugins/linktoimgonly.mdwn b/doc/plugins/linktoimgonly.mdwn new file mode 100644 index 000000000..8bda6ecad --- /dev/null +++ b/doc/plugins/linktoimgonly.mdwn @@ -0,0 +1,7 @@ +[[!template id=plugin name=linktoimgonly author="W. Trevor King"]] +[[!tag type/widget]] + +This plugin provides the [[ikiwiki/directive/ltio]] +[[ikiwiki/directive]]. Ikiwiki [[inlines WikiLinks to +images|ikiwiki/WikiLinnk]], but sometimes you want a text link +instead. The `ltio` directive forces a text link. diff --git a/doc/users/wtk.mdwn b/doc/users/wtk.mdwn new file mode 100644 index 000000000..93602a26d --- /dev/null +++ b/doc/users/wtk.mdwn @@ -0,0 +1,6 @@ +[[!meta title="W. Trevor King"]] + +W. Trevor King is wking@drexel.edu. +His web page is [here](http://www.physics.drexel.edu/~wking/) and his +ikiwiki-based blog is +[here](http://www.physics.drexel.edu/~wking/unfolding-disasters/)