Difference between revisions of "Template:Hidden begin"
From Hgames Wiki
(Initial creation of template. Copied directly from Wikipedia.) |
(Add CSS styles directly to this template. Taken directly from 'Template:Hidden_begin/styles.css' at Wikipedia.) |
||
Line 1: | Line 1: | ||
− | <includeonly><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="{{#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 in its entirety and add it directly here. --> |
+ | <!-- <templatestyles src="Template:Hidden begin/styles.css"/> --> | ||
+ | <style> | ||
+ | /* {{pp-template}} */ | ||
+ | .hidden-begin { | ||
+ | box-sizing: border-box; | ||
+ | width: 100%; | ||
+ | padding: 5px; | ||
+ | border: none; | ||
+ | font-size: 95%; | ||
+ | } | ||
+ | |||
+ | .hidden-title { | ||
+ | font-weight: bold; | ||
+ | line-height: 1.6; | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | .hidden-content { | ||
+ | text-align: left; | ||
+ | } | ||
+ | |||
+ | /* [[phab:T360582]] */ | ||
+ | @media all and ( max-width: 500px ) { | ||
+ | .hidden-begin { | ||
+ | width: auto !important; | ||
+ | clear: none !important; | ||
+ | float: none !important; | ||
+ | } | ||
+ | } | ||
+ | </style> | ||
+ | <div class="hidden-begin mw-collapsible {{#ifeq:{{{showhide|{{{toggle}}}}}}|left|mw-collapsible-leftside-toggle}} {{#if:{{{expanded|}}}||mw-collapsed}} {{{class|}}}" style="{{#if:{{{width|}}}|width:{{{width}}};}} {{#if:{{{border|}}}|border:{{{border}}};}} {{#if:{{{bgcolor|}}}|background-color:{{{bgcolor}}};}} {{{style|}}}"><!-- | ||
--><div class="hidden-title skin-nightmode-reset-color" style="{{#if:{{{ta1|}}}|text-align:{{{ta1}}};}} {{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}} {{{titlestyle|}}}">{{{title|{{{header|}}}}}}</div><!-- | --><div class="hidden-title skin-nightmode-reset-color" style="{{#if:{{{ta1|}}}|text-align:{{{ta1}}};}} {{#if:{{{titlebgcolor|}}}|background-color:{{{titlebgcolor}}};}} {{{titlestyle|}}}">{{{title|{{{header|}}}}}}</div><!-- | ||
--><div class="hidden-content mw-collapsible-content" style="{{#if:{{{ta2|}}}|text-align:{{{ta2}}};}} {{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}} {{{contentstyle|{{{bodystyle|}}}}}}"><!-- | --><div class="hidden-content mw-collapsible-content" style="{{#if:{{{ta2|}}}|text-align:{{{ta2}}};}} {{#if:{{{contentbgcolor|}}}|background-color:{{{contentbgcolor}}};}} {{{contentstyle|{{{bodystyle|}}}}}}"><!-- |
Revision as of 19:59, 30 September 2024
Template documentation (for the above template, sometimes hidden or invisible)
For more information, please see Wikipedia's Template:Hidden_begin documentation.
Visit Template:Hidden begin/doc to edit this text! (How does this work?)