author

Previous page  First page  Next page

author is a string variable containing the name of the article's author. This is empty if the post is anonymous.

 

It can also be used as a boolean variable; it is true if it contains a value.

 

 

Example

 

In the example below, the text Written by none other than (author's name here). is displayed if the article is not anonymously written. If the article is anonymously written, the text Penned by someone who wishes to remain anonymous. is displayed:

 

{{if author}}

  Written by non other than {{author}}.

{{else}}

  Penned by someone who wishes to remain anonymous.

{{/if}}