Template:LegacyContent: Difference between revisions

From CCMDB Wiki
Jump to navigation Jump to search
mNo edit summary
No edit summary
 
Line 18: Line 18:
</noinclude>__NOTOC__<!-- hide TOC unless expanded --><div style="background:WhiteSmoke;color:gray;">
</noinclude>__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]]This page contains [[Legacy Content]].  
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. -->
<div class="toccolours mw-collapsible mw-collapsed">
<div class="toccolours mw-collapsible mw-collapsed">
Line 28: Line 28:
{{{content}}}
{{{content}}}
<noinclude> this noinclude section is here only to allow template to display properly on its template page -->
<noinclude> this noinclude section is here only to allow template to display properly on its template page -->
</div>
</div></div>
</div></noinclude>
</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.