Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
[wiki] wiki template: "Txp current version"
Txp current version is a wiki template. It functions like a Txp form (or a PHP include) in that wherever the template’s tag is used, the content of the template will be output in that location. In this case, the template content is simply the version number of the current Txp release.
The tag to use is {{Txp current version}}
, and it’s used inline, naturally. When 4.0.7 comes out, someone goes to this template page, changes the “6” to a “7”, saves, and Shazam ! (said with deep, echoing voice under thunder and lightning) … all reference to 4.0.6 is changed to 4.0.7.
Two notes:
- I have changed a few instances of “4.0.6” with the tag, but not all, so feel free to fill in the blanks.
- There’s a lot of cases where the version number was used in
<pre>
, for example to show the path of svn branches and so forth. You can’t use a wiki template tag inside of an HTMLpre
, so in the cases where the version number was used in command-line or code reference, you have to use<code>
as the wrapper. You can use a straight<code>...</code>
pair, or if it’s a command-line example you can use<code class="c-line">...</code>
, which looks like this.
Now you know. (I’ll get around to adding this example in the help:Templates doc too, at some point.)
Last edited by Destry (2008-11-03 12:16:20)
Offline
Re: [wiki] wiki template: "Txp current version"
Thanks Destry, i am newbish to wiki land, and those info are welcome
Offline
Re: [wiki] wiki template: "Txp current version"
I see the wiki gaining shape every day, with great pleasure. Thanks!
Offline