Vorlage:Diff: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Inhalt gelöscht Inhalt hinzugefügt
| Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Diff/styles.css" /><div class="volDiffBox" style="max-width:{{{DiffWidth|270px}}}"><div class="volDiffTitle diamond {{{Part|}}}">{{{Chapter|}}} {{#if:{{{Page|}}}|{{S|{{{Page|}}}}}}}</div><div class="volDiffContent diamond {{{Part|}}}4">{{#switch:{{{Buttons|}}}|False=|#default=<div class="volDiffButtons" data-part="{{lc:{{{Part|}}}}}">{{Button2|{{{Label1|Magazin}}}|class=volDiffTab1 {{lc:{{{Part|}}}}}}}{{Button2|{{{Label2|Band}}}|class=volDiffTab2}}</div>}}<div class="volDiffImages"><div class="volDiffImage1">[[File:{{{Image1|NoPicAvailable.png}}}|{{{Image1Size|x200px}}}]]</div><div class="volDiffImage2" {{#switch:{{{Buttons|}}}|False=|#default=style="display:none"}}>[[File:{{{Image2|NoPicAvailable.png}}}|{{{Image2Size|x200px}}}]]</div></div>{{#switch:{{{Compare|}}}|False=|#default={{Modal| |
<includeonly><templatestyles src="Diff/styles.css" /><div class="volDiffBox" style="max-width:{{{DiffWidth|270px}}}"><div class="volDiffTitle diamond {{{Part|}}}">{{{Chapter|}}} {{#if:{{{Page|}}}|{{S|{{{Page|}}}}}}}</div><div class="volDiffContent diamond {{{Part|}}}4">{{#switch:{{{Buttons|}}}|False=|#default=<div class="volDiffButtons" data-part="{{lc:{{{Part|}}}}}">{{Button2|{{{Label1|Magazin}}}|class=volDiffTab1 {{lc:{{{Part|}}}}}}}{{Button2|{{{Label2|Band}}}|class=volDiffTab2}}</div>}}<div class="volDiffImages"><div class="volDiffImage1">[[File:{{{Image1|NoPicAvailable.png}}}|{{{Image1Size|x200px}}}]]</div><div class="volDiffImage2" {{#switch:{{{Buttons|}}}|False=|#default=style="display:none"}}>[[File:{{{Image2|NoPicAvailable.png}}}|{{{Image2Size|x200px}}}]]</div></div>{{#switch:{{{Compare|}}}|False=|#default={{Modal|Beides vergleichen|{{Compare|[[File:{{{Image1|NoPicAvailable.png}}}|{{{Diff1Size|400px}}}]]|[[File:{{{Image2|NoPicAvailable.png}}}|{{{Diff2Size|400px}}}]]|{{{Label1|Magazin}}}|{{{Label2|Band}}}}}}}}}</div>{{#if:{{{Desc|}}}|<div class="volDiffCaption textarea">{{{Desc|}}}</div>}}</div></includeonly><noinclude> |
||
This template is used for comparing differences between two images. Primarily used for comparing magazine and volume pages or volume reprint differences. Use it with {{Tl|Flex}} as a wrapper (to make the boxes align next to each other). {{Tl|DiffBox}} should also be used for volume difference sections on pages. |
This template is used for comparing differences between two images. Primarily used for comparing magazine and volume pages or volume reprint differences. Use it with {{Tl|Flex}} as a wrapper (to make the boxes align next to each other). {{Tl|DiffBox}} should also be used for volume difference sections on pages. |
||
==Usage== |
==Usage== |
||
Version vom 16. März 2026, 18:49 Uhr
This template is used for comparing differences between two images. Primarily used for comparing magazine and volume pages or volume reprint differences. Use it with Flex as a wrapper (to make the boxes align next to each other). DiffBox should also be used for volume difference sections on pages.
Usage
{{DiffTest
|Part =
|Chapter =
|Page =
|Label1 =
|Image1 =
|Image1Size =
|Label2 =
|Image2 =
|Image2Size =
|Desc =
|Diff1Size =
|Diff2Size =
|DiffWidth =
}}
You can add |Compare = False to remove the "Compare Both" button.
Example
No Buttons
{{Flex|
{{Diff
|Part = WSJ
|Label1 = Magazin
|Label2 = Band
|Image1 = DBSKapitel018-Änderung-Magazin.png
|Image2 = DBSKapitel018-Änderung-Band.png
|DiffWidth = 180px
|Compare = False
|Buttons = False
|Desc = '''Magazin:''' [[Dragon Ball Super: Kapitel 018|Kapitel 018]]<br />'''Band:''' [[Dragon Ball Super: Kapitel 018|Kapitel 018]]
}}
}}