LV:Viewer

From LifeWiki
Jump to: navigation, search

This is a template for including a LifeViewer in a wiki page, which lets a user manipulate a pattern right in the wiki page itself. This is the same viewer that is used on the ConwayLife.com forums, and it is briefly summarized here. The template takes either one or two unnamed parameters:

  1. The (usually RLE) code that generates the pattern.
  2. An optional parameter that specifies what should be displayed if the user has JavaScript disabled (defaults to the plaintext message "Please enable Javascript to view this LifeViewer.").
An example is: {{LV:Viewer|bo$2bo$3o}}, which generates the following LifeViewer:
x=3,y=3 bo$2bo$3o