template variable breakout

This commit is contained in:
Colin Kuskie 2006-06-06 22:48:10 +00:00
parent 1a3f8caac5
commit 00293b3388
2 changed files with 362 additions and 189 deletions

View file

@ -6,6 +6,144 @@ our $HELP = {
body => 'thread template body',
fields => [
],
variables => [
{
'name' => 'karma.transfer.form'
},
{
'name' => 'karma'
},
{
'name' => 'karmaScale'
},
{
'name' => 'karmaRank'
},
{
'name' => 'thumbsUp.icon.url'
},
{
'name' => 'thumbsDown.icon.url'
},
{
'name' => 'user.isVisitor'
},
{
'name' => 'user.isModerator'
},
{
'name' => 'user.canPost'
},
{
'name' => 'user.canReply'
},
{
'name' => 'repliesAllowed'
},
{
'name' => 'userProfile.url'
},
{
'name' => 'layout.nested.url'
},
{
'name' => 'layout.flat.url'
},
{
'name' => 'layout.threaded.url'
},
{
'name' => 'layout.isFlat'
},
{
'name' => 'layout.isNested'
},
{
'name' => 'layout.isThreaded'
},
{
'name' => 'user.isSubscribed'
},
{
'name' => 'subscribe.url'
},
{
'name' => 'unsubscribe.url'
},
{
'name' => 'isArchived'
},
{
'name' => 'archive.url'
},
{
'name' => 'unarchive.url'
},
{
'name' => 'isSticky'
},
{
'name' => 'stick.url'
},
{
'name' => 'unstick.url'
},
{
'name' => 'isLocked'
},
{
'name' => 'lock.url'
},
{
'name' => 'unlock.url'
},
{
'name' => 'post_loop',
'variables' => [
{
'name' => 'isCurrent'
},
{
'name' => 'isThreadRoot'
},
{
'name' => 'depth'
},
{
'name' => 'depthX10'
},
{
'name' => 'indent_loop',
'variables' => [
{
'name' => 'depth'
}
]
}
]
},
{
'name' => 'add.url'
},
{
'name' => 'previous.url'
},
{
'name' => 'next.url'
},
{
'name' => 'search.url'
},
{
'name' => 'collaboration.url'
},
{
'name' => 'collaboration.title'
},
{
'name' => 'collaboration.description'
}
],
related => [
{
tag => 'template language',

View file

@ -7,199 +7,234 @@ our $I18N = {
lastUpdated => 1111253044,
},
'karma.transfer.form' => {
message => q|A variable that displays a small form that allows a user to transfer an amount of karma from their account to the thread.|,
lastUpdated => 1149633755,
},
'karma' => {
message => q|Indicates the amount of karma this thread has.|,
lastUpdated => 1149633755,
},
'karmaScale' => {
message => q|A weighting factor for difficulty, complexity, or handicap in contests.|,
lastUpdated => 1149633755,
},
'karmaRank' => {
message => q|This is karma divided by karma scale.|,
lastUpdated => 1149633755,
},
'thumbsUp.icon.url' => {
message => q|The URL to the thumbs up icon.|,
lastUpdated => 1149633755,
},
'thumbsDown.icon.url' => {
message => q|The URL to the thumbs down icon.|,
lastUpdated => 1149633755,
},
'user.isVisitor' => {
message => q|A conditional indicating that the current user is a Visitor.|,
lastUpdated => 1149633755,
},
'user.isModerator' => {
message => q|A conditional indicating that the current user is a Moderator.|,
lastUpdated => 1149633755,
},
'user.canPost' => {
message => q|A conditional indicating that the current user can add posts to this thread.|,
lastUpdated => 1149633755,
},
'user.canReply' => {
message => q|A conditional indicating that the current user can reply to posts in this thread.|,
lastUpdated => 1149633755,
},
'repliesAllowed' => {
message => q|A conditional indicating that replies are allowed in this thread.|,
lastUpdated => 1149633755,
},
'userProfile.url' => {
message => q|A URL to the profile of the owner of the Post.|,
lastUpdated => 1149633755,
},
'layout.nested.url' => {
message => q|A URL to change the layout to nest posts. This lists all posts with indentation to show which posts
are replies to posts and which posts are new topics in a thread.|,
lastUpdated => 1149633755,
},
'layout.flat.url' => {
message => q|A URL to change the layout to flatten posts. This lists all posts in the thread in order
of date submitted.|,
lastUpdated => 1149633755,
},
'layout.threaded.url' => {
message => q|A URL to change the layout to threaded posts. This is the default setting. Posts will be shown one at a time.|,
lastUpdated => 1149633755,
},
'layout.isFlat' => {
message => q|A conditional indicating if the current layout is flat.|,
lastUpdated => 1149633755,
},
'layout.isNested' => {
message => q|A conditional indicating if the current layout is nested.|,
lastUpdated => 1149633755,
},
'layout.isThreaded' => {
message => q|A conditional indicating if the current layout is threaded.|,
lastUpdated => 1149633755,
},
'user.isSubscribed' => {
message => q|A conditional that is true if the current user is subscribed to the thread.|,
lastUpdated => 1149633755,
},
'subscribe.url' => {
message => q|A URL to subscribe the current user to the thread.|,
lastUpdated => 1149633755,
},
'unsubscribe.url' => {
message => q|A URL to subscribe the current user from the thread.|,
lastUpdated => 1149633755,
},
'isArchived' => {
message => q|A conditional indicating if the current thread is archived.|,
lastUpdated => 1149633755,
},
'archive.url' => {
message => q|The URL to archive this thread.|,
lastUpdated => 1149633755,
},
'unarchive.url' => {
message => q|The URL to unarchive this thread.|,
lastUpdated => 1149633755,
},
'isSticky' => {
message => q|A conditional indicating if the current thread is sticky.|,
lastUpdated => 1149633755,
},
'stick.url' => {
message => q|The URL to make this thread sticky.|,
lastUpdated => 1149633755,
},
'unstick.url' => {
message => q|The URL to unstick this thread.|,
lastUpdated => 1149633755,
},
'isLocked' => {
message => q|A conditional indicating if the current thread is locked.|,
lastUpdated => 1149633755,
},
'lock.url' => {
message => q|The URL to lock this thread.|,
lastUpdated => 1149633755,
},
'unlock.url' => {
message => q|The URL to unlock this thread.|,
lastUpdated => 1149633755,
},
'post_loop' => {
message => q|A loop containing all the posts for this thread. Each post in the loop
also contains a set of its own Post Template variables.|,
lastUpdated => 1149633755,
},
'isCurrent' => {
message => q|A conditional indicating that this Post is the one currently being viewed in the Thread.|,
lastUpdated => 1149633755,
},
'isThreadRoot' => {
message => q|A conditional indicating that this Post is the start of the Thread.|,
lastUpdated => 1149633755,
},
'depth' => {
message => q|How far away this post is from the originating post (<b>ThreadRoot</b>).|,
lastUpdated => 1149633755,
},
'depthX10' => {
message => q|The <b>depth</b> times 10.|,
lastUpdated => 1149633755,
},
'indent_loop' => {
message => q|A loop that runs <b>depth</b> times.|,
lastUpdated => 1149633755,
},
'depth' => {
message => q|A number indicating the loop count of the <b>indent_loop</b>.|,
lastUpdated => 1149633755,
},
'add.url' => {
message => q|The URL to add a new thread.|,
lastUpdated => 1149633755,
},
'previous.url' => {
message => q|The URL to take you to the previous thread.|,
lastUpdated => 1149633755,
},
'next.url' => {
message => q|The URL to take you to the next thread.|,
lastUpdated => 1149633755,
},
'search.url' => {
message => q|The URL to take you to a form to search the forum.|,
lastUpdated => 1149633755,
},
'collaboration.url' => {
message => q|The URL to take you back to the collaboration system that this post is a part of.|,
lastUpdated => 1149633755,
},
'collaboration.title' => {
message => q|The title of the collaboration system that this post is a part of.|,
lastUpdated => 1149633755,
},
'collaboration.description' => {
message => q|The description of the collaboration system that this post is a part of.|,
lastUpdated => 1149633755,
},
'thread template body' => {
message => q|<p>The variables below are available in the Thread template. In addition, all variables from the Post Template can be used. Labels for URLs for actions like <b>unlock.url</b>, <b>stick.url</b>, etc. are provided by the Collaboration Labels. The Pagination Template variables are also available to display multiple pages of posts and threads.
</p>
<p><b>karma.transfer.form</b><br />
A variable that displays a small form that allows a user to transfer an amount of karma from their account to the thread.
</p>
<p><b>karma</b><br />
Indicates the amount of karma this thread has.
</p>
<p><b>karmaScale</b><br />
A weighting factor for difficulty, complexity, or handicap in contests.
</p>
<p><b>karmaRank</b><br />
This is karma divided by karma scale.
</p>
<p><b>thumbsUp.icon.url</b><br />
The URL to the thumbs up icon.
</p>
<p><b>thumbsDown.icon.url</b><br />
The URL to the thumbs down icon.
</p>
<p><b>user.isVisitor</b><br />
A conditional indicating that the current user is a Visitor.
</p>
<p><b>user.isModerator</b><br />
A conditional indicating that the current user is a Moderator.
</p>
<p><b>user.canPost</b><br />
A conditional indicating that the current user can add posts to this thread.
</p>
<p><b>user.canReply</b><br />
A conditional indicating that the current user can reply to posts in this thread.
</p>
<p><b>repliesAllowed</b><br />
A conditional indicating that replies are allowed in this thread.
</p>
<p><b>userProfile.url</b><br />
A URL to the profile of the owner of the Post.
</p>
<p><b>layout.nested.url</b><br />
A URL to change the layout to nest posts. This lists all posts with indentation to show which posts
are replies to posts and which posts are new topics in a thread.
</p>
<p><b>layout.flat.url</b><br />
A URL to change the layout to flatten posts. This lists all posts in the thread in order
of date submitted.
</p>
<p><b>layout.threaded.url</b><br />
A URL to change the layout to threaded posts. This is the default setting. Posts will be shown one at a time.
</p>
<p><b>layout.isFlat</b><br />
A conditional indicating if the current layout is flat.
</p>
<p><b>layout.isNested</b><br />
A conditional indicating if the current layout is nested.
</p>
<p><b>layout.isThreaded</b><br />
A conditional indicating if the current layout is threaded.
</p>
<p><b>user.isSubscribed</b><br />
A conditional that is true if the current user is subscribed to the thread.
</p>
<p><b>subscribe.url</b><br />
A URL to subscribe the current user to the thread.
</p>
<p><b>unsubscribe.url</b><br />
A URL to subscribe the current user from the thread.
</p>
<p><b>isArchived</b><br />
A conditional indicating if the current thread is archived.
</p>
<p><b>archive.url</b><br />
The URL to archive this thread.
</p>
<p><b>unarchive.url</b><br />
The URL to unarchive this thread.
</p>
<p><b>isSticky</b><br />
A conditional indicating if the current thread is sticky.
</p>
<p><b>stick.url</b><br />
The URL to make this thread sticky.
</p>
<p><b>unstick.url</b><br />
The URL to unstick this thread.
</p>
<p><b>isLocked</b><br />
A conditional indicating if the current thread is locked.
</p>
<p><b>lock.url</b><br />
The URL to lock this thread.
</p>
<p><b>unlock.url</b><br />
The URL to unlock this thread.
</p>
<p><b>post_loop</b><br />
A loop containing all the posts for this thread. Each post in the loop
also contains a set of its own Post Template variables.
</p>
<div class="helpIndent">
<p><b>isCurrent</b><br />
A conditional indicating that this Post is the one currently being viewed in the Thread.
</p>
<p><b>isThreadRoot</b><br />
A conditional indicating that this Post is the start of the Thread.
</p>
<p><b>depth</b><br />
How far away this post is from the originating post (<b>ThreadRoot</b>).
</p>
<p><b>depthX10</b><br />
The <b>depth</b> times 10.
</p>
<p><b>indent_loop</b><br />
A loop that runs <b>depth</b> times.
</p>
<div class="helpIndent">
<p><b>depth</b><br />
A number indicating the loop count of the <b>indent_loop</b>.
</p>
</div>
</div>
<p><b>add.url</b><br />
The URL to add a new thread.
</p>
<p><b>previous.url</b><br />
The URL to take you to the previous thread.
</p>
<p><b>next.url</b><br />
The URL to take you to the next thread.
</p>
<p><b>search.url</b><br />
The URL to take you to a form to search the forum.
</p>
<p><b>collaboration.url</b><br />
The URL to take you back to the collaboration system that this post is a part of.
</p>
<p><b>collaboration.title</b><br />
The title of the collaboration system that this post is a part of.
</p>
<p><b>collaboration.description</b><br />
The description of the collaboration system that this post is a part of.
</p>
|,
lastUpdated => 1145111313,
lastUpdated => 1149633782,
},
'assetName' => {