Template:LegacyContent: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
(20 intermediate revisions by the same user not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
Template is used to mark and track legacy content, and make it less confusing to the inattentive reader. The template will put a big disclaimer at the top of the page, and collapse the rest of the content so the reader has to click the "expand legacy information" link to see the rest.  
Template is used to mark and track [[Legacy Content]], and make it less confusing to the inattentive reader. The template will put a big disclaimer at the top of the page, and collapse the rest of the content so the reader has to click the "expand legacy information" link to see the rest.  


==Template Use==
==Template Use==
Line 8: Line 8:
|explanation=<why is this legacy>
|explanation=<why is this legacy>
|successor=<name of page or category that should now be referenced, if available>
|successor=<name of page or category that should now be referenced, if available>
|content= <leave page content here and then put the closing bracket below on the very end of the article. >
}}</pre>   
}}</pre>   
''''' Then add the following to the end of the page to close what the template starts: '''
<pre>
|}
</div>
</pre>


[[Category:Legacy Content | *]] [[Category:Legacy content wiki infrastructure]]
[[Category:Legacy Content | *]] [[Category:Legacy content wiki infrastructure]]
Line 21: Line 16:




</noinclude>
</noinclude>__NOTOC__<!-- hide TOC unless expanded --><div style="background:WhiteSmoke;color:gray;">
__NOTOC__<!-- hide TOC unless expanded -->
<div style="background:WhiteSmoke;color:gray;">
<h2 style="background:orange; color:darkred;"> Legacy Content </h2>
<h2 style="background:orange; color:darkred;"> Legacy Content </h2>
[[Category:Legacy Content]]The content of this page is exclusively about legacy items.  
This page contains [[Legacy Content]].  
*'''Explanation:''' {{{explanation| ''No explanation was entered''}}}{{#set:HasLegacyExplanation={{{explanation| ''No explanation was entered''}}}}}
*'''Explanation:''' {{{explanation| ''No explanation was entered''}}}
*'''Successor:''' {{{successor| ''No successor was entered''}}}{{#set:HasLegacySuccessor={{{successor| ''No successor was entered''}}}}}
*'''Successor:''' {{{successor| ''No successor was entered''}}}
<!-- Collapse the original content, the div tag has no end so goes to the end of the page. -->
<!-- Collapse the original content, the div tag has no end so goes to the end of the page. -->
{| class="wikitable mw-collapsible mw-collapsed"
<div class="toccolours mw-collapsible mw-collapsed">
{{!}}  click here to show legacy content
Click Expand to show legacy content.
{{!}}-
<div class="mw-collapsible-content">
{{!}} __TOC__ <!-- show TOC if expanded -->
__TOC__ <!-- show TOC if expanded -->
<noinclude><!-- to allow template to display properly -->
{{{content}}}
|}
<noinclude> this noinclude section is here only to allow template to display properly on its template page -->
</div></noinclude>
</div></div>
</noinclude><includeonly>
{{#set:HasLegacyExplanation={{{explanation| ''No explanation was entered''}}}}}
{{#set:HasLegacySuccessor={{{successor| ''No successor was entered''}}}}}
[[Category:Legacy Content]]
</includeonly>

Latest revision as of 21:16, 18 March 2025

Template is used to mark and track Legacy Content, and make it less confusing to the inattentive reader. The template will put a big disclaimer at the top of the page, and collapse the rest of the content so the reader has to click the "expand legacy information" link to see the rest.

Template Use

Add to the article:

{{LegacyContent
|explanation=<why is this legacy>
|successor=<name of page or category that should now be referenced, if available>
|content= <leave page content here and then put the closing bracket below on the very end of the article. >
}}


Legacy Content

This page contains Legacy Content.

  • Explanation: No explanation was entered
  • Successor: No successor was entered

Click Expand to show legacy content.

{{{content}}}

this noinclude section is here only to allow template to display properly on its template page -->