Glossary

By Craig Macomber Craig Macomber

Description

This code makes a glossary page and category along with a button to add an entry. If your wiki needs a glossary it will work great. it works my using a new page module to add pages to the glossary category and then lists all pages in the glossary category alphabetically with previews using the pages module.

Code

[[module NewPage category="Glossary" button="Add Page to Glossary"]]
[[module Pages category="Glossary" preview="true"]]

In action

There is an example on http://thehurl.wikidot.com/glossary


Thanks to tsangk for this great snippet: conditional-blocks


text above inserted with:

[[include :snippets:if START |unique=1|type=equal|var1=%%name%%|var2=conditional-blocks]]
**##red|Thanks to tsangk for this great snippet:##** [[[code:conditional-blocks]]]
[[include :snippets:if END]]



Other snippets posted by Craig Macomber


Rate this solution

If you think this solution is useful — rate it up!

rating: +23
RE: Glossary
Joshua Darby Joshua Darby 15 Sep 2015 21:00

Would their be a search glossary button or category

by Joshua Darby Joshua Darby , 15 Sep 2015 21:00
HOVER glossary

I am looking for a HOVER glossary… you know a marked word in a paragraph on wich you can hover and the explination pops up… any idea?


A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.

by Steven Heynderickx Steven Heynderickx , 14 Jul 2009 10:48
Re: HOVER glossary
HobStarCS HobStarCS 23 Aug 2009 00:51

I also want this, no one seems to be able to help (except suggesting Bibliography or References)

by HobStarCS HobStarCS , 23 Aug 2009 00:51
Re: HOVER glossary
Helmut_pdorf Helmut_pdorf 25 Aug 2009 07:39

Steven is writing a wonderful howto: http://community.wikidot.com/howto:popup have a look about he status….


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 ?

by Helmut_pdorf Helmut_pdorf , 25 Aug 2009 07:39
Re: HOVER glossary
HobStarCS HobStarCS 25 Aug 2009 13:44

Steven has made this work beautifully!!!

by HobStarCS HobStarCS , 25 Aug 2009 13:44
Re: HOVER glossary

Finished for now… I also am working on a glossary, it works but since ListPages does not work recursively… pages that are generated with ListPages can not contain this PopUp… So it only works (the glossary) with simple pages. Coming soon.


A - S I M P L E - P L A N by ARTiZEN a startingpoint for simple wikidot solutions.

by Steven Heynderickx Steven Heynderickx , 25 Aug 2009 14:28
Glossary Redux
sstern82 sstern82 01 May 2009 22:46

I've made some modifications to the original code…

Code

[[module NewPage category="glossary" template="template:glossary" button="New Definition" size="50" parent="glossary"]]
[[module ListPages category="glossary" order="titleAsc" perPage="20"]]
* {{%%title%%}} [[[[%%page_unix_name%% | edit]]]]
> %%first_paragraph%%
[[/module]]
  • NewPage module - longer text entry field, auto-assign parent to glossary, use a template (optional) which includes the NextPage/PreviousPage modules.
  • ListPages module - Print title page with its page link as "edit", display first paragraph in a quotation box (assuming your definitions will always remain one paragraph long), 20 definitions per page in ascending order.

In action

http://www.definitive-socionics.info/glossary

by sstern82 sstern82 , 01 May 2009 22:46
Re: Glossary Redux
The real Assi The real Assi 02 Dec 2009 02:29

I would like to show a "create this page." after a user search returns back "Sorry, no results found for your query."
Is ther a way to do this?

by The real Assi The real Assi , 02 Dec 2009 02:29
Re: Glossary Redux
leiger leiger 03 Dec 2009 02:28

You can add a NewPage module to appear all the time, whether there are any results or not.

Changing content based on a module's results though, is impossible.


~ Leiger - Wikidot Community Admin - Volunteer
Wikidot: Official Documentation | Wikidot Discord server

by leiger leiger , 03 Dec 2009 02:28
SheaMackenzie SheaMackenzie 02 Jul 2008 18:43

Is there any way to subdivide the glossary or create multiple separate glossaries on a single site that don't automatically use the existing entries?

by SheaMackenzie SheaMackenzie , 02 Jul 2008 18:43
Great!
thefurryshrew thefurryshrew 14 Oct 2007 01:55

This is awesome! It really helped me on my site, although I had to modify the code a bit! To see how I used it, check out my site.

http://buddypages.wikidot.com/

by thefurryshrew thefurryshrew , 14 Oct 2007 01:55
page revision: 2, last edited: 16 Feb 2012 01:03
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License
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.
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).

AltStyle によって変換されたページ (->オリジナル) /