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.)
 
(35 intermediate revisions by 8 users not shown)
Line 1: Line 1:
<noinclude>{{doc|0}}</noinclude>
{{Doc/subpage}}
This template is used on the fisrt of all of the talk pages.
This template is used at the top of all talk pages.
{{ModernNote|The translations will change automatically according to the language of UI.}}
 
== Usage ==
== Usage ==
{{Code|<nowiki>{{discussion page}}</nowiki>}}
{{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 ==
* {{Param|archives}} - Archives of previous discussions inside an {{Tl2|Expand}} box.


{{Doc/PreviewBlock|{{discussion page}}}}
== Included Subpages ==
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 <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.

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.