Jump to content

Template:Totd format/doc

From Wikipedia, the free encyclopedia

This template is intended for formatting the 366 daily Wikipedia:Tip of the day pages, e.g. Wikipedia:Tip of the day/January 1.

Usage

[edit]

Normal parameters:

{{totd format
|title =
|display = {{{display|}}}
|date =
|tip =
|more =
}}

title, date and tip are mandatory.

A pipe in the value of |tip = may be interpreted as ending the parameter in some situations. This can be avoided by replacing the pipe with {{!}}.

|display = is an optional parameter to only return a given parameter, e.g. |display = title. The tip page for a day should always pass on the parameter with |display = {{{display|}}}. This means {{Wikipedia:Tip of the day/January 1|display=title}} will only return the title of Wikipedia:Tip of the day/January 1: "Where to begin?"

Optional parameters

[edit]

|more = is a bulleted list of Read more links. The bullets are not rendered but each link should be on its own line with an asterisk in front. The whole value is bolded by default.

|more heading = changes the default "Read more" heading, e.g. |more heading=See also

|more unbold = yes (or any other value) removes the default bolding from the more parameter so a tip can make its own formatting, for example bolding links but not other text.

Small test case

[edit]
{{totd format
|title = This is the tip title
|display = {{{display|}}}
|date = January 1
|tip =
This is the tip. It can include any [[Help:Wiki markup|wiki markup]].

|more =
* [[Wikipedia:Tip of the day]]
}}

The above produces:

This is the tip title

This is the tip. It can include any wiki markup.

With |display = title the above produces:

This is the tip title


"Where to begin?"

On Wikipedia, you can look things up by searching or browsing... If you know what topic you want, type it into Wikipedia's search box and press Enter

If you would like to explore Wikipedia's coverage, overall, or for a particular subject, browse these pages:

If you would like to edit Wikipedia, just click the [Edit] tab (to use VisualEditor which is a WYSIWYG editor) or click the [Edit source] tab to use the Wikipedia text editor. Both tabs are at the top of the desired page or page section.

To create a new article, type the name of the topic in the search box and press Enter. If a page doesn't already exist with that name, Wikipedia will let you create one. Follow the instructions on the screen. As an alternative, the Wikipedia Article Wizard helps you through the process of submitting a new article to Wikipedia. Redlinks are another way to create new articles. Mouse click on the red link and Wikipedia will let you create a new article with that name.