Difference between revisions of "Template:Fold"

From Detective Conan Wiki
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem solid rgba(153, 153, 153, 0.1) }}; padding: 1rem; overflow: auto; border-radius: 0.25rem;">
+
<includeonly><div style="border: {{#if: {{{infoborder|}}} | {{{infoborder}}} | 0.1rem solid rgba(78, 78, 78, 0.1) }}; padding: 0.65rem; overflow: auto; border-radius: 0.25rem;">
<div style="margin-bottom: 1rem; user-select: none;">
 
 
<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}}} }}">
 
<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>
 
<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>
 
<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>
Line 11: Line 9:
 
In addition, this template was referenced from the Chinese version of wiki: Conanpedia.
 
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 <code>id</code> segment is not mandatory, and insert titles for the collapsed block after the <code>infotext</code>. Contents concealed within the collapse block should be inserted after the <code>}}</code>; make sure to close the block with <code>{{foldend}}</code>. Let's take the "Trivia" section under the page [[Rondo in Bad Company]] as an example:
+
'''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 <code>id</code> segment is not mandatory, and insert titles for the collapsed block after the <code>infotext</code>. Contents concealed within the collapse block should be inserted after the <code>}}</code>; 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:
  
 
<pre>
 
<pre>
Line 25: Line 23:
 
* Some representative anti-mystery novels: ''[[wikipedia:ja:虚無への供物|Offering to the Void]]'' and ''[[wikipedia:ja:黒死館殺人事件|Black Death Mansion Murder Case]]''.
 
* 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.
 
* Likewise as this episode, which the truth was revealled in the beginning of the case, but then investiagtion went astray.
{{foldend}}
+
</div></div>
 
</pre>
 
</pre>
 
Results in <br>
 
Results in <br>
Line 39: Line 37:
 
* Some representative anti-mystery novels: ''[[wikipedia:ja:虚無への供物|Offering to the Void]]'' and ''[[wikipedia:ja:黒死館殺人事件|Black Death Mansion Murder Case]]''.
 
* 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.
 
* Likewise as this episode, which the truth was revealled in the beginning of the case, but then investiagtion went astray.
{{foldend}}
+
</div></div>
  
 
[[Category:Templates]]
 
[[Category:Templates]]
 
</noinclude>
 
</noinclude>

Latest revision as of 22:42, 17 April 2024

Documentation icon Template documentation[create]

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
|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.
</div></div>

Results in

What is Anti-Mystery? [CLICK TO REVEAL]

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: 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.