Author: PeterThoeny
Date: 2010-06-30 23:17:59 -0500 (Wed, 30 Jun 2010)
New Revision: 19187
Trac url: http://develop.twiki.org/trac/changeset/19187
Added:
twiki/trunk/core/data/TWiki/VarPARENTTOPIC.txt
Log:
Item6511: Adding documentation for PARENTTOPIC variable
Added: twiki/trunk/core/data/TWiki/VarPARENTTOPIC.txt
===================================================================
--- twiki/trunk/core/data/TWiki/VarPARENTTOPIC.txt (rev 0)
+++ twiki/trunk/core/data/TWiki/VarPARENTTOPIC.txt 2010-07-01 04:17:59 UTC (rev 19187)
@@ -0,0 +1,11 @@
+%META:TOPICINFO{author="TWikiContributor" date="1277957247" format="1.1" version="$Rev$"}%
+%META:TOPICPARENT{name="TWikiVariables"}%
+#VarPARENTTOPIC
+---+++ PARENTTOPIC -- parent of current topic
+ * Syntax: =%<nop>PARENTTOPIC%= or =%<nop>PARENTTOPIC{ format="..." topic="..." }%=
+ * Expands to: =%PARENTTOPIC%=, renders as [[%PARENTTOPIC%]]
+ * Parameters:
+ | *Item* | *Description* | *Default* |
+ | =format="..."= | Format string used to display parent topic, where =$web= expands to the web name, and =$topic= expands to the topic name. Additional [[FormatTokens][formatting tokens]] can be used. | ="$topic"= %BR% (topic name) |
+ | =topic="..."= | Get parent of "Topic" or "Web.Topic" | ="%<nop>WEB%.%<nop>TOPIC%"= %BR%(current topic) |
+ * Related: [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarMETA][META]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarMETASEARCH][METASEARCH]], [[%IF{"'%INCLUDINGTOPIC%'='TWikiVariables'" then="#"}%VarTOPIC][TOPIC]]
|