Tutorial: Using Tokens

Caffeinated Content for WordPress has a number of tokens available to use in your post and comment templates. All you have to do is insert the token in your template where you wish the content to appear.

Post Tokens

Use these in your post templates.

[title] – Post title.
[date] – Post date.
[who] – Post author.
[video] – YouTube video. Only works in YouTube mode.
[post] – Post text (Question for Yahoo Answers, description for YouTube, main content for articles and your own files).
[resourcebox] – Resource box text. Only works in Articles mode.
[image] – Random image based on keyword. Only works in Yahoo Answers mode.
[link] – Random link from the links.txt file (see link files).

[rewrite_post] – Rewritten post text using Markov chains.
[l_rewrite_post] – Subtle yet effective post rewriting using language translation techniques.
[b_rewrite_post] – A little less subtle post rewriting using language translation techniques.

[trans:ln]your text here[/trans] – Translate the text between the tags, using Google Translate, from English to a different language. Your mileage may vary due to Google’s translation limitations! Also, this WILL break HTML markup so be sure that only text is being included between the [trans] tags. Replace ln with the language of your choice:

de – German
nl – Dutch
es – Spanish
fr – French
el – Greek
it – Italian
pt – Portuguese
ru – Russian

Experimental languages (relatively untested):

sv – Swedish
ro – Romanian
bg – Bulgarian
pl – Polish
no – Norwegian
fi – Finnish
hi – Hindi
cs – Czech
hr – Croatian
ja – Japanese
ko – Korean
cn – Chinese (Simplified)
tw – Chinese (Traditional)

Comment Tokens

Use these in your comment templates.

[adate] – Answer date.
[answerer] – Answerer name.
[answer] – Answer text.
[link] – Random link from the links.txt file.

[rewrite_answer] – Rewritten answer text using Markov chains.

[trans:ln]your text here[/trans] – Translate the text between the tags, using Google Translate, from English to a different language. (Usage and available languages as in post tokens above.)

Tags: ,

Leave a Reply