Template:Latest news item

From GTA BOOM Wiki


It is one of the most important templates of the wiki. It outputs the article thumb with a link, excerpt (if any) and authoring info.

Template parameters

ParameterDescriptionTypeStatus
NewsNews

no description

Unknownoptional
ExcerptExcerpt

A brief teaser text that accompanies the link to the article.

Unbalanced wikitextoptional
Author (main)Author

A username of a principal author of the article.

Example
User:Admin
Page nameoptional
Suppress avatarsuppress avatar

If set to "1", hides author's avatar.

Booleanoptional
Date publishedDate published

The date when the original revision of a page had been published.

Dateoptional

As the template is used heavily across the wiki, it is coded as a Lua module Module:GTAthumb." It is designed to be called from another template to style query results in a serialized manner.

However, in theory, it can be used for printing a single thumb. The simplest usage is shown below.

Example
{{Latest news item
|News=gta-sequel-confirmed-rockstar-games
}}
Result

You can play with parameters to achieve the desired view.

Example
{{Latest news item
|News=gta-sequel-confirmed-rockstar-games
|Author=AronGerencser
|suppress avatar=1
}}
Result