Click here to edit contents of this page.
Click here to toggle editing of individual sections of the page (if possible). Watch headings for an "edit" link when available.
Append content without editing the whole page source.
Check out how this page has evolved in the past.
If you want to discuss contents of this page - this is the easiest way to do it.
View and manage file attachments for this page.
A few useful tools to manage this Site.
See pages that link to and include this page.
Change the name (also URL address, possibly the category) of the page.
View wiki source for this page without editing.
View/set parent page (used for creating breadcrumbs and structured layout).
Notify administrators if there is objectionable content in this page.
Something does not work as expected? Find out what you can do.
General Wikidot.com documentation and help section.
Wikidot.com Terms of Service - what you can, what you should not etc.
Wikidot.com Privacy Policy.
This is very clear in the usage - and makes sence too!
Congratulations !
Service is my success. My webtips:www.blender.org (Open source), Wikidot-Handbook.
Sie können fragen und mitwirken in der deutschsprachigen » User-Gemeinschaft für WikidotNutzer oder
im deutschen » Wikidot Handbuch ?
Erich,
Nice work! You are the Master Manipulator of the comment tag!
-Ed
Community Admin
Will be using this! :)
~ Shane (Wikidot Community Admin - Volunteer)
Wikidot: Wikidot Editor, Official Docs
Other: YouTube (gaming, primarily Minecraft)
I refined the code to utilise a single ListPages module rather than two. As I was using the old code, I came across limitations due to trying to use a span element across different div blocks (which are automatically created as part of the ListPages module).
λ James Kanjo
Blog | Wikidot Expert | λ and Proud
Web Developer | HTML | CSS | JavaScript
Thanks James, now please apply this solution to James Kanjo's activity …
I especially like this because it is not limited to English, and anyone can write the text in his own language… Well done, guys!!!!
PS:I have already implemented it in Candidate For Delete (List) page….
If slaughterhouses had glass walls, everyone would be vegan. - Paul McCartney
Erich's how-to addresses instances when a list is empty. I'm trying to think of how to distinguish between lists with 1 and more entries.
"1 comments" sounds too automated.
For the meantime, I've been using "1 comment(s)". Maybe this is possible with includes. Let me see…
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
I tend to use "Number of comments: 1" as that works whatever the number is.
Rob Elliott - Strathpeffer, Scotland - Wikidot first line support & community admin team.
I tried using some includes to do the job, and it worked well when not using ListPages. The problem was that defining %%comments%% as the value instead of 1 broke the idea. So for the moment, Rob's idea seems best, and it could be shortened to simply, "Comments: 1".
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Getting a weird issue when I try to use this in a template with a CountPages module for a header. I'm using:
[[module ListPages parent="." separate="false"
appendLine="[!----]"]]
+++ Subcategories
----
[[module CountPages parent="."]]
This category has the following %%total%% subcategories.
[[/module]]
[!----]
* %%title_linked%%
[!--
[[/module]]
All pages with no subcategories (i.e. child pages) should show nothing there. That works fine. But on the page I'm having trouble with (called "Characters"), which has one child page (called "Doctors"), I should be getting:
Subcategories
This category has the following 1 subcategories.
Instead, I'm getting:
Subcategories
�[some number]�
The number doesn't seem to have any relation to anything. It seems to change based on parameters I haven't figured out. Right now it's 98, but at one point it was something like 136. (And just now I changed "separate" from "false" to "no" and got 33626.)
However, if I open the editor and preview the page, I always get:
Subcategories
�2�
It's all terribly strange. I'm pretty sure it was working earlier, while I was still fooling around with the template. I'm not sure when it stopped working, so I don't know what change caused the problem.
It shouldn't work, as you cannot nest modules inside one another. Thankfully, you do not need CountPages at all since ListPages supports the %%total%% variable all on its own.
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me
Yes, but if I used the ListPages module by itself, it would give that message for every page listed.
…Eeeexcept no it wouldn't because the whole point of the comment tags is to stop it from doing that, isn't it? Oh my Lord I'm a moron. XD Forgive me, I'm very new at all this.
No problem; we're here to help when needed (:
Timothy Foster - @tfAuroratide
Auroratide.com - Go here if you're nerdy like me