Difference between revisions of "Template:Fold"
((Reverted) I give up...) |
|||
Line 1: | Line 1: | ||
<includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem solid rgba(153, 153, 153, 0.1) }}; padding: 0.85rem; overflow: auto; border-radius: 0.25rem;"> | <includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem solid rgba(153, 153, 153, 0.1) }}; padding: 0.85rem; overflow: auto; border-radius: 0.25rem;"> | ||
− | <div class="mw-customtoggle-infobox" style=" | + | <div class="mw-customtoggle-infobox" style="padding-left: 0px; font-size: 1.05em; border-radius: initial; width: 100%; text-align: left; cursor: pointer; {{#if: {{{infostyle|}}} | {{{infostyle}}} }}"> |
{{#if: {{{infoimage|}}} | {{{infoimage}}} }}<span class="custom-infobox-title">{{#if: {{{infotext|}}} | {{{infotext}}} | Click To Reveal }}</span> | {{#if: {{{infoimage|}}} | {{{infoimage}}} }}<span class="custom-infobox-title">{{#if: {{{infotext|}}} | {{{infotext}}} | Click To Reveal }}</span> | ||
</div> | </div> | ||
− | <div class="mw-collapsible mw-collapsed" | + | <div class="mw-collapsible mw-collapsed" id="mw-customcollapsible-infobox" style="border: {{#if: {{{foldborder|}}} | {{{foldborder}}} | 0.1rem solid rgba(153, 153, 153, 0.1) }}; padding: 1rem; margin-bottom: 1rem; font-size: 100%; border-radius: 0.25rem;"></includeonly> |
<noinclude>{{Documentation}} | <noinclude>{{Documentation}} | ||
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. | 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. |
Revision as of 20:31, 17 April 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 {{foldend}}
. Let's take the "Trivia" section under the page Rondo in Bad Company as an example:
{{fold |id= |infotext='''What is Anti-Mystery? <small>{{Orange|[CLICK TO REVEAL]}}</small>''' }} [[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. {{foldend}}
Results in
What is Anti-Mystery? [CLICK TO REVEAL]
- 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: Offering to the Void and 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.