Difference between revisions of "Template:Fold"
(Now it works with multiple ones within same page, even though the appearance is not exactly the same... as it seems full-box-clicking feature causes the preceding issue, and then the "id" needs to be inserted which makes things a lot more confusing) |
|||
Line 1: | Line 1: | ||
<includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem dotted rgba(30, 30, 30, 0.1) }}; padding: 0.65rem; overflow: auto; border-radius: 0.25rem;"> | <includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem dotted rgba(30, 30, 30, 0.1) }}; padding: 0.65rem; overflow: auto; border-radius: 0.25rem;"> | ||
<div class="mw-collapsible mw-collapsed" style="border: none;"> | <div class="mw-collapsible mw-collapsed" style="border: none;"> | ||
− | <div class="mw-collapsible-heading" style="display: inline-block;"><font size=" | + | <div class="mw-collapsible-heading" style="display: inline-block;"><font size="2">'''{{{title|}}}'''</font></div> |
<div class="mw-collapsible-toggle" style="display: inline-block;">{{orange|'''[CLICK TO REVEAL]'''}}</div> | <div class="mw-collapsible-toggle" style="display: inline-block;">{{orange|'''[CLICK TO REVEAL]'''}}</div> | ||
− | <div class="mw-collapsible-content"><br>{{{ | + | <div class="mw-collapsible-content"><br>{{{content|}}}</div> |
</div></div></includeonly> | </div></div></includeonly> | ||
<noinclude>{{Documentation}} | <noinclude>{{Documentation}} | ||
Line 15: | Line 15: | ||
{{Fold | {{Fold | ||
|title=What is Anti-Mystery? | |title=What is Anti-Mystery? | ||
− | | | + | |content= |
[[File:EP1021-1.jpg|thumb|right|200px|The rondo effect manifested in this episode.]] | [[File:EP1021-1.jpg|thumb|right|200px|The rondo effect manifested in this episode.]] | ||
* A rather unpopular type of detective/mystery school. | * A rather unpopular type of detective/mystery school. | ||
Line 28: | Line 28: | ||
{{Fold | {{Fold | ||
|title=What is Anti-Mystery? | |title=What is Anti-Mystery? | ||
− | | | + | |content= |
[[File:EP1021-1.jpg|thumb|right|200px|The rondo effect manifested in this episode.]] | [[File:EP1021-1.jpg|thumb|right|200px|The rondo effect manifested in this episode.]] | ||
* A rather unpopular type of detective/mystery school. | * A rather unpopular type of detective/mystery school. |
Revision as of 06:39, 25 May 2024
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |
This template offers an alternative to the "spoiler box" that was somewhat overused within this wiki. For example - "spoiler boxes" were utilised on occasions where there was a need to collapse excessive information by default (such as rendering paintings under "Trivia" section); which does not make a lot of sense as those information were far off the definition of "spoiler". As such, this "fold" template emerged.
In addition, this template was referenced from the Chinese version of wiki: Conanpedia.
This can be used for ANY information representation where the users need to tap on the collapsed block to see information. When using this template, note that the id
segment is not mandatory, and insert titles for the collapsed block after the infotext
. Contents concealed within the collapse block should be inserted after the }}
; make sure to close the block with a double "/div". Let's take the "Trivia" section under the page Rondo in Bad Company as an example:
{{Fold |title=What is Anti-Mystery? |content= [[File:EP1021-1.jpg|thumb|right|200px|The rondo effect manifested in this episode.]] * A rather unpopular type of detective/mystery school. ** Simply about the detective who attempted to use his deductions to reach the truth, but came to the false conclusion. ** Which the truth is often coincidence, accident and so on, the case did not exist at first. ** These type of works satirizes the statement that "The only absolute truth of the case" and "A genius detective who can always solve a case" from classic mystery works. * Some representative anti-mystery novels: ''[[wikipedia:ja:虚無への供物|Offering to the Void]]'' and ''[[wikipedia:ja:黒死館殺人事件|Black Death Mansion Murder Case]]''. * Likewise as this episode, which the truth was revealled in the beginning of the case, but then investiagtion went astray. }}
Results in
Click To Reveal