Difference between revisions of "Template:Hidden begin"

From Hgames Wiki
Jump to: navigation, search
(The MediaWiki engine doesn't seem to want to parse the <style> tag as HTML (and instead renders it as text on the page), so let's try adding the CSS styles inline instead.)
(Fix comment)
 
Line 1: Line 1:
<includeonly><!-- It doesn't seem like we can use <templatestyles> in Hgames Wiki, so we copy all of the CSS from Wikipedia's 'Template:Hidden_begin/styles.css' file in its entirety and add it directly here. --><!-- <templatestyles src="Template:Hidden begin/styles.css"/> --><div class="hidden-begin mw-collapsible {{#ifeq:{{{showhide|{{{toggle}}}}}}|left|mw-collapsible-leftside-toggle}} {{#if:{{{expanded|}}}||mw-collapsed}} {{{class|}}}" style="box-sizing: border-box; width: 100%; padding: 5px; border: none; font-size: 95%; {{#if:{{{width|}}}|width:{{{width}}};}} {{#if:{{{border|}}}|border:{{{border}}};}} {{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}} {{{style|}}}"><!--
+
<includeonly><!-- It doesn't seem like we can use <templatestyles> in Hgames Wiki, so we copy all of the CSS from Wikipedia's 'Template:Hidden_begin/styles.css' file and add the CSS as inline styles instead. --><!-- <templatestyles src="Template:Hidden begin/styles.css"/> --><div class="hidden-begin mw-collapsible {{#ifeq:{{{showhide|{{{toggle}}}}}}|left|mw-collapsible-leftside-toggle}} {{#if:{{{expanded|}}}||mw-collapsed}} {{{class|}}}" style="box-sizing: border-box; width: 100%; padding: 5px; border: none; font-size: 95%; {{#if:{{{width|}}}|width:{{{width}}};}} {{#if:{{{border|}}}|border:{{{border}}};}} {{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}} {{{style|}}}"><!--
 
--><div class="hidden-title skin-nightmode-reset-color" style="font-weight: bold; line-height: 1.6; text-align: left; {{#if:{{{ta1|}}}|text-align:{{{ta1}}};}} {{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}} {{{titlestyle|}}}">{{{title|{{{header|}}}}}}</div><!--
 
--><div class="hidden-title skin-nightmode-reset-color" style="font-weight: bold; line-height: 1.6; text-align: left; {{#if:{{{ta1|}}}|text-align:{{{ta1}}};}} {{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}} {{{titlestyle|}}}">{{{title|{{{header|}}}}}}</div><!--
 
--><div class="hidden-content mw-collapsible-content" style="text-align: left; {{#if:{{{ta2|}}}|text-align:{{{ta2}}};}} {{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}} {{{contentstyle|{{{bodystyle|}}}}}}"><!--
 
--><div class="hidden-content mw-collapsible-content" style="text-align: left; {{#if:{{{ta2|}}}|text-align:{{{ta2}}};}} {{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}} {{{contentstyle|{{{bodystyle|}}}}}}"><!--

Latest revision as of 18:04, 1 October 2024

Template documentation (for the above template, sometimes hidden or invisible)
Icon msgbox notice.png This template's code was copied directly from Wikipedia. For more information, including more details on how to use this template in your articles, please see Wikipedia's Template:Hidden_begin documentation.

Visit Template:Hidden begin/doc to edit this text! (How does this work?)