Template:Talk

From Gentoo Wiki
Jump to: navigation, search
[edit

Documentation

Note
This page is a template. It contains some standardized, often used text, which can be transcluded inside other pages.

As this template is widely used in our wiki, it may be protected in which case only staff members can change it. Use the discussion page to propose enhancements or fixes, or to voice your opinion.

This template is intended to simplify the marking of talk-page discussions as "open" or "done" by removing the need to wrap {{InfoBox stack}} around a {{InfoBox talk open}} or {{InfoBox talk done}} template.

It should not be necessary to display more than one infobox template in a stack on a (non-userspace) talk page, but if that is desired you will have to use {{InfoBox stack}} instead of this template.

Parameters

Parameter name Required? Default value Description
Anonymous parameter 1 No open status of the discussion, either open or done
date No (n/a) free-form date to be displayed in the message (after the phrase "as of")

Usage

See the template's testcases:

Correct

No parameter (equivalent to using open)
Wiki code
{{Talk}}
Main version
Talk status
This discussion is still ongoing.
Sandbox version


Anonymous parameter with value open
Wiki code
{{Talk|open}}
Main version
Talk status
This discussion is still ongoing.
Sandbox version


Anonymous parameter with value done
Wiki code
{{Talk|done}}
Main version
Talk status
This discussion is done.
Sandbox version


↑ Note: The value closed can also be used instead of done, since some users of this template may find it more natural to use that word as the opposite of open.


Parameter date
Wiki code
{{Talk|date=2017-01-11}}
Main version
Talk status
This discussion is still ongoing as of 2017-01-11.
Sandbox version


Anonymous parameter open + named parameter date
Wiki code
{{Talk|open|date=2017-01-11}}
Main version
Talk status
This discussion is still ongoing as of 2017-01-11.
Sandbox version


Anonymous parameter done + named parameter date
Wiki code
{{Talk|done|date=11 January 2017}}
Main version
Talk status
This discussion is done as of 11 January 2017.
Sandbox version


Incorrect

Anonymous parameter with arbitrary value (shows redlink)
Wiki code
{{Talk|foo}}
Main version
Sandbox version


See also

Note
The above documentation is transcluded from Template:Talk/doc. (edit | history)
Editors can experiment in this template's sandbox (edit) and testcases (edit) pages.
Please add categories and interwikis to the /doc subpage. (See the subpages of this template.)