Template:RomanceBox: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<includeonly><div class="mw-collapsible {{#switch: {{{hide|}}} | 1 = mw-collapsed | yes = mw-collapsed | mw-expanded}}" data-expandtext="Show | <includeonly><div class="mw-collapsible {{#switch: {{{hide|}}} | 1 = mw-collapsed | yes = mw-collapsed | mw-expanded}}" data-expandtext="Show Romance" data-collapsetext="Hide Romance" style="background: linear-gradient(to right, #6b1541, #232323, #232323, #232323); align-items:center; border-radius:10px; padding: 5px;"> | ||
[[File:Charm Person Icon.png| | [[File:Charm Person Icon.png|24px|link=]] ''' {{color|#c9208a|{{#switch: {{{hide|}}} | 1 = Romance Spoilers | yes = Romance Spoilers | Romance Warning}}}} This section reveals details about romance and may contain mature themes.''' | ||
<div class="mw-collapsible-content" style="background:#232323; border-radius:10px; padding: 15px;">{{{1}}}</div> | <div class="mw-collapsible-content" style="background:#232323; border-radius:10px; padding: 15px;">{{{1}}}</div> | ||
</div></includeonly><noinclude> | </div></includeonly><noinclude> | ||
Line 13: | Line 13: | ||
Result: {{RomanceBox|hide=1|This text will be hidden.}} | Result: {{RomanceBox|hide=1|This text will be hidden.}} | ||
</noinclude> | <templatedata> | ||
{ | |||
"params": { | |||
"1": { | |||
"description": "Content of the romance box.", | |||
"type": "content", | |||
"required": true | |||
}, | |||
"hide": { | |||
"description": "If specified, will hide the romance box's contents by default." | |||
} | |||
}, | |||
"paramOrder": [ | |||
"1", | |||
"hide" | |||
] | |||
} | |||
</templatedata></noinclude> |
Latest revision as of 18:33, 7 November 2023
Usage: {{RomanceBox|This text will be hidden.}}
Result:If you don't want the content to be autorevealed you can add {{{1}}} or {{{1}}}
Usage: {{RomanceBox|hide=1|This text will be hidden.}}
Result:Romance Spoilers This section reveals details about romance and may contain mature themes.
This text will be hidden.
No description.
Parameter | Description | Type | Status | |
---|---|---|---|---|
1 | 1 | Content of the romance box. | Content | required |
hide | hide | If specified, will hide the romance box's contents by default. | Unknown | optional |