You are here:
Vanderbilt Biostatistics Wiki
>
System Web
>
Macros
>
VarHISTORY
(18 Jun 2015,
ProjectContributor
)
(raw view)
E
dit
A
ttach
---+ HISTORY -- control attributes of tables and sorting of table columns The =%<nop>HISTORY{}%= macro is handled by the HistoryPlugin ---++ Parameters %STARTSECTION{"history_attributes"}% %TABLE{tablewidth="100%" sort="off" headerbg="#f5f5f5" databg="#ffffff" headercolor="#333333"}% | *Parameter* | *Description* | *Default* | | ="format"= <br /> =format="format"= | Format of one line, may include any variable which is supported by macro [[%SYSTEMWEB%.VarREVINFO][REVINFO]] | <code>r$rev - $date - $wikiusername</code> | | =topic= | Topic name, can be in =web.topic= format | current topic | | =web= | Web name | current web | | =versions= | Number or range (format: =from..to=). Examples: %BR% \ To get version 2, write: =versions="2"= %BR% \ To get version 2 to 3, write: =versions="2..3"= %BR% \ To get version 2 to the latest, write: =versions="2.."= %BR% \ To get all versions up to version 5, write: =versions="..5"= %BR% \ To get all versions up to but not including the latest, write: =versions="..-1"= %BR% \ To get the versions from 1 to 5 in reverse order, write: =versions="5..1"= \ | all versions in the order latest to first | | =header= | Text to print before the list. %BR% \ May contain the tokens =$next= and =$previous= which will be evaluated if there are newer or older revisions available for the topic that are not listed according to =versions= (or =rev1=, =rev2=, =nrev=). %BR% \ These tokens take the syntax =$next{'some text' url='url'}= (the same for =$previous=). 'some text' is the text which should be printed, 'url' is the url for the corresponding link. %BR% \ The tokens =$rev1=, =$rev2=, =$nrev= in 'text' or 'url' will be replaced by appropriate values for the next or previous block of revisions. See the attached =oopshistory.tmpl= for an example of how to use this. | =$next= | | =footer="text"= | Text to print after the list. May contain the tokens =$next= and =$previous= (see =header=) | =$previous= | Deprecated (but supported) parameters: %TABLE{tablewidth="100%" sort="off" headerbg="#f5f5f5" databg="#ffffff" headercolor="#333333"}% | *Parameter* | *Description* | *Default* | | =nrev= | Number of revisions to show. Ignored if =versions= is specified, or if both =rev1= and =rev2= are specified. | =10= | | =rev2= | Newest revision to show | =rev1+nrev= if =rev1= is specified, latest revision otherwise | | =rev1= | Oldest revision to show | =rev2-nrev= | | =reverse= |Show newest revisions first, if =on= | ="on"= | ---+++ Additional macros The following macros are expanded only if there is a corresponding =%<nop>HISTORY%= on the page. If more than one =%<nop>HISTORY%= is used on the same page, the values from the last one will be used. * =%<nop>HISTORY_REV1%=: Oldest revision from the printed history * =%<nop>HISTORY_REV2%=: Latest revision from the printed history * =%<nop>HISTORY_NREV%=: Number of the printed revisions * =%<nop>HISTORY_MAXREV%=: Latest available revision of the topic %ENDSECTION{"history_attributes"}%
E
dit
|
A
ttach
|
P
rint version
|
H
istory
: r1
|
B
acklinks
|
V
iew topic
|
Edit
w
iki text
|
M
ore topic actions
Topic revision: r1 - 18 Jun 2015,
ProjectContributor
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