Szablon:Toggle: Różnice pomiędzy wersjami

Z High School DxD Wiki
Skocz do:nawigacji, wyszukiwania
(Utworzono nową stronę "<div class="_toggle {{{3|}}}">{{{1}}}</div><div class="_toggle {{{3|}}}" style="display:none;">{{{2}}}</div><noinclude> ==source== [http://openwetware.org/wiki/Template:...")
 
Linia 1: Linia 1:
<div class="_toggle {{{3|}}}">{{{1}}}</div><div class="_toggle {{{3|}}}" style="display:none;">{{{2}}}</div><noinclude>
+
<center>{{#tag:tabber|
==source==
+
{{#if:{{{opcja1|}}}|{{{opcja1}}}=
[http://openwetware.org/wiki/Template:Toggle openwetware]
+
{{{treść1}}}
==Usage==
+
{{!}}-{{!}}
This template has to be use in parallel with toggling functions. It will only create the element that will be hidden/shown by the function
+
}}
 
+
{{#if:{{{opcja2|}}}|{{{opcja2}}}=
*Parameter 1 : Default content
+
{{{treść2}}}
*Parameter 2 : Replacement content (optional)
+
{{!}}-{{!}}
*Parameter 3 : Toggle class name
+
}}
----
+
{{#if:{{{opcja3|}}}|{{{opcja3}}}=
Ex :
+
{{{treść3}}}
To replace a text with another by clicking on a link
+
{{!}}-{{!}}
<pre>
+
}}
{{Toggle|xxx text |yyyy text|toto}}  
+
{{#if:{{{opcja4|}}}|{{{opcja4}}}=
<span class="_toggler-toto">change text</span>
+
{{{treść4}}}
</pre>
+
{{!}}-{{!}}
{{Toggle|xxx text |yyyy text|toto}}  
+
}}
<span class="_toggler-toto">change text</span>
+
{{#if:{{{opcja5|}}}|{{{opcja5}}}=
 
+
{{{treść5}}}
When the second parameter is empty, it allows to make the text from parameter 1 disappear
+
{{!}}-{{!}}
<pre>
+
}}
{{Toggle|xxx text ||tata}}  
+
{{#if:{{{opcja6|}}}|{{{opcja6}}}=
<span class="_toggler-tata">hide text</span>
+
{{{treść6}}}
</pre>
+
{{!}}-{{!}}
{{Toggle|xxx text ||tata}}  
+
}}
<span class="_toggler-tata">hide text</span>
+
}}
 
+
</center>
 
+
<noinclude>
To change the content by using different link
+
<pre>
+
{{Toggle|var1 xxx||var1}} <!-- var1 text will be displayed at start since it is the first parameter -->
+
{{Toggle||var2 zzz|var2}} <!-- var2 text will be hidden at start since it is the second parameter -->
+
<span class="_toggler_hide-var1 _toggler_show-var2">link to var2</span>
+
<span class="_toggler_hide-var2 _toggler_show-var1">link to var1</span>
+
</pre>
+
{{Toggle|var1 xxx||var1}}  
+
{{Toggle||var2 zzz|var2}}
+
<span class="_toggler_hide-var1 _toggler_show-var2">link to var2</span> |
+
<span class="_toggler_hide-var2 _toggler_show-var1">link to var1</span>
+

Wersja z 15:30, 14 mar 2019

Nieznany znacznik rozszerzenia „tabber”
Źródło „https://hsdxd.usermd.net/w/index.php?title=Szablon:Toggle&oldid=13853