Vorlage:Char: Unterschied zwischen den Versionen
Aus DragonballWiki
Weitere Optionen
Inhalt gelöscht Inhalt hinzugefügt
| (4 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
<includeonly><templatestyles src="Char/styles.css" /> |
|||
<div class="charbox diamond {{#ifeq:{{{Resize|}}}|True|resizeImg2|resizeImg}} {{#ifeq:{{{Shadow|}}}|None|noshadow}}" style="background-color:{{Color|{{{Color|gray}}}}};">{{#if:{{{BG|}}}|<div class="chariconbg">}} |
|||
| ⚫ | |||
<div class="{{#ifeq:{{{Resize|}}}|True|charicon2|charicon}}" style="background-color:{{Color|{{{Color2|transparent}}}}};"> |
|||
| ⚫ | {{#if:{{{Av2|}}}|{{ButtonHover|{{{Av}}}|{{{Av2}}}|link={{#switch:{{{Type|}}}|None=#|PB=Phantom Blood (PS2 Game)/{{{Name|}}}|GG=GioGio's Bizarre Adventure/{{{Name|}}}|ASB=All-Star Battle/{{{Name|}}}|EOH=Eyes of Heaven/{{{Name|}}}|ASBR=All-Star Battle R/{{{Name|}}}|PPP=JoJo's Pitter-Patter Pop!/{{{Name|}}}|SS={{{Name|}}}#Stardust Shooters (Android/iOS)|SS2={{{Name|}}}/Games#Stardust Shooters|LS=Last Survivor/{{{Name|}}}|MS=Monster Strike/{{{Name|}}}|PAD=Puzzle & Dragons/{{{Name|}}}|JJ={{{Name|}}}#JORGE JOESTAR|JJ2={{{Name|}}}/History#JORGE JOESTAR|#default={{#switch:{{{Type|}}}|MN=Minor Characters#|UN=|UNS=List of Unnamed Stands#|HN=List of Horses in Steel Ball Run#|MI=Minor Items#}}{{{Name|}}}}}}}|[[File:{{{Av}}}|link={{#switch:{{{Type|}}}|None=#|PB=Phantom Blood (PS2 Game)/{{{Name|}}}|GG=GioGio's Bizarre Adventure/{{{Name|}}}|ASB=All-Star Battle/{{{Name|}}}|EOH=Eyes of Heaven/{{{Name|}}}|ASBR=All-Star Battle R/{{{Name|}}}|PPP=JoJo's Pitter-Patter Pop!/{{{Name|}}}|SS={{{Name|}}}#Stardust Shooters (Android/iOS)|SS2=Stardust Shooters/{{{Name|}}}|LS=Last Survivor/{{{Name|}}}|MS=Monster Strike/{{{Name|}}}|PAD=Puzzle & Dragons/{{{Name|}}}|JJ={{{Name|}}}#JORGE JOESTAR|JJ2={{{Name|}}}/History#JORGE JOESTAR|#default={{#switch:{{{Type|}}}|MN=Minor Characters#|UN=|UNS=List of Unnamed Stands#|HN=List of Horses in Steel Ball Run#|MI=Minor Items#}}{{{Name|}}}}}|{{{Name|}}}]]}}</div>{{#if:{{{Status|}}}|<div class="diamond charstatus" style="background-color:{{Color|{{{Color2|gray}}}}}; font-size: {{#ifexpr:{{#len:{{{Status|}}}}}>35|8.5px|{{#ifexpr:{{#len:{{{Status|}}}}}>26|9.5px|10.5px}}}}; color:{{{StatusColor|black}}};">{{{Status|}}}</div>}}{{#if:{{{BG|}}}|</div>}}{{#if:{{{BG|}}}|<div class="chariconbg2">[[File:{{#switch:{{{BG}}}|Yellow=YellowPPP.png|Red=RedPPP.png|Blue=BluePPP.png|Green=GreenPPP.png|Pink=PinkPPP.png|Purple=PurplePPP.png|White=WhitePPP.png|Black=BlackPPP.png|Orange=OrangePPP.png|#default=BlackPPP.png}}|123px]]</div>}} |
||
<div class="charname" style="line-height: 1.5; {{#if:{{{BG|}}}|padding-top:5px;}}"> |
|||
{{#switch:{{{Type|}}}|None=<span style="font-weight:bold;"> |
|||
{{{Name|}}}</span>|PB=[[Phantom Blood (PS2 Game)/{{{Name|}}}| |
|||
<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|GG=[[GioGio's Bizarre Adventure/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|ASB=[[All-Star Battle/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|EOH=[[Eyes of Heaven/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|ASBR=[[All-Star Battle R/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|PPP=[[JoJo's Pitter-Patter Pop!/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|SS=[[{{{Name|}}}#Stardust Shooters (Android/iOS)|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|SS2=[[Stardust Shooters/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|LS=[[Last Survivor/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|MS=[[Monster Strike/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|PAD=[[Puzzle & Dragons/{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|JJ=[[{{{Name|}}}#JORGE JOESTAR|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|JJ2=[[{{{Name|}}}/History#JORGE JOESTAR|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]|#default=[[{{#switch:{{{Type|}}}|MN=Minor Characters#|UN=|UNS=List of Unnamed Stands#|HN=List of Horses in Steel Ball Run#|MI=Minor Items#}}{{{Name|}}}|<span class="charwhitelink">{{#if:{{{SName|}}}|{{{SName|}}}|{{{Name|}}}}}</span>]]}}</div> |
|||
<div class="charstand" style="{{#if:{{{StandBG|}}}|text-shadow: none; background-color:{{{StandBG|}}};}}"> |
|||
{{#if:{{{Stands|}}}|<span style="color:{{{StandColor|white}}};">''{{{Stands|}}}''</span>}}{{#if:{{{Stand|}}}|[[{{{Stand|}}}|<span style="color:{{{StandColor|white}}};">''{{{Stand|}}}''</span>]]}}</div></div></includeonly><noinclude> |
|||
==Usage== |
==Usage== |
||
Combine together with {{Tl|CBox}} if you want to place the character icons inside a box with a title. |
Combine together with {{Tl|CBox}} if you want to place the character icons inside a box with a title. |
||
| Zeile 6: | Zeile 14: | ||
==Example== |
==Example== |
||
{{CBox|Title=Testing Characters|Align=C| |
{{CBox|Title=Testing Characters|Align=C| |
||
{{Char|Name=Babidi|Av=BabidiAVManga.webp|Av2=BabidiAVAnime.webp|Color=PB|Color2=PB2|Status={{Mo}}}} |
|||
{{Char|Name=Jonathan Joestar|Av=JonathanAv.png|Av2=JonathanAvAnim.png|Color=PB|Color2=PB2|Status={{Mo}}}}{{Char|Name=Joseph Joestar|Av=JosephAv.png|Av2=JosephAvAnim2.png|Color=BT|Color2=BT2|Status={{Lead}}|Stand=Hermit Purple}}{{Char|Name=Jotaro Kujo|Av=JotaroAv.png|Stand=Star Platinum|Color=SDC|Color2=SDC2|Status={{1st}}}}{{Char|Name=Josuke Higashikata|SName=Josuke|Av=JosukeAv.png|Stand=Crazy Diamond|Color=DIU|Color2=DIU2}}{{Char|Name=Joeko Joestar|Av=JorgeJoekoAv.jpg|Color=jorge|Color2=jorge2}}{{Char|Name=Noriaki Kakyoin|Av=KakyoinPPP.png|Color=SDC|BG=Green}}{{Char|Name=Soccer Kid|Av=BucciaratiSoccerKidPPP.png|Color=VA|BG=Black|Type=None}}{{Char|Name=Jonathan Joestar|SName=Jonathan|Av=JonathanPPP.png|Av2=JonathanStandPPP.png|Stands=|Status={{GR}}|BG=Yellow|Color=PB|Type=PPP}}{{Char|Name=Jonathan Joestar|Av=JH_Chara_Icon_P1_Jonathan.png|Color=PB|BG=Yellow|Status=6☆|Shadow=None}}{{Char|Name=Jonathan Joestar|Av=JonathanDR.png|Color=PB|Resize=True}} |
|||
{{Char|Name=Bakterian|Av=BakterianAVManga.webp|Av2=BakterianAVAnime.webp|Color=BT|Color2=BT2|Status={{Lead}}|Stand=Hermit Purple}} |
|||
{{Char|Name=Baby Gamera|Av=Baby GameraAVManga.webp|Stand=Star Platinum|Color=SDC|Color2=SDC2|Status={{1st}}}} |
|||
{{Char|Name=Barta|SName=Barta22222|Av=BartaAVManga.webp|Stand=Crazy Diamond|Color=DIU|Color2=DIU2}} |
|||
{{Char|Name=Bananas|Av=BananasAVManga.webp|Color=jorge|Color2=jorge2}} |
|||
{{Char|Name=Banan|Av=BananAVManga.webp|Color=SDC|BG=Green}} |
|||
{{Char|Name=Beats Großvater|Av=Beats GroßvaterAVManga.webp|Color=VA|BG=Black|Type=None}} |
|||
{{Char|Name=Beats Mutter|SName=Jonathan|Av=Beats MutterAVManga.webp|Av2=AVAnimeKB.webp|Stands=|Status={{GR}}|BG=Yellow|Color=PB|Type=PPP}}{{Char|Name=Broly (Reboot)|Av=Broly (Reboot)AVManga.webp|Color=PB|BG=Yellow|Status=6☆|Shadow=None}} |
|||
}} |
}} |
||
Aktuelle Version vom 6. September 2023, 17:00 Uhr
Usage
Combine together with CBox if you want to place the character icons inside a box with a title.
Example
Testing Characters
<div class="diamond charstatus" style="background-color:#b7a972; font-size: Fehler im Ausdruck: Nicht erkanntes Satzzeichen „{“; color:black;">(1. Auftritt)
{{CBox|Title=Optional Title|
{{Char|Name=|SName=|Av=|Av2=|Status=|Stand=|Stands=|Color=|Color2=|Type=|BG=}}
}}
Parameters
Name = Name of the character SName = Name to display if different from the link Av = Avatar/Image of the character Av2 = A second avatar that displays when hovering over the icon (Anime pics or Stand pics depending on the page) Status = Status (Mentioned only, Deceased, First appearance, or anything else) Stand = Stand of the character Stands = Stand name to display (if different from the link or char has multiple stands) Color = Color of the name box Color2 = Color of the status box and background of the icon Type = UN for Unnamed Characters, MN for Minor Characters, UNS for Unnamed Stands, HN for SBR Horses, MI for Minor Items, None if the character is not on any of these pages. BG = Currently only used for the Pitter Patter Pop unit backgrounds. Options are: Yellow, Red, Blue, Green, Pink, Purple, White, Black, and Orange
CBox Parameters
bg = Title background color bg2 = Background color behind the char boxes Title = Title to display Type = Makes the title have links to Minor/Unnamed Chars (the only parameter is M) Part = The manga/anime part. For example, if Part is Phantom Blood, the title will say "Characters from Phantom Blood" Align = C (Center), L (Left), R (Right)














