Template:Discussion page: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
mNo edit summary
(Testing completed, changes reverted until a non-copy of Discord is finalized)
Line 1: Line 1:
{{Documentation}}
{{Notify
 
| text = <div style="font-weight:600; font-size:1.25; color:rgb(255 255 255 / 90%)"> Archived template </div>
[[Category:Templates]]
This template has been placed in the archive until better times. It may still be useful to standardize the discussion pages and reduce the number of templates used in them.
<includeonly>
}}
 
<includeonly><onlyinclude>{{#ifeq:{{FULLPAGENAME}}|Template:Discussion page||{{DISPLAYTITLE:<span style=display:none>{{{title|{{#ifeq:{{NAMESPACE}}|User talk|{{Discussion page/strings|UserTalk}}{{{user|{{PAGENAME}}}}}|{{FULLPAGENAME}}}}}}}</span>|noerror}}}}<div><!--
<onlyinclude><div style="overflow:hidden; border:1px solid rgb(255 255 255 / 5%); border-radius:8px">
-->{{#if:{{{archives|}}}|<div style="float:right;padding:10px;color:white;text-align:right;width:50%;max-height:700px;overflow:auto><span style=color:rgb(255,255,255);font-size:25px;font-weight:bold;>Archives</span><br>{{expand|startcollapsed={{#switch:{{{collapsearchives|}}}|1|true=1|false|0=0|#default=1}}|noborder=1|style=text-align:left;float:right;|1={{{archives}}}}}</div>|}}<!--
<div style="display:flex; flex-direction:column; gap:.6em; background-color:rgb(44 44 44); padding:1.25em 1.25em .5em">
--><div style="display:flex; flex-direction:column; gap:12px; float:left width:{{#if:{{{archives|}}}|50|100}}%; background:{{{background|linear-gradient(180deg, #262626 30%, transparent 0)}}}; 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="font-size:1.65em; font-weight:900; color:rgb(255 255 255 / 90%)"> Welcome to {{FULLPAGENAME}} </div> <!--
<div style="{{text-dir|rtl=flex-direction:row-reverse;}} display:flex; align-items:center; gap:14px;">
--> <span> {{{desc|{{{description|{{Discussion page/strings|Desc}}}}}}}} </span>
<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:hsl(0 0% 100% / 15%)">[[File:Icon-message-48px.png|link=]]</div>
<div {{text-dir|rtl=align="right"}}>
<div style="line-height:1.2em; color:#FFF; font-size:30px">'''{{Discussion page/strings|Welcome}}'''</div>
<div style="font-size:14px">{{{description|{{Discussion page/strings|Desc}}}}}</div>
</div>
</div>
</div>
 
<div style="{{text-dir|rtl=flex-direction:row-reverse;}} display:flex; font-size:14px; gap:8px"><!--
<div style="display:flex; gap:1em; background-color:rgb(44 44 44); border-bottom:1px solid rgb(255 255 255 / 8%); user-select:none; font-size:1.1em; color:rgb(255 255 255 / 80%); padding:0 .5em;"> <!--
-->[[Help:Discussion|<font style="display:flex; align-items:center; user-select:none; background-color:hsl(0 0% 100% / 4%); border-radius:4px; color:lightgrey; padding:6px 8px">{{Discussion page/strings|Doc}}</font>]] <!--
--> <div class="{{#if:{{{archives|}}}|mw-customtoggle-DPD mw-customtoggle-DPA|}}" style="display:inherit; justify-content:center; position:relative; padding:.7em .8em"> Discussions <div {{#if:{{{archives|}}}|id="mw-customcollapsible-DPD" class="mw-collapsible"|}} style="position:absolute; bottom:0; width:90%; height:.2em; background-color:rgb(230 130 100)"></div> </div> {{#if:{{{archives|}}}|<!--
--><span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=new&preload=Template:Discussion_page/preload}} <font style="display:flex; align-items:center; user-select:none; padding:6px 8px; border-radius:4px; background:hsl(0 0% 100% / 4%); color:lightgrey">{{Discussion page/strings|AddTopic}}</font>]</span>
--> <div class="mw-customtoggle-DPA mw-customtoggle-DPD" style="display:inherit; justify-content:center; position:relative; padding:.7em .8em"> Archives <div id="mw-customcollapsible-DPA" class="mw-collapsible mw-collapsed" style="display:none; position:absolute; bottom:0; width:90%; height:.2em; background-color:rgb(230 130 100)"></div> </div>|}}
</div>
</div>
 
{{#if:{{{answer|}}}
<div style="background-color:rgb(38 38 38 / 10%); overflow:hidden; position:relative">
|<div class="plainlinks" style="{{text-dir|rtl=flex-direction:row-reverse;}} display:flex; gap:4px; align-items:center; background-color:hsl(220 100% 50% / 4%); border:2px solid hsl(220 100% 60%); border-radius:4px; padding:6px 8px">{{Discussion page/strings|NewAnswer}}[[{{{answer}}}|<font style="color:#FFF">{{{answer}}}</font>]]</div>
<div style="width:100%; background-color:rgb(0 0 0 / 8%); border-bottom:1px solid rgb(0 0 0 / 12%)">
|}}
<div style="{{text-dir|rtl=flex-direction:row-reverse;}} display:flex; font-size:14px; gap:.5em; padding:.5em"><!--
</div></div></onlyinclude></includeonly>
--> [[Help:Discussion|<span style="display:flex; align-items:center; user-select:none; background-image:linear-gradient(90deg, #3c4249, #36393d); border-radius:4px; color:lightgrey; padding:6px 8px">{{Discussion page/strings|Doc}}</span>]] <!--
--> <span class="plainlinks">[{{fullurl:{{FULLPAGENAME}}|action=edit&section=new&preload=Template:Discussion_page/preload}} <span style="display:flex; align-items:center; user-select:none; padding:6px 8px; border-radius:4px; background-image:linear-gradient(90deg, #384e65, #2b4259); color:lightgrey">{{Discussion page/strings|AddTopic}}</span>]</span>
</div>
</div>
<div style="width:100%; box-sizing: border-box; padding:.5em 1em 1em 1em"> {{#if:{{{archives|}}}|<!--
--> <div id="mw-customcollapsible-DPA" class="mw-collapsible mw-collapsed" style="display:none">
{{{archives|}}}
</div>|}} <!--
 
--> <div {{#if:{{{archives|}}}|id="mw-customcollapsible-DPD" class="mw-collapsible"|}} style="flex:auto">
<div> <!--
--> {{#if:{{{answer|}}}
| <div class="plainlinks" style="{{text-dir|rtl=flex-direction:row-reverse;}} display:flex; gap:4px; align-items:center; background-color:hsl(220 100% 50% / 4%); border:2px solid hsl(220 100% 60%); border-radius:4px; padding:6px 8px">{{Discussion page/strings|NewAnswer}}[[{{{answer}}}|<font style="color:#FFF">{{{answer}}}</font>]]</div>
|}}</onlyinclude>
 
</includeonly>

Revision as of 07:33, 17 July 2024

Archived template
This template has been placed in the archive until better times. It may still be useful to standardize the discussion pages and reduce the number of templates used in them.