PsyCrit: Difference between revisions

From Woozle Writes Code
Jump to navigation Jump to search
(replaced cropped page image with full page image)
mNo edit summary
 
(One intermediate revision by the same user not shown)
Line 2: Line 2:
[[PsyCrit]] is [https://psycrit.com a web site] I designed for {{l/wp|J. E. R. Staddon}}, professor emeritus at Duke University, using sample artwork and design suggestions he provided.  
[[PsyCrit]] is [https://psycrit.com a web site] I designed for {{l/wp|J. E. R. Staddon}}, professor emeritus at Duke University, using sample artwork and design suggestions he provided.  


After an initial attempt to create the site using Drupal, I ended up setting it up in July 2006 as a MediaWiki site, using [[w3tpl]] tags and some custom code to manage certain data relationships. This turned out to be fragile, and by July 2020 I completely replaced those functions with Semantic MediaWiki (SMW).
After an initial attempt to create the site using Drupal, I ended up setting it up in July 2006 as a MediaWiki site, using [[W3TPL]] tags and some custom code to manage certain data relationships. This turned out to be fragile, and by July 2020 I completely replaced those functions with Semantic MediaWiki (SMW).


The site uses a custom MediaWiki skin, using an owl photo he sent me and some lettering and shading I did in PaintShop Pro.
The site uses a custom MediaWiki skin, using an owl photo he sent me and some lettering and shading I did in PaintShop Pro.
Line 16: Line 16:


Pages are normally created using:
Pages are normally created using:
* HTML forms, defined within a wiki page using [[w3tpl]] to enable raw HTML output and show some variable information
* HTML forms, defined within a wiki page using [[W3TPL]] to enable raw HTML output and show some variable information
* [[MakePage]], an extension I wrote which creates wiki pages from a template plus submitted form data (POST or GET)
* [[MakePage]], an extension I wrote which creates wiki pages from a template plus submitted form data (POST or GET)

Latest revision as of 16:43, 2 September 2020

PsyCrit's Main Page on August 13, 2020 : Everything under "Blog" and "Commentaries" is assembled by SMW queries from separate pages.

PsyCrit is a web site I designed for J. E. R. Staddon, professor emeritus at Duke University, using sample artwork and design suggestions he provided.

After an initial attempt to create the site using Drupal, I ended up setting it up in July 2006 as a MediaWiki site, using W3TPL tags and some custom code to manage certain data relationships. This turned out to be fragile, and by July 2020 I completely replaced those functions with Semantic MediaWiki (SMW).

The site uses a custom MediaWiki skin, using an owl photo he sent me and some lettering and shading I did in PaintShop Pro.

Data Relationships

The core of the site consists of original responses to science-related articles ("targets"), mostly in academic journals but sometimes in more popular contexts.

  • A wiki page is created for each "target" article, using SMW to note information about the article in a way which can be shown elsewhere in different formats as needed.
  • A wiki page is create for each "response" article, again using SMW to note key information.
  • SMW queries are then used to display:
    • a list of responses, by date (most recent first), on the front page
    • a list of responses for each target article (most only have one, but some have more), on each target's page
    • on each response's page, a summary of the target being responded to and a link back to the target's page
    • blog posts, which are similarly indexed using SMW

Pages are normally created using:

  • HTML forms, defined within a wiki page using W3TPL to enable raw HTML output and show some variable information
  • MakePage, an extension I wrote which creates wiki pages from a template plus submitted form data (POST or GET)