delete $params{page};
delete $params{destpage};
- $tags{$page} = [];
foreach my $tag (keys %params) {
- push @{$tags{$page}}, $tag;
+ $tags{$page}{$tag}=1;
# hidden WikiLink
push @{$links{$page}}, tagpage($tag);
}
$template->param(tags => [
map {
link => htmllink($page, $destpage, tagpage($_))
- }, @{$tags{$page}}
- ]) if exists $tags{$page} && @{$tags{$page}} && $template->query(name => "tags");
+ }, sort keys %{$tags{$page}}
+ ]) if exists $tags{$page} && %{$tags{$page}} && $template->query(name => "tags");
if ($template->query(name => "categories")) {
# It's an rss/atom template. Add any categories.
- if (exists $tags{$page} && @{$tags{$page}}) {
- $template->param(categories => [map { category => $_ }, @{$tags{$page}}]);
+ if (exists $tags{$page} && %{$tags{$page}}) {
+ $template->param(categories => [map { category => $_ },
+ sort keys %{$tags{$page}}]);
}
}
} # }}}
preprocessing it.
* Fix smiley plugin to support smileys at the very beginning or end of
the content.
+ * Allow multiple tag settings to appear in a single page.
- -- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 18:40:36 -0500
+ -- Joey Hess <joeyh@debian.org> Tue, 13 Feb 2007 22:40:56 -0500
ikiwiki (1.42) unstable; urgency=low
`type/core` tag disappeared, and the template did not supply
it. --[[JoshTriplett]]
+Problem was that setting a tag cleared all earlier tags. [[bugs/done]], and
+I like the idea of the autotagging..
+--[[Joey]]
[[template id=plugin name=htmlscrubber core=1 author="[[Joey]]"]]
-[[tag type/html type/core]]
+[[tag type/html]]
This plugin is enabled by default. It sanitizes the html on pages it renders
to avoid XSS attacks and the like.
[[template id=plugin name=inline core=1 author="[[Joey]]"]]
-[[tag type/core]]
This is a [[PreProcessorDirective]] that allows including one wiki page
inside another. For example:
[[template id=plugin name=mdwn core=1 author="[[Joey]]"]]
-[[tag type/format type/core]]
+[[tag type/format]]
This plugin lets ikwiki convert files with names ending in ".mdwn" to html.
It uses the [[markdown]] minimal markup language.
[[template id=plugin name=passwordauth core=1 author="[[Joey]]"]]
[[tag type/auth]]
-[[tag type/core]]
This plugin lets ikiwiki prompt for a user name and password when logging
into the wiki. It also handles registering users, mailing passwords, and
* To use one block of text if a variable is set and a second if it's not,
use `<TMPL_IF NAME="variable">text<TMPL_ELSE>other text</TMPL_IF>`
-The filled out template will be formatted the same as the rest of the page
-that contains it, so you can include WikiLinks and all other forms of wiki
-markup in the template.
-
Here's a sample template:
<span class="infobox">
<TMPL_VAR notes>
</TMPL_IF>
</span>
+
+The filled out template will be formatted the same as the rest of the page
+that contains it, so you can include WikiLinks and all other forms of wiki
+markup in the template. Note though that such WikiLinks will not show up as
+backlinks to the page that uses the template.
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2007-02-13 19:10-0500\n"
+"POT-Creation-Date: 2007-02-13 22:40-0500\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"