Template:Discussion page/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Updated doc. Added example with no parameter. Removed unused parameters.)
 
(7 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Doc/subpage}}
{{Doc/subpage}}
This template is used at the start of all of the talk pages.
This template is used at the top of all talk pages.
{{note|The translations will change automatically according to the language of UI (if the translations exist).}}


== Usage ==
== Usage ==
{{Code|select=1|<nowiki>{{discussion page}}</nowiki>}} {{Capsule|style=2|{{discussion page}}}}
{{CodeBlock|<nowiki>{{discussion page}}
Hello, World!</nowiki>}}
<span style="font-size:200%">&nbsp;&darr;</span>
{{Capsule|style=2|{{discussion page}}
Hello, World!}}
 
 
 
 
{{CodeBlock|<nowiki>{{discussion page|archives=
* Hello,
* World!
}}
Hello, World!</nowiki>}}
<span style="font-size:200%">&nbsp;&darr;</span>
{{Capsule|style=2|{{discussion page|archives=
* Hello,
* World!
}} Hello, World!}}


== Parameters ==
== Parameters ==
* {{Param|doc}} - Removes margins for documentation.
* {{Param|archives}} - Archives of previous discussions inside an {{Tl2|Expand}} box.
* {{Param|title}} - Change the title of page on the browser tabs.
* {{Param|description}} - Replaces the description under the title with your text. Currently is an unconfirmed parameter (i.e., may be deleted in the future).
* {{Param|user}} - Change the username on the title if you want. {{Note|Only work when namespace is "{{Code|User talk}}" and without {{Code|{{param|tag=kbd|title}}}}.}}
* {{Param|bg}} - Background.
* {{Param|answer}} - The link to the page where the user was given the answer. {{Todo|Make a block of modern MediaWiki notifications.}}
* {{Param|archives}} - Archives of previous discussions. Recommended to include them inside their own {{Tl2|Expand}} box
* {{Param|collapsearchives}} - Collapse the archives by default.


== Included Subpages ==
== Included Subpages ==
Below are the subpages that are used by this template for better code readability or something else.
Below are the subpages that are used by this template for better code readability or something else.
* {{Code|[[/preload]]}} - This is the pre-load content that appears on the edit interface after the user clicks the Add Topic/Reply button.
* {{Code|[[/preload]]}} - This is the pre-load content that <s>appears</s> ''used to appear'' on the edit interface after the user clicks the Add Topic/Reply button.
* {{Code|[[/strings]]}} - This subpage includes the translatable strings that the template has used.
* {{Code|[[/strings]]}} - This subpage includes the translatable strings that the template has used.

Latest revision as of 12:28, 24 July 2024

Edit-copy.png
This is a documentation subpage for Template:Discussion page.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template is used at the top of all talk pages.

Usage

{{discussion page}} Hello, World!

 ↓

Icon-message-48px.png
This is the discussion page of Template:Discussion page/doc. To add a comment, use the Edit button near the headline of the appropriate section. To create a new section, you can use the Add topic button at the top of this page.
Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.
Hello, World!



{{discussion page|archives= * Hello, * World! }} Hello, World!

 ↓

Breathe-package-generic.png Archives
  • Hello,
  • World!
Icon-message-48px.png
This is the discussion page of Template:Discussion page/doc. To add a comment, use the Edit button near the headline of the appropriate section. To create a new section, you can use the Add topic button at the top of this page.
Comments on talk pages should be signed with "~~~~", which will be converted into your signature and a timestamp.
Hello, World!

Parameters

  • {{{archives}}} - Archives of previous discussions inside an {{Expand}} box.

Included Subpages

Below are the subpages that are used by this template for better code readability or something else.

  • /preload - This is the pre-load content that appears used to appear on the edit interface after the user clicks the Add Topic/Reply button.
  • /strings - This subpage includes the translatable strings that the template has used.