You are here:
Vanderbilt Biostatistics Wiki
>
System Web
>
CheckToIncludePlugin
(21 Apr 2009,
JeffreyHorner
)
(raw view)
E
dit
A
ttach
---++ CheckToIncludePlugin ---+++ Syntax Rules Use the CINCLUDE tag to include information from another TWiki page, only if a checkbox is checked. The first argument, ID, is the name of the page to include. The second argument, LABEL, is optional. Use it to describe the text. Use the ASK and CHECK tags to include a section of text, if a checkbox is checked. The ASK tag creates the checkbox. It takes two agruments, the ID of the text to display and a LABEL to display beside the checkbox. The CHECK tag creates the section of text to display. It requires a start and end tag, and also takes the ID of the text to display as its argument. The actual text to display should be enclosed within the start and end tags. All arguments are optional. ---++ Examples __You type:__ <verbatim> %CINCLUDE{topic="Main.WebHome" label="Our home page"}% </verbatim> __You get:__ %CINCLUDE{topic="Main.WebHome" label="our home page"}% __You type:__ <verbatim> %ASK{}% %CHECK{}% You clicked on the checkbox! %ENDCHECK% </verbatim> __You get:__ %ASK{}% %CHECK{}% You clicked on the checkbox! %ENDCHECK% __You type:__ <verbatim> %ASK{id="time" label="Check the time?"}% %CHECK{"time"}% %SERVERTIME{}% %ENDCHECK% </verbatim> __You get:__ %ASK{id="time" label="Check the time?"}% %CHECK{"time"}% %SERVERTIME{}% %ENDCHECK% ---+++ <nop>%TOPIC% Settings Plugin settings are stored as preferences variables. To reference a plugin setting write ==%<nop><plugin>_<setting>%==, for example, ==%<nop>CHECKTOINCLUDEPLUGIN_SHORTDESCRIPTION%== * One line description, shown in the %TWIKIWEB%.TextFormattingRules topic: * Set SHORTDESCRIPTION = This plugin displays a checkbox which, when checked, displays the content of another TWiki page. * Allow deprecated ==%<nop>INCLUDE:"TopicName"%== syntax: * Set OLDINCLUDE = 1 * Debug plugin: (See output in =data/debug.txt=) * Set DEBUG = 0 ---+++ Plugin Installation Instructions ---+++ Plugin Info | Plugin Author: | Main.ColeBeck | | Plugin Version: | 27 Jul 2005 | | CPAN Dependencies: | none | | Other Dependencies: | none | | Perl Version: | 5.0 | | Plugin Home: | http://biostat3.mc.vanderbilt.edu/wiki/System/%TOPIC% | | Feedback: | none | __Related Topics:__ %TWIKIWEB%.TWikiPreferences, %TWIKIWEB%.TWikiPlugins
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r4
<
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r4 - 21 Apr 2009,
JeffreyHorner
System
Log In
Toolbox
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
Preferences
User Reference
BeginnersStartHere
TextFormattingRules
Macros
FormattedSearch
QuerySearch
DocumentGraphics
SkinBrowser
InstalledPlugins
Admin Maintenance
Reference Manual
AdminToolsCategory
InterWikis
ManagingWebs
SiteTools
DefaultPreferences
WebPreferences
Categories
Admin Documentation
Admin Tools
Developer Doc
User Documentation
User Tools
Webs
Archive
Main
Sandbox
System
Register
|
Log In
Copyright © 2013-2020 by the contributing authors. All material on this site is the property of the contributing authors.
Ideas, requests, problems regarding Vanderbilt Biostatistics Wiki?
Send feedback