State

This macro create an clickable icon on the page content. On clicking the image, an menu opens. By selecting an other icon at the menu, the clicked image would be changed.

Installation:

  1. copy: State_macro.py to your macro directory, rename the plugin to State.py

  2. copy: state_action.py to your action directory, rename the plugin to state.py

Purpose:

Functions:

Usage:

 [[State]]                 -> without arguments
 [[State()]]               -> with empty arguments
 [[State(  )]]             -> with spaces as arguments
 [[State( UnknownState )]] -> with wrong state

 [[State(TODO)]]           -> upper case
 [[State( TODO   )]]       -> upper case and spaces
 [[State(todo)]]           -> lower case 
 [[State( todo   )]]       -> lower case and spaces

Examples:

All states are open/todo, without arguments

 [[State]] buy apples
 
 [[State]] looking for a present
 
 [[State]] write a letter

A little game

= Connect Four =

 (./) Player 1

 {X} Player 2

  || [[State]] || [[State]] || [[State]] || [[State]] ||
  || [[State]] || [[State]] || [[State]] || [[State]] ||
  || [[State]] || [[State]] || [[State]] || [[State]] ||
  || [[State]] || [[State]] || [[State]] || [[State]] ||

example_four.png

Requests

Comments and Discussion

MoinMoin: RichardFlieger/Ideas/State (last edited 2007-10-29 19:13:49 by localhost)