Tags:
view all tags
---++ Matrix Plugin Generates a matrix in table form. Input are two lists, containing the values for the x and y axis. The lists may be given directly, or as TWiki variables. In effect, it is similar to a nested use of the <tt>FOREACH</tt> variable (see ForEachPlugin), but it will work better for complex substitutions in the cell content, since there is only one "replace". Also, it is easier to use. ---+++ Basic Usage Using the two lists =X= and =Y= defined at the end of this topic, we generate an =X*Y= matrix like this: <verbatim>%MATRIX{ x="%X%" y="%Y%" xtext="Eins, Zwei, Drei" ytext="Aa,Bb,Cc" corner="Letter \ Digit" cell="$x:$y" }%</verbatim> This gives %MATRIX{ x="%X%" y="%Y%" corner="Letter \ Digit" cell="$x:$y" xtext="Eins, Zwei, Drei" ytext="Aa,Bb,Cc"}% ---+++ Parameters The parameters prefixed with $ will be provided for the templates, whenever it makes sense from the context. In particular, in the =cell= template, =$x=, =$y=, =$xtext= and =$ytext= are available. | *Name* | *Description* | *Template variable* | | x | The horizontal values | =$x= | | y | The vertical values | =$y= | | xtext | Concomitant for x, can be used in templates | =$xtext= | | ytext | Concomitant for y, can be used in templates | =$ytext= | | corner | Text for the upper left corner of the matrix | | | xtitle | Title template for x | Template | | ytitle | Title template for y | Template | | cell | Template for cell | Template | | verbatim | For debugging. If =true=, shows generated Twiki markup | | Additionally, to allow delayed rendering of generated TWiki variable calls, the variable <tt>$percnt</tt> can be used. * Set X=1,2,3 * Set Y=a,b,c -- Main.RuedigerPlantiko - 2012-11-09
Edit
|
Attach
|
Watch
|
P
rint version
|
H
istory
:
r6
|
r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r1 - 2012-11-21
-
TWikiGuest
Home
Site map
Main web
Sandbox web
TWiki web
TWiki Web
User registration
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
P
View
Raw View
Print version
Find backlinks
History
More topic actions
Edit
Raw edit
Attach file or image
Edit topic preference settings
Set new parent
More topic actions
User Reference
ATasteOfTWiki
TextFormattingRules
TWikiVariables
FormattedSearch
QuerySearch
TWikiDocGraphics
TWikiSkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
InterWikis
ManagingUsers
ManagingWebs
TWikiSiteTools
TWikiPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Account
Log In
Edit
Attach
Copyright © 1999-2025 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback
Note:
Please contribute updates to this topic on TWiki.org at
TWiki:TWiki.MatrixPlugin
.