Template:Discussion page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
No edit summary
Line 1: Line 1:
<onlyinclude><includeonly>{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page||{{DISPLAYTITLE:<span style=display:none>{{{title|{{#ifeq:{{NAMESPACE}}|User talk|{{Autolang|User talk:|zh=用户谈话:}}{{{user|{{PAGENAME}}}}}|{{FULLPAGENAME}}}}}}}</span>|noerror}}}}<!--
<includeonly><onlyinclude>{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page||{{DISPLAYTITLE:<span style=display:none>{{{title|{{#ifeq:{{NAMESPACE}}|User talk|{{autolang|User talk:|zh=用户谈话:}}{{{user|{{PAGENAME}}}}}|{{FULLPAGENAME}}}}}}}</span>|noerror}}}}<!--
--><div style="width:100%; background-color:{{{bg|#262626}}}; position:relative; z-index:80; margin-top:{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page|0|calc(-27px - {{{up|{{#ifeq:{{#titleparts:{{FULLPAGENAME}}|1|1}}|{{#titleparts:{{FULLPAGENAME}}|1|-1}}|0|20}}}}}px)}}; margin-bottom:{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page|0|26px}}">
--><div style="display:flex; flex-direction:column; gap:12px; width:100%; background-color:{{{bg|#262626}}}; position:relative; z-index:80; margin-top:{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page|0|calc(-27px - {{{up|{{#ifeq:{{ROOTPAGENAME}}|{{SUBPAGENAME}}|0|20}}}}}px)}}; margin-bottom:{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page|0|26px}}">
<div style="display:flex; align-items:center">
<div style="display:flex; {{Dir|rtl=flex-direction:row-reverse;}} align-items:center; gap:14px;">
<div style="display:flex; align-items:center; justify-content:center; user-select:none; min-width:68px; height:68px; border-radius:16px; background-color:rgba(255,255,255,.15);">[[File:Icon-message.png|link=|48px]]</div>
<div style="display:flex; align-items:center; justify-content:center; user-select:none; pointer-events:none; min-width:68px; min-height:68px; border-radius:16px; background-color:rgba(255,255,255,.15)">[[File:Icon-message-48px.png|link=]]</div>
<div style="margin-left:14px">
<div {{Dir|rtl=align="right"}}>
<div style="margin-top:-4px; line-height:38px; color:#FFFFFF; font-size:30px; font-weight:bold">{{Autolang|Welcome to {{FULLPAGENAME}}!|zh=欢迎来到 {{FULLPAGENAME}}!|ru=Добро пожаловать на страницу {{FULLPAGENAME}}!}}</div>
<div style="line-height:1.2em; color:#FFF; font-size:30px">'''{{autolang|Welcome to {{FULLPAGENAME}}!|zh=欢迎来到 {{FULLPAGENAME}}!|ru=Добро пожаловать на страницу {{FULLPAGENAME}}!}}'''</div>
<div style="font-size:14px">{{{description|{{Autolang|This is the start of the {{PAGENAME}} discussion page.|zh=这是 {{PAGENAME}} 讨论页的开始。|ru=Это начало страницы обсуждения {{PAGENAME}}.}}}}}</div>
<div style="font-size:14px">{{{description|{{autolang|This is the start of the {{PAGENAME}} discussion page.|zh=这是 {{PAGENAME}} 讨论页的开始。|ru=Это начало страницы обсуждения {{PAGENAME}}.}}}}}</div>
</div>
</div>
</div>
</div>
<div style="display:flex; user-select:none; margin-top:12px; line-height:30px; font-size:14px"><!--
<div style="display:flex; font-size:14px; gap:8px; {{Dir|rtl=flex-direction:row-reverse;}}"><!--
--><span style="display:flex; align-items:center; padding:0 8px 0 8px; border-radius:4px; background:rgba(255,255,255,.03)"><span class=plainlinks>[[Help:Discussion|{{Autolang|Documentation|zh=文档|ru=Справочник}}]]</span></span> <!--
-->[[Help:Discussion|<font style="display:flex; align-items:center; user-select:none; padding:6px 8px; border-radius:4px; background:rgba(255,255,255,.04); color:lightgrey">{{autolang|Documentation|zh=文档|ru=Справочник}}</font>]] <!--
--><span style="display:flex; align-items:center; margin-left:6px; padding:0 8px 0 8px; border-radius:4px; background:rgba(255,255,255,.03)"><span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=new}} {{Autolang|Add Topic|zh=添加新话题|ru=Добавить тему}}]</span></span>
--><span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=new}} <font style="display:flex; align-items:center; user-select:none; padding:6px 8px; border-radius:4px; background:rgba(255,255,255,.04); color:lightgrey">{{autolang|Add Topic|zh=添加新话题|ru=Добавить тему}}</font>]</span>
</div>
</div>
</div></includeonly></onlyinclude>{{doc}}
</div></onlyinclude></includeonly>{{doc}}

Revision as of 01:41, 19 February 2023

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history
Icon-translate.png
This template uses a strings subpage
Please follow the format on this subpage(s) to add translations.
Number of strings:7
Approximate status of translation:English (en) 100% Esperanto (eo) 85.71% Suomi (fi) 100% Русский (ru) 100% Tiếng Việt (vi) 85.71% 中文 (zh) 85.71% 

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

Usage

{{discussion page}} Hello, World!

 ↓

Icon-message-48px.png
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
[[Help:Discussion|
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

]] [https://developer.valvesoftware.com/w/index.php?title=Template:Discussion_page&action=edit&section=new

Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

]

Hello, World!



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

 ↓

Icon-message-48px.png
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}
[[Help:Discussion|
Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

]] [https://developer.valvesoftware.com/w/index.php?title=Template:Discussion_page&action=edit&section=new

Red x.png
This template (and its redirect) is Wikipedia icon Deprecated. Its use is not recommended and its functionality may be compromised.
You can help our editors by replacing or deleting this template on the Pages that use this template. Once no more pages use this template, it should be Marked for deletion.

Additional notes:
Use #switch parser function instead. Example
{{#switch: {{language}}
| #default = English
| ja = 日本語
| zh-tw = 中文(台灣)
‎}}

]

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.