As I stumble my way through the foswiki code, I find that keeping everything in mind is a bit of a challenge, especially since I usually am pulled off of my explorations, resulting in me forgetting much of what I've discovered. The templates are key to how pages display and so having a quick way to see what they are is helpful. I'm creating these layouts on a local system and then copying them over as I work my way through the templates. Hopefully "my" system and system of symbols can be figured out. I've opened up the page although I've not yet transferred all of the pattern templates. Perhaps at some point a tool to parse the files and automatically generate these layouts can be written.
Legend
Full words with underscores = TMPL:DEF objects (TDobj)
Indented items = composition of definition
*TDobj = directly included or instantiated object, used object.
[TDobj] = a conditional object, occurs depending upon a condition.
TDobj1 | TDobj2 = alternation between two objects, e.g. if-then-else situation.
italicized text = abstracted terminal text that occurs in the definition.
n.b.: repeated occurrences of text are not noted, only if it does occur and where it starts.
← tmpl_file = included definitions from a template file
defn ← = definition that occurrs outside the immediate tmpl file, i.e. is included.
# = start of a comment, extending to the end of line.
The templates:
attach.tmpl
← foswiki
notes
html text
existingattachments
html text
attachform
attachformstart
newfile
comment
properties
hiddenfields
attachformend
attachformstart
html text
attachformend
html text
newfile
html text
comment
html text
properties
createlink
hidefile
createlink
html text
hidefile
html text
hiddenfields
nothing
content
html text
previousdetails ←
attachform
notes
extranotes ←
topicinfo ←
existingattachments
attachnew.tmpl
← attach
titleaction
html text
headerhelp
nothing
webaction
html text
previousdetails
html text
previous
html text
action
html text
topicactionbuttons
html text
sep ←
canceltopicaction ←
*attach ←
attachagain.tmpl
← attach
titleaction
html text
headerhelp
nothing
webaction
html text
previousdetails
html text
previous
html text
fileuser
extranotes
html text
topicactionbuttons
html text
sep ←
sep ←
canceltopicaction ←
fileuser
html text
*attach ←
attachtables.tmpl
ATTACH:files:header(toprow)
html text
ATTACH:files:header(basic)
ATTACH:files:header(toprow)
ATTACH:files:row(basic)
html text
ATTACH:files:header
ATTACH:files:header(basic)
ATTACH:files:row
ATTACH:files:row(basic)
ATTACH:files:footer
html text
ATTACH:files:header:A
ATTACH:files:header(basic)
html text
ATTACH:files:row:A
ATTACH:files:row(basic)
html text
ATTACH:files:footer:A
html text
ATTACH:versions:header
html text
ATTACH:versions:row
html text
ATTACH:versions:footer
html text
backlinks.tmpl
← search
searchweb
html text
searchallwebs
html text
topicinfo
nothing
topicaction
nothing
backlinksallwebs.tmpl
← backlinks
titleaction
html text
resultsheader
html text
content
resultsheader
searchweb ←
searchallwebs ←
backlinksweb.tmpl
← backlinks
titleaction
html text
resultsheader
html text
content
resultsheader
searchweb ←
changeform.tmpl
← foswiki
titleaction
html text
pagetitle
html text
webaction
html text
topicactionbuttons
html text
gobacktopicaction ←
formstart
html text
formend
html text
hiddenformfields
html text
notes
html text
content
notes
formstart
html text
hiddenformfields
topicinfo ←
formend
changes.tmpl
← foswiki
← search
titleaction
html text
topicactionbuttons
html text
searchbody
html text
repeatedsearchblock ←
content
searchbody
topicinfo ←
← CommentPlugin
css.tmpl
defaultstyle
styles:base
import stmt
styles:default
import stmt
styles:iespecific
html text
styles:javascript_affected
nothing
cssmediatypes.tmpl
*html text
edit.tmpl
← foswiki
titleaction
html text
webaction
html text
pagetitle
html text
help
html text
textarea
html text
form
html text
formtop
nothing
formbottom
form
formstart
html text
formend
formparameters
formend
formparameters
html text
formparameters
formparameters:edit
formparameters:edit
html text
sig
html text
footernote
help
topicactionbuttons
html text
sep ←
sep ←
content
formstart
formtop
textarea
html text
sig
formbottom
topicinfo ←
formend
editform.tmpl
← edit
focus
nothing
titleaction
html text
pagetitle
html text
footernote
nothing
content
formstart ←
formbottom ←
topicinfo ←
html text
formend ←
edittext.tmpl
← edit
titleaction
html text
pagetitle
html text
form
html text
form.tmpl
*html text
*changeform
html text
mandatory
html text
*repeatedformrows
html text
*formtail
[mandatory]
formtables.tmpl
FORM:display:header
html text
FORM:display:titlename | FORM:display:titlelink
FORM:display:row
html text
FORM:display:footer
html text
FORM:display:titlelink
html text
FORM:display:editlink
FORM:display:titlename
html text
FORM:display:editlink
html text
nb: the starred(*) TMPL:DEFs in foswiki.tmpl below are
used in the order presented.
foswiki.tmpl
← css
*htmldoctype
html text
*head
windowtitle
html text
script
defaultstyle
*bodystart
html text
bodyclassname
*main
simpleheader
pagetitlestylewrapper
contentwrapper
standardfooter
*bodyend
html text
sep
html text
titlesep
html text
LOG_IN
html text
LOG_OUT
html text
nonwikiwordwarning
html text
nonwikiwordhelp
nonwikiwordhelp
html text
nonwikiwordallowed
html text
nonwikiword
nonwikiwordwarning | nonwikiwordallowed
script
script:skinbase
script:skintemplate
script:topictemplate
script:skinbase
nothing
script:skintemplate
nothing
script:topictemplate
nothing
windowtitle
html text
titleaction
titlesep
titleaction
nothing
webaction
nothing
bodyclassname
nothing
broadcastmessage
[broadcastmessage:contents]
broadcastmessage:contents
html text
attachments
nothing
standardheader
html text
titleaction
login
webaction
simpleheader
html text
titleaction
headerhelp
copyright
html text
footernote
nothing
content
nothing
contentwrapper
content
standardfooter
footernote
copyright
canceltopicaction
html text
oktopicaction
html text
gobacktopicaction
html text
topicaction
topicactionbuttons
topicactionbuttons
canceltopicaction
topicinfo
html text
topicaction
html text
contentheader
nothing
contentheaderstylewrapper
html text
contentheader
contentfooter
nothing
contentfooterstylewrapper
html text
contentfooter
revisions
html text
login
[login_actions]
login_actions
html text
pagetitle
webaction
pagetitlestylewrapper
html text
pagetitle
foswiki.pattern.tmpl
← foswiki
← viewtopicactionbuttons
← viewbottombar
sep
html text
LOG_IN
html text
LOG_OUT
html text
logo
html text
canceltopicaction
html text
bodyclassname
html text
simpleheader
nothing
pagetitlestylewrapper
html text
pagetitle ←
patterntopiccontents
pagetitlestylewrapper
content ←
printaction
nothing
topicaction
html text
topicactionbuttons ←
topicinfo
topicaction
htmldoctype
html text
head
html text
windowtitle ←
script ←
defaultstyle ←
script:skinbase
html text
bodystart
html text
bodyclassname ←
main
html text
startsidebarwrapper ←
logo
patterntopiccontents
endsidebarwrapper ←
topbar ←
bottombar ←
bodyend
html text
textareabuttons
html text
login.tmpl
← foswiki
webaction
html text
titleaction
html text
LOG_IN_BANNER
nothing
LOGGED_IN_BANNER
html text
NEW_USER_NOTE
html text
UNRECOGNISED_USER
html text
pagetitle
nothing
titleaction
html text
title
html text
titlestep
title
notestep
errorstep
notestep
html text
errorstep
html text
error
error
html text
authrealm
html text
formstart
html text
formend
html text
usernamefield
html text
[autocomplete_off]
usernamestep
html text
usernamefield
usernamefieldhelp
usernamenote
authrealm ←
usernamefieldhelp
html text
usernamenote
passwordfield
html text
[autocomplete_off]
autocomplete_off
html text
passwordfieldnoteremember
passwordfield
passwordnote
[rememberbox]
passwordstep
html text
passwordfieldnoteremember
passwordnote
html text
rememberbox
html text
submitstep
submit
submit
html text
seealsostep
seealsonote
seealsonote
html text
form
formstart
titlestep
usernamestep
passwordstep
submitstep
formend
seealsostep
content
form
login.sudo.tmpl
← login
webaction
html text
LOGGED_IN_BANNER
html text
UNRECOGNISED_USER
html text
title
html text
usernamefield
html text
[autocomplete_off] ←
usernamenote
authrealm
passwordnote
nothing
loginasadministratorform
nothing
authrealm
html text
mailnotify.tmpl
HTML:before
html text
HTML:middle
html text
HTML:after
html text
PLAIN:before
nothing/i>
PLAIN:middle
html text
PLAIN:after
nothing
MailNotifyBody
html text
mailresetpassword.tmpl
text
messages.tmpl
remove_user_done
html text
created_web
html text
merge_notice
html text
oktopicaction
missing_action
html text
unrecognized_action
html text
not_a_user
html text
in_a_group
html text
move_err
html text
delete_err
html text
topic_exists
html text
rename_topic_exists
html text
rename_web_exists
html text
not_wikiword
html text
empty_topic_name
html text
rename_err
html text
rename_web_err
html text
wrong_password
html text
web_missing
html text
invalid_web_name
html text
web_exists
html text
base_web_missing
html text
invalid_web_color
html text
web_creation_error
html text
registration_not_supported
html text
registration_disabled
html text
thanks
html text
reset_ok
html text
password_changed
html text
password_not_changed
html text
email_changed
html text
confirm
html text
no_users_to_reset
html text
reset_bad
html text
missing_fields
html text
password_mismatch
html text
registration_mail_failed
html text
send_mail_error
html text
already_exists
html text
bad_loginname
html text
bad_wikiname
html text
bad_password
html text
bad_email
html text
bad_ver_code
html text
mandatory_field
html text
no_form_def
html text
upload_name_changed
html text
oktopicaction
zero_size_upload
html text
oversized_upload
html text
save_error
html text
rename_web_prerequisites
html text
no_such_template
html text
post_method_only
html text
bad_script_parameters
html text
lease_active
html text
lease_old
html text
access_denied
html text
bad_attachment
html text
bad_protocol
html text
bad_content
html text
topic_not_found
html text
topic_section_not_found
html text
already_included
html text
bad_include_path
html text
generic
html text
missing_user
html text
bad_user
html text
no_email_for
html text
new_sys_pass
html text
geturl_failed
html text
urls_not_allowed
html text
bad_search
html text
topic_access
html text
only_group
html text
no_such_web
html text
no_such_topic_message
html text
no_such_topic
html text
no_such_topic_message
no_such_topic_template
html text
no_such_topic_rename
html text
no_such_attachment
html text
duplicate_activation
html text
moveattachment.tmpl
← rename
titleaction
html text
webaction
html text
pagetitle
html text
movewebhelp
nothing
namehelp
html text
newweb
html text
towebtitle
html text
newtopic
html text
namehelp
notes
html text
topicactionbuttons
html text
canceltopicaction ←
searchresultsstep
nothing
updatenote
html text
oops.tmpl
← foswiki
← messages
pagetitle
heading ←
content
webaction ← | html text
message ←
topicinfo ←
oopsaccessdenied.tmpl
← oops
titleaction
html text
webaction
html text
heading
html text
topicactionbuttons
html text
message
html text
oopsalertsnohtml.tmpl
← messages
text
oopsalerts.tmpl
← messages
html text
oopsattention.tmpl
← oops
titleaction
nothing
webaction
nothing
heading
html text
topicaction
nothing
message
html text
oopschangelanguage.tmpl
← foswiki
titleaction
html text
webaction
nothing
heading
html text
languagenotes
html text
content
html text
languagenotes
topicinfo ←
oopsgeneric.tmpl
← oops
titleaction
nothing
webaction
html text
heading
html text
topicactionbuttons
html text
message
html text
oopslanguagechanged.tmpl
← oops
titleaction
html text
heading
html text
topicactionbuttons
oktopicaction ←
script
html text
pagetitle
heading
webaction
html text
message
html text
oopsleaseconflict.tmpl
← oops
webaction
html text
heading
html text
message
html text
topicactionbuttons
html text
sep ←
oopsmore.tmpl
← oops
titleaction
html text
webaction
nothing
heading
html text
topicactionbuttons
canceltopicaction ←
settings
html text
copy
html text
nonwikiword ←
delete
html text
rename
html text
backlinks
html text
setparent
html text
cssTwikiDiffOptions
html text
revision
html text
cssTwikiDiffOptions
childtopics
html text
message
revision
setparent
settings
delete
rename
copy
childtopics
backlinks
oopssaveerr.tmpl
← oops
titleaction
html text
webaction
html text
heading
html text
topicactionbuttons
html text
message
html text
preview.tmpl
← edit
templatestyle
html text
pagetitle
html text
alert
html text
titleaction
html text
webaction
nothing
topicactionbuttons
html text
gobacktopicaction ←
formparameters
formparameters:edit ←
formparameters:preview
formparameters:preview
html text
help
nothing
content
alert
formstart ←
html text
topicinfo ←
formend ←
rdiff.tmpl
← foswiki
← search
titleaction
html text
topicactionbuttons
html text
sep ←
revisions ←
sep ←
searchbody
repeatedsearchblock
repeatedsearchblock
html text
content
searchbody
topicinfo ←
rdiff.pattern.tmpl
← searchbase
← foswiki
titleaction
html text
bodyclassname
html text
pagetitle
html text
titleaction
header:left
html text
header:right
html text
result
header ←
topicactionbuttons
html text
sep ←
content
result
topicaction ←
registerconfirm.tmpl
email text
registerfailednotremoved.tmpl
email text
registerfailedremoved.tmpl
email text
registernotify.tmpl
email text
registernotifyadmin.tmpl
email text
rename.tmpl
← renamebase
titleaction
html text
webaction
html text
newwebhelp
nothing
newtopic
html text
nonwikiword ←
newweb
html text
topicactionbuttons
html text
canceltopicaction ←
renameattachmentdelete.tmpl
← moveattachment
titleaction
html text
changefromtitle
html text
newweb
html text
movewebhelp
nothing
towebtitle
html text
topicactionbuttons
html text
canceltopicaction ←
pagetitle
html text
totopictitle
html text
newtopic
html text
namehelp
namehelp
html text
toolbar
nothing
pagehelp
nothing
pagehelp_nojavascript
nothing
searchresultsstep
nothing
updatenote
nothing
renamebase.tmpl
← foswiki
formstart
html text
formend
html text
pagehelp
notes
pagetitle
webaction ←
html text
changefromtitle
html text
changefrom
changefromtitle
towebtitle
html text
toweb
towebtitle
html text
newweb ←
newwebhelp ←
totopictitle
html text
totopic
totopictitle
html text
newtopic ←
newtopichelp ←
renameformsteps
changefrom
toweb
totopic
searchresultsstep
checkuncheck
nothing
updatenote
html text
searchresultsstep
searchresults
searchresults
html text
updatenote
checkuncheck
notes
notegethelp
notegethelp
html text
notecheckmarkedtopics
notecheckmarkedtopics
html text
content
toolbar ←
pagehelp
formstart
renameformsteps
topicinfo ←
formend
renameconfirm.tmpl
← renamebase
titleaction
html text
webaction
html text
towebtitle
html text
totopictitle
html text
nonwikiwordallowed ←
movewebhelp
nothing
newtopic
nothing
newweb
nothing
searchresultsstep
nothing
notecheckmarkedtopics
nothing
topicactionbuttons
html text
canceltopicaction ←
renamedelete.tmpl
← renamebase
titleaction
html text
webaction
html text
changefromtitle
html text
newweb
html text
towebtitle
html text
totopictitle
html text
newtopic
html text
namehelp
nonwikiword ←
namehelp
html text
movewebhelp
nothing
updatenote
html text
topicactionbuttons
html text
canceltopicaction ←
renameweb.tmpl
← renamewebbase
titleaction
html text
webaction
html text
newweb
html text
newparentweb
html text
namehelp
html text
movewebhelp
html text
parentwebhelp
nothing
updatenote
html text
topicactionbuttons
html text
canceltopicaction ←
renamewebbase.tmpl
← renamedelete
pagetitle
webaction ←
html text
towebtitle
html text
parentwebtitle
html text
newtopic
nothing
newweb
newparentweb ←
text
newsubweb ←
changefrom
nothing
formend
html text
searchresults
html text
updatenote ←
checkuncheck ←
notegethelp
html text
notecheckmarkedtopics ←
parentweb
parentwebtitle ←
html text
newparentweb ←
parentwebhelp ←
parentwebstep
parentweb
renameformsteps
toweb ←
[parentwebstep]
searchresultsstep ←
renamewebconfirm.tmpl
← renamewebbase
titleaction
html text
webaction
html text
newsubweb
html text
newparentweb
html text
topicactionbuttons
html text
canceltopicaction ←
renamewebdelete.tmpl
← renamewebbase
search.tmpl
← view
titleaction
html text
webaction
html text
topicactionbuttons
html text
footernote
nothing
searched
html text
header
html text
count
html text
result
html text
content
html text
searched
header
result
count
searchbookview.tmpl
← search
titleaction
html text
repeatedsearchblock
html text
searchformat.tmpl
← foswiki
titleaction
html text
webaction
html text
topicaction
nothing
content
html text
searchmeta.tmpl
html text
settings.tmpl
← edit
titleaction
html text
webaction
html text
pagetitle
webaction
html text
topicactionbuttons
html text
sep
formstart
html text
formend
html text
help
html text
content
formstart
formtop ←
textarea ←
topicinfo ←
formend
twiki.tmpl
← foswiki
twistyplugin.tmpl
html text
validate.tmpl
← foswiki
webaction
html text
titleaction
html text
pagetitle
nothing
titleaction
html text
title
html text
titlestep
title
notestep
html text
formstart
html text
formend
html text
actionstep
html text
form
formstart
titlestep
notestep
actionstep
formend
content
form
view.tmpl
← foswiki
← viewtopicactionbuttons
titleaction
html text
webaction
html text
pagetitlestylewrapper
nothing
form
html text
formtop
nothing
formbottom
form
attachments
html text
attachmentstop
nothing
attachmentsbottom
attachments
footernote
html text
simpleheader
broadcastmessage ←
standardheader ←
content
html text
contentwrapper
contentheaderstylewrapper ←
formtop
attachmentstop
content
contentfooterstylewrapper ←
formbottom
attachmentsbottom
topicinfo ←
view.pattern.tmpl
← view
← viewtopicactionbuttons
← viewtopbar
← viewsidebar
logo
nothing
bodyclassname
html text
script:skintemplate
[script:skintemplate:viewraw]
script:skintemplate:viewraw
html text
DEPRECATED: formattop, formatbottom, attachmentsattop and attachmentsatbottom
formattop
nothing
formatbottom
form ←
attachmentsattop
nothing
attachmentsatbottom
attachments ←
formtop
formattop
formbottom
formatbottom
attachmentstop
attachmentsattop
attachmentsbottom
attachmentsatbottom
top:toolbarbuttons
activatable_edit_or_create ←
activatable_attach ←
top
breadcrumb
top:toolbarbuttons
breadcrumb:separator
html text
breadcrumb
breadcrumb:title
breadcrumb:wikitoolname
breadcrumb:currentweb
breadcrumb:parents
breadcrumb:currenttopic
breadcrumb:parents
html text
breadcrumb:separator
breadcrumb:separator
breadcrumb:topic
html text
breadcrumb:title
html text
breadcrumb:wikitoolname
html text
breadcrumb:currentweb
breadcrumb:separator
html text
breadcrumb:annotation
html text
breadcrumb:currenttopic
breadcrumb:separator
html text
breadcrumb:topic
breadcrumb:annotation
DEPRECATED: beforetext and aftertext
contentheader
beforetext ←
contentfooter
aftertext ←
patterntopiccontents
broadcastmessage
top
contentheaderstylewrapper ←
formtop
attachmentstop
content
contentfooterstylewrapper ←
formbottom
attachmentsbottom
topicaction ←
footernote
standardheader
nothing
simpleheader
flashnote
standardheader
broadcastmessage
[broadcastmessage:contents]
broadcastmessage:contents
html text
flashnote
[flashnote:contents]
flashnote:contents
html text
content
html text
printaction
activatable_printable ←
footernote
topicinfo
topicinfo
html text
sig_textareabuttons
textareabuttons ←
view.plain.tmpl
← foswiki
titleaction
html text
webaction
html text
form
html text
attachments
html text
main
content
content
html text
form
attachments ←
viewplain.tmpl
← foswiki
content
html text
viewprint.tmpl
← foswiki
form
html text
attachments
html text
standardheader
nothing
simpleheader
nothing
topicpathseparator
html text
topicinfo
html text
content
html text
form
attachments
topicinfo
viewtopicactionbuttons.tmpl
topicactionbuttons
action_activatable_edit_or_create
action_activatable_attach
action_printable
action_revisions
action_backlinks_simple
action_raw_or_view
action_activatable_raw_edit
activatable_more
create_topic_link
html text
url_param_editaction
edit_topic_link
html text
url_param_editaction
raw_edit_link
html text
url_param_editaction
view_topic_link
html text
attach_link
html text
more_link
html text
action_printable
printable
sep ←
printable
html text
activatable_printable
printable
backlinks_web_link
html text
backlinks_all_link
html text
backlinks_link
html text
history_rdiff_link
html text
history_history_link
html text
raw_link
html text
inactive_edit_with_view_topic
html text
url_param_editaction
html text
edit_or_create
create_topic_link | edit_topic_link
raw_edit
[raw_edit_link]
[sep] ←
action_activatable_edit_or_create
activatable_edit_or_create
sep ←
activatable_edit_or_create
inactive_edit_with_view_topic | edit_or_create
action_activatable_raw_edit
[activatable_raw_edit]
activatable_raw_edit
inactive_raw_edit | raw_edit
inactive_raw_edit
html text
sep ←
active_attach
attach_link
inactive_attach
html text
action_activatable_attach
activatable_attach
sep ←
activatable_attach
inactive_attach | active_attach
active_more
more_link
inactive_more
html text
action_activatable_more
activatable_more
activatable_more
inactive_more | active_more
action_raw_or_view
raw_or_view
sep ←
raw_or_view
view_topic_link | raw_link
action_backlinks
backlinks
sep ←
backlinks
html text
backlinks_web_link
backlinks_all_link
backlinks_simple
backlinks_link
action_backlinks_simple
backlinks_simple
sep ←
history_rdiff
history_rdiff_link
history_history
history_history_link
revisions_rdiff
html text
revisions_compare
html text
action_revisions
revisions
sep ←
revisions
history_history | history_rdiff
revisions_compare | revisions_rdiff
--
JeffGreen - 17 Aug 2009