Difference between revisions of "Template:Discussion close"

From Team Fortress Wiki
Jump to: navigation, search
(Created page with '{{#switch:{{{1|}}} | end | finish | stop = {{hatnote|1=The above discussion is preserved as an archive. <span style="color:red">'''Please do not modify it.'''</span> Subseq…')
 
m
 
(12 intermediate revisions by 5 users not shown)
Line 1: Line 1:
 
{{#switch:{{{1|}}}
 
{{#switch:{{{1|}}}
 
   | end
 
   | end
 +
  | footer
 +
  | bottom
 
   | finish
 
   | finish
   | stop = {{hatnote|1=The above discussion is preserved as an archive. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.}}<!-- from Template:discussion bottom --></div>
+
   | stop = {{Hatnote|1={{{text|The preceding discussion is preserved as an archive. <span style="color:red">'''Please do not modify it.'''</span>{{#if:{{{elsewhere|}}}||&nbsp;Subsequent comments should be made in a new section.}}}}}}}</div>
 +
  | begin
 
   | top
 
   | top
  | begin
+
   | header
   | header  
+
   | #default = <div class="boilerplate metadata discussion-archived" style="background-color: #F5F2EB; margin: 2em 0 0 0; padding: 0.5em 10px; border: 1px solid #AAAAAA;">{{Hatnote|1={{{text|The following discussion is preserved as an archive. <span style="color:red">'''Please do not modify it.'''</span>{{#if:{{{elsewhere|}}}||&nbsp;Subsequent comments should be made in a new section.}}}}}}}
   | #default = <div class="boilerplate metadata discussion-archived" style="background-color: #f5f3ef; margin: 2em 0 0 0; padding: 0 10px 0 10px; border: 1px solid #AAAAAA;">{{hatnote|1=The following discussion is closed. <span style="color:red">'''Please do not modify it.'''</span> Subsequent comments should be made in a new section.}}<!-- from Template:discussion top-->
+
   }}<noinclude></div>
   }}<noinclude>
+
{{Doc begin}}
</div>{{doc begin}}
 
 
== Usage ==
 
== Usage ==
 
Use this template on talk archives to indicate that the discussion is old and should not be modified.
 
Use this template on talk archives to indicate that the discussion is old and should not be modified.
  
* {{tlx|Discussion header|2=top}} generates
+
* {{tlx|Discussion close|2=begin}} will place a purple box and place a warning about the below discussion being outdated.
{{discussion header|top}}
+
* {{tlx|Discussion close|2=end}} will close the purple box and place an additional warning.
 +
* {{tlx|Discussion close|2=elsewhere=no}} will hide the text "Subsequent comments should be made in a new section".
 +
* {{tlx|Discussion close|2=text=Your text here}} will let the template show other contents you may want, instead of the default warning text.
 +
 
 +
=== Example ===
 +
<pre><nowiki>
 +
{{Discussion close|begin}}
 +
== Discussion ==
 +
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan imperdiet scelerisque. Pellentesque quis scelerisque neque. Curabitur scelerisque imperdiet ligula, ac rutrum quam gravida vel. Aliquam at mauris sed metus ultricies adipiscing vel sed odio. Duis eget sem mi, sed accumsan nisl. Sed et urna risus, in faucibus nisl.
 +
:In semper auctor neque a porta. Quisque imperdiet orci non velit mollis id pharetra lacus suscipit. Ut semper vestibulum velit, a malesuada diam volutpat fringilla. Donec lobortis fermentum fermentum. Aliquam fringilla eros quis eros rhoncus nec vehicula nunc varius.
 +
::Suspendisse potenti. Nam augue massa, congue eu vestibulum at, sollicitudin eget diam. Aliquam venenatis tincidunt arcu, sed vehicula urna tempor eu. Quisque consequat lobortis lectus, sed pretium sem mattis ut. Duis ullamcorper dignissim ante a ultricies. In non tellus et risus posuere sodales. Nunc eleifend suscipit velit, convallis lobortis enim auctor id.
 +
{{Discussion close|end}}
 +
</nowiki></pre>
 +
 
 +
* The above code will generate the following:
  
* {{tlx|Discussion header|2=end}} generates
+
{{Discussion close|begin}}
{{discussion header|end}}
+
== Discussion ==
 +
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan imperdiet scelerisque. Pellentesque quis scelerisque neque. Curabitur scelerisque imperdiet ligula, ac rutrum quam gravida vel. Aliquam at mauris sed metus ultricies adipiscing vel sed odio. Duis eget sem mi, sed accumsan nisl. Sed et urna risus, in faucibus nisl.
 +
:In semper auctor neque a porta. Quisque imperdiet orci non velit mollis id pharetra lacus suscipit. Ut semper vestibulum velit, a malesuada diam volutpat fringilla. Donec lobortis fermentum fermentum. Aliquam fringilla eros quis eros rhoncus nec vehicula nunc varius.
 +
::Suspendisse potenti. Nam augue massa, congue eu vestibulum at, sollicitudin eget diam. Aliquam venenatis tincidunt arcu, sed vehicula urna tempor eu. Quisque consequat lobortis lectus, sed pretium sem mattis ut. Duis ullamcorper dignissim ante a ultricies. In non tellus et risus posuere sodales. Nunc eleifend suscipit velit, convallis lobortis enim auctor id.
 +
{{Discussion close|end}}
  
[[Category:Templates|Discussion header]]
+
__NOTOC__
 +
[[Category:Templates|Discussion close]]
 
</noinclude>
 
</noinclude>

Latest revision as of 01:57, 16 July 2023

Documentation for Discussion close

Usage

Use this template on talk archives to indicate that the discussion is old and should not be modified.

  • {{Discussion close|begin}} will place a purple box and place a warning about the below discussion being outdated.
  • {{Discussion close|end}} will close the purple box and place an additional warning.
  • {{Discussion close|elsewhere=no}} will hide the text "Subsequent comments should be made in a new section".
  • {{Discussion close|text=Your text here}} will let the template show other contents you may want, instead of the default warning text.

Example

{{Discussion close|begin}}
== Discussion ==
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed accumsan imperdiet scelerisque. Pellentesque quis scelerisque neque. Curabitur scelerisque imperdiet ligula, ac rutrum quam gravida vel. Aliquam at mauris sed metus ultricies adipiscing vel sed odio. Duis eget sem mi, sed accumsan nisl. Sed et urna risus, in faucibus nisl. 
:In semper auctor neque a porta. Quisque imperdiet orci non velit mollis id pharetra lacus suscipit. Ut semper vestibulum velit, a malesuada diam volutpat fringilla. Donec lobortis fermentum fermentum. Aliquam fringilla eros quis eros rhoncus nec vehicula nunc varius.
::Suspendisse potenti. Nam augue massa, congue eu vestibulum at, sollicitudin eget diam. Aliquam venenatis tincidunt arcu, sed vehicula urna tempor eu. Quisque consequat lobortis lectus, sed pretium sem mattis ut. Duis ullamcorper dignissim ante a ultricies. In non tellus et risus posuere sodales. Nunc eleifend suscipit velit, convallis lobortis enim auctor id.
{{Discussion close|end}}
  • The above code will generate the following: