charlesreid1.com blog

MediaWiki Patterns for a Zettelkasten: Organizing Pages

Posted in Zettelkasten

permalink

This post is part 4 of a series.

What is a Zettelkasten?

See Part 1 of this series for a little more background on what we're talking about! But basically:

  • A zettelkasten is a system of note-taking, where notes are kept simple and tags, or categories, are added to notes to interlink them and create a network of connected notes that aid in discovery and memory.

  • MediaWiki (the software that runs Wikipedia) is a mature PHP software package for creating a wiki, that has many built-in features that make it very amenable for use as a zettelkasten.

Organizing a Page

The way that pages are organized on a wiki is central to the way the entire wiki is structured. While it may seem like a trivial topic that anyone can figure out as they go, a zettelkasten is intended to hold notes accumulated over many years, and as pages accumulate more information they can start to become inconsistent, crowded, and messy.

We are here with some battle-tested patterns to help manage that mess and keep pages organized and useful (for all of the many purposes a note in a zettelkasten may need to serve) for years to come.

The three patterns we use to help organize pages on the MediaWiki zettelkasten are:

  1. Reserve top-level headers for meta-level page organization (different sections for different uses of the page).
  2. Take notes chronologically in a top-level Notes section.
  3. Move information to sub-pages as it accumulates or if requires more room.

What Problem Are We Trying To Solve?

To understand what problem these patterns are trying to solve, suppose you have your MediaWiki zettelkasten, and you start a single note that is on a broad topic. The note might start with a simple structure, have its own internal logic, and be organized consistently. Easy as that!

But now suppose you come back to that same topic three months later, with a different perspective and a different purpose. Maybe you're starting a new project, and re-using some information from the existing note but also adding new information. Or maybe you learned some new information that changes the way the page should be organized.

With a page in place, with its own structure and organization and logic, it can be difficult to know where to incorporate new information down the road. The ideal note-taking system eliminates that kind of internal friction, and makes it as easy as possible to capture new information, without the cognitive burden of having to reorganize the page again and again.

Pattern 1: Reserve Top Level Sections

This strategy is a small and easy-to-implement change in how new pages are created, that keeps the page flexible for multiple different uses.

The strategy is this: when creating a page, the initial version of the page should only use second-level or deeper section headers, so any section like =Specifications= would become ==Specifications==.

Yup, that's it! We also have a simple example of a MediaWiki page before/after applying this pattern here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Page_Organization#Pattern_1:_Reserve_Top_Level_Sections

Pattern 2: Taking Notes Chronologically

We reserve top-level headers for dividing the page based on its different uses. If we want to start taking notes, we can add a top-level Notes section to the bottom and start taking notes there.

To keep notes organized chronologically, we add a second-level header with the year, month, and date. That way, while we're taking notes, we don't have to worry about how to incorporate the information into the existing "Overview" information, or try and filter the information as we go. We add notes to the notes section, and can copy or move information to other parts of the page later.

Here is a simple example of a MediaWiki page after applying this pattern: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Page_Organization#Pattern_2:_Taking_Notes_Chronologically

Pattern 3: Subpages

While following the pattern covered above, you might find that on a particular day, working on a particular task, the notes for that task end up being much more complicated than initially expected - it might involve research, links, tasks, notes, and in general require more room than the sub-sub-subsection allotted to it by using the two patterns we have covered.

In that situation, you can replace the sub-sub-section's text with a link to a subpage (for example, on the [[Foobar]] page, if you are working on Baz and it gets complicated, you create a subpage [[Foobar/Baz]]). The original page should link to the subpage, and vice-versa, to make it easy to navigate. Any relevant Category tags should also be added to the subpage, to help make it findable.

This page shows another simple MediaWiki example page showing the subpage pattern in action: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Page_Organization#Pattern_3:_Subpages

More Details

For more details, see the full writeup on our (public non-zettelkasten!) wiki here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Page_Organization

Tags:    zettelkasten    mediawiki    note taking    memory   

MediaWiki Patterns for a Zettelkasten: Monthly Template Pattern

Posted in Zettelkasten

permalink

This post is part 3 of a series.

What is a Zettelkasten?

See Part 1 of this series for a little more background on what we're talking about! But basically:

  • A zettelkasten is a system of note-taking, where notes are kept simple and tags, or categories, are added to notes to interlink them and create a network of connected notes that aid in discovery and memory.

  • MediaWiki (the software that runs Wikipedia) is a mature PHP software package for creating a wiki, that has many built-in features that make it very amenable for use as a zettelkasten.

The Monthly Template Pattern

We cover the monthly template pattern in full detail here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Monthly_Template_Pattern

This blog post is a summary of what's on that page.

What is the Monthly Template?

The monthly template is a MediaWiki template (a bit of text that can be dynamically inserted into other pages) that inserts links to all daily pages for a given month. The monthly template is called something like [[Template:January2016]]. All daily pages in January 2016 would dynamically include this monthly template by having the text {{January2016}} at the end of the note.

We have mentioned before (Part 2) that interlinks between different pages are crucial to making the wiki easy to navigate; the monthly template is a way to make navigation easier by inserting links for all daily pages in a given month.

What's in the Monthly Template?

Each monthly template consists of a box with the following links:

  • List of links to all other daily pages in the given month
  • Links to the previous month's template and the next month's template
  • Links (direct links) to view or edit the monthly template

The last bullet point seems minor, but we have found it enormously useful to include with all templates.

Example Monthly Template

We've set up an example monthly template on our public wiki (which is not a zettelkasten!) for a hypothetical January 2016: https://charlesreid1.com/wiki/Template:January2016

We hope the example shows the monthly template in action and helps clarify some of the details in this post.

More Details

