Welcome to IOPWiki, Commander.
We are searching for editors to complete gameplay topics in all games. You can contribute without an account. Learn how to contribute and join our Discord server.

Widget:costumeSwitcher: Difference between revisions

Welcome to IOP Wiki. This website is maintained by the Girls' Frontline community and is free to edit by anyone.
Jump to navigation Jump to search
Pianoforte (talk | contribs)
No edit summary
Pianoforte (talk | contribs)
No edit summary
Line 4: Line 4:
         costumeSelection = document.getElementById("costumeSelection").value;
         costumeSelection = document.getElementById("costumeSelection").value;


         $("#fullart a").attr("href", costumeSelection);
         costumePaths = costumeSelection,split();
        $("#fullart a img").attr("src", costumeSelection);
        $("#fullart a img").attr("alt", costumeSelection);


         $("#fullart_D a").attr("href", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_D.png");
         $("#fullart a").attr("href", costumeSelection[0]);
         $("#fullart_D a img").attr("src", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_D.png");
        $("#fullart a img").attr("src", costumeSelection[0]);
         $("#fullart_D a img").attr("alt", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_D.png");
        $("#fullart a img").attr("alt", costumeSelection[0]);
 
         $("#fullart_D a").attr("href", costumeSelection[1]);
        $("#fullart_D a img").attr("src", costumeSelection[1]);
         $("#fullart_D a img").attr("alt", costumeSelection[1]);






         //$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x");
         //$("#fullart a img").attr("srcset", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 1.5x, /wiki/Special:Redirect/file/Springfield" + costumeSelection + ".png 2x");
         $(".tdoll_chibi").attr("src", "/wiki/Special:Redirect/file/Springfield" + costumeSelection + "_S.png");
         $(".tdoll_chibi").attr("src", costumeSelection[2]);
          
          
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
         // As we change the link, we have to update the Thumb-Cache of the Media Viewer
Line 36: Line 38:
</script>
</script>
<select id="costumeSelection" onchange="swap_costume()">
<select id="costumeSelection" onchange="swap_costume()">
<option value={{filepath:Springfield.png|420}}{{filepath:Springfield_D.png|420}} selected="selected">{{filepath:Springfield_costume1.png|420}}</option>
<option value="<!--{$defaultpaths|escape:'html'}-->" selected="selected">Default</option>
<option value="_mod">{{filepath:Springfield_costume1.png|420}}</option>
<option value="_mod">Mod</option>
<option value="_costume1"><!--{$costume1|escape:'html'}--></option>
<option value="<!--{$costume1paths|escape:'html'}-->"><!--{$costume1|escape:'html'}--></option>
<option value="_costume2"><!--{$costume2|escape:'html'}--></option>
<option value="<!--{$costume2paths|escape:'html'}-->"><!--{$costume2|escape:'html'}--></option>
<option value="_costume3"><!--{$costume3|escape:'html'}--></option>
<option value="<!--{$costume3paths|escape:'html'}-->"><!--{$costume3|escape:'html'}--></option>
</select>
</select>
{{filepath:Springfield.png|420}}
{{filepath:Springfield_costume1.png|420}}
{{filepath:Springfield_costume1.png|420}}
{{filepath:Springfield_costume1.png|420}}




{{filepath:Springfield_costume1.png|420}}
</includeonly>
</includeonly>


Line 58: Line 52:


{{#widget:costumeSwitcher
{{#widget:costumeSwitcher
|defaultpath={{filepath:Springfield.png|420}}
|defaultpaths={{filepath:Springfield.png|420}},,{{filepath:Springfield_D.png|420}},,{{filepath:Springfield_S.png|420}},,{{filepath:Springfield_chibi.png|420}}
|costume1=test1
|costume1=test1
|costume1path={{filepath:Springfield_costume1.png|420}}
|costume1paths={{filepath:Springfield_costume1.png|420}},,{{filepath:Springfield_costume1_D.png|420}},,{{filepath:Springfield_costume1_S.png|420}},,{{filepath:Springfield_costume1_chibi.png|420}}
|costume2=test2
|costume2=test2
|costume2path={{filepath:Springfield_costume2.png|420}}
|costume2paths={{filepath:Springfield_costume2.png|420}},,{{filepath:Springfield_costume2_D.png|420}},,{{filepath:Springfield_costume2_S.png|420}},,{{filepath:Springfield_costume2_chibi.png|420}}
|costume3=test3
|costume3=test3
|costume3path={{filepath:Springfield_costume3.png|420}}
|costume3paths={{filepath:Springfield_costume3.png|420}},,{{filepath:Springfield_costume3_D.png|420}},,{{filepath:Springfield_costume3_S.png|420}},,{{filepath:Springfield_costume3_chibi.png|420}}
}}
}}



Revision as of 08:11, 14 December 2017


test