For more details, see the full writeup on our (public non-zettelkasten!) wiki here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Monthly_Template_Pattern

Tags:    zettelkasten    mediawiki    note taking    memory   

MediaWiki Patterns for a Zettelkasten: Daily Page Pattern

Posted in Zettelkasten

permalink

This post is part 2 of a series.

What is a Zettelkasten?

See Part 1 of this series for a little more background on what we're talking about! But basically:

  • A zettelkasten is a system of note-taking, where notes are kept simple and tags, or categories, are added to notes to interlink them and create a network of connected notes that aid in discovery and memory.

  • MediaWiki (the software that runs Wikipedia) is a mature PHP software package for creating a wiki, that has many built-in features that make it very amenable for use as a zettelkasten.

The Daily Page Pattern

We cover the daily page pattern in full detail here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Daily_Page_Pattern

This blog post is a summary of what's on that page.

What is the Daily Page?

The Daily Page pattern consists of creating a new page named [[YYYYMMDD]] each day, and using that page to organize and assemble notes for that day.

By creating a new note/article to collect everything from a given day, it means there is a clean slate each day.

Interlinks from each day's page to other pages are crucial: many inter-wiki links create a link structure that allow easy navigation of the wiki. Each article in the wiki is a node in a network of interlinked pages; an article with lots of wiki links makes it easy to jump around the network.

What's on the Daily Page?

Each daily page has a specific structure. (Note that using MediaWiki means the creation of daily pages can be automated using bots!) A daily page contains the following:

  • Summary of prior day, plus link to prior day (making it easy to navigate backwards)
  • Work daily page - we have a separate daily page for work notes
  • Links section - here, we collect interesting links. This usually starts as a copy-paste dump, but most links will eventually be moved to their own notes (a place to collect information about the link, in addition to the link itself).
  • Monthly template - we make heavy use of MediaWiki templates (chunks of transcluded text) on our zettelkasten. The Monthly Template Pattern (to be covered in a later post) consists of a template with a list of links to all daily pages for a given month. This makes it easy to navigate from one day of the month to another.
  • Categories - we don't tend to add many categories to daily notes, but we add a category for notes in a give month, of the form [[Category:YYYYMM]], to collect all daily pages from a given month. (We also add a category for the year, [[Category:YYYY]], which can be helpful in finding older notes.)

Of course, not every day is spent in front of a computer, and sometimes days must be retroactively logged, but those days can be back-filled with notes.

Example Daily Page

We've set up an example daily page on our public wiki (which is not a zettelkasten!) from a hypothetical January 1, 2016: https://charlesreid1.com/wiki/20160101

Seeing the daily page in action might help this post make a little more sense.

Advantages of the Daily Page Pattern

The daily page pattern has several advantages. Here are a few:

  • The daily page pattern scales well; combined with other patterns, it can help categorize and sift through a large amount of information from any one day, and create a detailed record of goings-on from a given day that can greatly aid the memory.

  • As notes on a particular task or topic get more complicated, we move them to subpages, like [[YYYYMMDD/Foobar]], to allow more space to develop the idea or take notes on a blank page. The subpage links back to the daily page, and the daily page links to the subpage, to keep all pages networked and easy to navigate.

  • The daily page pattern is flexible in terms of the time scales it can handle. A zettelkasten that's started in 2022 can still be used to create detailed notes in the past; if we have a note from July 1, 2007, we can make a new page [[20070701]] and add the information there. (As mentioned above, adding a category like [[Category:2007]] to that page can make it easier to find again.)

Disadvantages of Daily Page Pattern

The daily page pattern does have some disadvantages: when information throughput is low, the daily page pattern can tend to make pages feel barren and empty. When there is too much information coming in, a blank canvas can help things feel more calm. But when there is only a trickle of information coming in, the blank canvas an feel like it is swallowing work.

Overcoming the Disadvantages

We have given some thought to this problem, and have a few thoughts:

  • One useful general principle is persistence - having lists or chunks of text that persist across days, so it doesn't feel like work is being swallowed by the wiki. MediaWiki templates are perfect for this, and can be used to maintain lists of pages, lists of todo pages, or lists of projects being worked on.

  • We have put the persistence principle into practice by keeping a template for our monthly projects. In a given month, we have many projects that we're working on, and each one has various topic pages and todo pages to keep track of what we're working on with that project. The monthly project template allows us to keep track of what projects we're working on over the course of a month, but each month we also get the chance to refresh the list by creating a new one, and preserve that project list in whatever state it was in at the end of the month.

  • It's possible to use a Weekly Page Pattern or a Monthly Page Pattern in place of a Daily Page Pattern, but we do have some thoughts on that.

  • In our experience, the weekly pages create a complication in naming - there isn't a good way to conveniently know, in advance, which weekly page to go to for a given date. If figuring that out isn't a problem, then this would be a good option - a week is a good timeframe for a single page of notes. Enough time for ideas to persist and stew, but not so long that the page gets stale.

  • We feel that a monthly page is too long a time period to organize notes on a single page - after just a few days, the page's content can begin to feel stale, the page may lack the room for accommodating a new idea, or it may just feel like all the old ideas are distracting from coming up with new ideas. Whatever it is, we don't think the monthly page pattern works well.

  • All of that being said, try things out to see what suits your needs!

More Details

For more details, see the full writeup on our (public non-zettelkasten!) wiki here: https://charlesreid1.com/wiki/Zettelkasten/Patterns/Daily_Page_Pattern

Tags:    zettelkasten    mediawiki    note taking    memory   

November 2026

Baby Mac Crypto

March 2022

How to Read Ulysses

July 2020

Applied Gitflow

September 2019

Mocking AWS in Unit Tests

November 2017

A Hard(y) Math Problem