Toggle menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

User:Chao: Difference between revisions

17,076 editsJoined 5 November 2017
m (add some wip stuff)
m (fixing some wrong commands lmao)
 
(13 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
|Command Spread=<!--
-->{{#vardefine:Revolver|{{#ifexpr:({{#if:{{{R|}}}|{{#expr:100*{{{R}}}/100}}|0}}<1)|1%|{{#if:{{{R|}}}|{{#expr:100*{{{R}}}/100round 1}}|0}}%}}}}<!--
-->{{#vardefine:Drive|{{#ifexpr:({{#if:{{{D|}}}|{{#expr:100*{{{D}}}/100}}|0}}<1)|1%|{{#if:{{{D|}}}|{{#expr:100*{{{D}}}/100round 1}}|0}}%}}}}<!--
-->{{#vardefine:Special|{{#ifexpr:({{#if:{{{S|}}}|{{#expr:100*{{{S}}}/100}}|0}}<1)|1%|{{#if:{{{S|}}}|{{#expr:100*{{{S}}}/100round 1}}|0}}%}}}}<!--
--><table width={{#if:{{{width|}}}|{{{width|}}}|100%}} align=center style="background:transparent; text-align:center;">
<tr>
<td  colspan="3">
<table style="border:1px solid gray; color:black; display:table;" cellspacing=1 width=100% height=15x>
<tr>
{{#ifeq:{{#if:{{{R|}}}|{{{R}}}|0}}|0| | <td class="bbdw-revolver" style="background:#0db5ed; width:{{#var:Revolver}}">{{{R|}}}%</td> }}
{{#ifeq:{{#if:{{{D|}}}|{{{D}}}|0}}|0| | <td class="bbdw-drive" style="background:#f78734; width:{{#var:Drive}}">{{{D|}}}%</td> }}
{{#ifeq:{{#if:{{{S|}}}|{{{S}}}|0}}|0| | <td class="bbdw-special" style="background:#e3b067; width:{{#var:Special}}">{{{S|}}}%</td> }}
</tr>
</table></td>
</tr>
</table>
|Story Summary=
<table class="wikitable mw-collapsible mw-collapsed" style="width:100%;">
<tr><th>{{{title|}}}</th></tr>
<tr><td>
{{{location|}}}


{{{summary1|}}}{{#if:summary2|<br/><hr>{{{summary2|}}}}}
==Notes==
</td></tr></table><!--
{| class="wikitable mw-collapsible mw-collapsed"
-->}}<!--
! Adding BBDW Audio Files to the Quotes Page
--></includeonly><noinclude>
|-
|
* Add audio files that were uploaded in bulk to the character's BBDW quotes page.
* The idea is to grab the filenames from the contribution list (or file upload list) so we have the real filenames used on the wiki, and then to format them accordingly.
* This works better (is more efficient) the more files we have to apply this to at once. Can even be files for multiple characters.
* These instructions assume the use of Sublime Text 3, or another advanced text editor that supports multiple selections and searches with regular expressions.
|-
| style="text-align:left;" | Steps:
* Select and copy into a new document the contribs page text for the user who uploaded the files.
It'll look something like this:
<pre><nowiki>
    03:22, 4 June 2022 diff hist +359‎ N File:BBDW Avenge 026b.ogg ‎ Uploaded a work by Arc System Works from BlazBlue Alternative: Dark War with UploadWizard current Tag: Upload Wizard
    03:22, 4 June 2022 diff hist +359‎ N File:BBDW Avenge 026a.ogg ‎ Uploaded a work by Arc System Works from BlazBlue Alternative: Dark War with UploadWizard current Tag: Upload Wizard
</nowiki></pre>


==Adding Command Spread to BBDW Character Templates==
* In the text editor, pull up the search bar (Ctrl+F) and search for: (make sure using regular expressions (regex) is selected)
<h3>Commands</h3>
<pre>File:[A-Za-z0-9 ]*\.ogg</pre>
<table class="wikitable {{#if:{{{element|}}}|bbdw-{{{element|}}}}}" style="width:100%;margin-top:0;text-align:center;">
<tr style="height:0;margin:0;padding:0" class="nomobile"><td style="width:50px;margin:0;padding:0"></td><td style="width:250px;margin:0;padding:0"></td><td style="width:50px;margin:0;padding:0"></td></tr>
<tr>
<th style="width:12%"></th>
<th style="width:12%">{{bbdw|Command R}}</th>
<th style="width:12%">{{bbdw|Command D}}</th>
<th style="width:12%">{{bbdw|Command S}}</th>
<th style="width:12%">{{bbdw|Command DD}}</th>
<th style="width:12%">{{bbdw|Command AH}}</th>
</tr>
<tr>
<th>Command Spread</th>
<td colspan="3">{{User:Chao|Command Spread|R=50|D=35|S=15}}</td><td></td><td></td>
</tr>
<tr>
<th>Command Spread 3</th>
<td>50%</td>
<td>35%</td>
<td>15%</td>
<td>-</td>
<td>-</td>
</tr>
<tr>
<th>Hit Count</th>
<td>{{{hitcountR|}}}</td>
<td>{{{hitcountD|}}}</td>
<td>{{{hitcountS|}}}</td>
<td>{{{hitcountDD|}}}</td>
<td>{{{hitcountAH|}}}</td>
</tr>
</table>


==Story Summary Template?==
* Click the "Find All" button on the far right (or <code>Alt</code> + <code>Enter</code>) to select all occurrences in current document
{{User:Chao|Story Summary
* Cut (Ctrl + X) or copy (Ctrl + C) all selections.
|title=Part 1: Wheel of Fate (運命の輪 ''Unmei no Ren'')
* Open a new document (or Ctrl + N) and paste (Ctrl + V) the selections.
|location=???
 
|summary1=A mysterious voice calls out, asking for a name.
This extracts all "File:<filename>.ogg" from the copied text. It should look like this:
|summary2=After safely warding off monsters, a mysterious lady Mai suddenly attacks. Just as it seems they've been cornered, the world warps and they're able to successfully escape the area.
<pre><nowiki>
File:BBDW Avenge 026b.ogg
File:BBDW Avenge 026a.ogg
</nowiki></pre>
 
* Go to Edit > Sort Lines to sort them alphabetically:
<pre><nowiki>
File:BBDW Avenge 026a.ogg
File:BBDW Avenge 026b.ogg
</nowiki></pre>
 
* Add the header and footer text around the text
<pre><nowiki>
==Other==
{{Quotes Header}}
File:BBDW Avenge 026a.ogg
File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
</nowiki></pre>
 
* Search for all the part b files (026b etc) with this regex:
<pre>b\.ogg$</pre>
 
* ALT+ENTER to select all occurrences of matched text.
* Press <code>HOME</code> on the keyboard to move each cursor to the beginning of each selected line.
* <code>BACKSPACE</code> to put each "b" quote on the previous line (with the "a" line)
* Add a comma and a space to get the following:
<pre><nowiki>
==Other==
{{Quotes Header}}
File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
</nowiki></pre>
 
* Select all lines beginning with "File:" (search for)
<pre>^File:</pre>
 
* <code>HOME</code> to move each cursor to the beginning of each selected line.
* Copy the following wikitext template, then navigate back to the text editor (do NOT click inside the text editor but click the icon on the menu bar or ALT+TAB back to it, else you will lose your selection)
* Paste
<pre><nowiki>
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
}}
{{User:Chao|Story Summary
{{Quotes
|title=Part 2: Fragments of Memory (記憶の断片 ''Kiyoku no Danpen'')
  |rowspan=0
|location=Ishana
  |situation=
|summary1=This is a summary of events happening during prologue part 2.
  |text=
|summary2=This is a summary of events happening after the battle in prologue part 2.
  |audio=
  |lang=ja
}}
}}
{{User:Chao|Story Summary
</nowiki></pre>
|title=
 
|location=
Next is the cool part about Sublime Text...
|summary1=
 
|summary2=
We should now have the following text, with the cursor before every <code>File:</code> after the wikitext template we just pasted.
* <code>SHIFT</code>+<code>END</code> to select from every cursor to the end of its line.
<pre><nowiki>
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=
  |lang=ja
}}File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
</nowiki></pre>
* Cut, then navigate WITH the arrow keys on the keyboard (not the mouse), and it will move every cursor accordingly.
* Move to the <code>|audio=</code> part of the template above it, and paste.
<pre><nowiki>
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}
</nowiki></pre>
* <code>END</code> to navigate to the end of each audio line.
* <code>CTRL</code> + Left arrow key twice to move the cursor before the ".ogg" file extension
* <code>CTRL</code> + <code>SHIFT</code> + arrow keys to select <code>026</code> (without the a/b letter suffix)
* Copy (CTRL+C)
* Navigate with arrow keys up to the <code>|situation=</code> part and paste, then up to the first <code>|situation=</code> and paste again
<pre><nowiki>
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=026
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=026
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}
</nowiki></pre>
* Finally, remove File: prefix - search for the following
<code>File:</code>
* ALT+ENTER to select all
* BACKSPACE to delete all selections


==BBDW Character Skill Levels==
And now we're done and can copy/paste the text into the bottom of the [[:Category:Quotes_Subpage|character's quotes page]].
Freeform table?
<pre><nowiki>
<table class="wikitable" style="width:100%;text-align:center;">
==Other==
<tr><th style="width:150px;">Effect</th>
{{Quotes Header}}
<th>1</th><th>2</th><th>3</th><th>4</th><th>5</th><th>6</th><th>7</th><th>8</th><th>9</th><th>10</th></tr>
{{Quotes
<tr><th>Effect 1
  |rowspan=2
</th><!-- 1--><td>100
  |situation=026
</td><!-- 2--><td>120
  |text=
</td><!-- 3--><td>140
  |lang=en
</td><!-- 4--><td>160
}}
</td><!-- 5--><td>180
{{Quotes
</td><!-- 6--><td>200
  |rowspan=0
</td><!-- 7--><td>220
  |situation=026
</td><!-- 8--><td>240
  |text=
</td><!-- 9--><td>260
  |audio=BBDW Avenge 026a.ogg, BBDW Avenge 026b.ogg
</td><!--10--><td>280
  |lang=ja
</td></tr>
}}
<tr><th>Effect 2
{{Quotes Footer}}
</th><!-- 1--><td>
</nowiki></pre>
</td><!-- 2--><td>
|}
</td><!-- 3--><td>
</td><!-- 4--><td>
</td><!-- 5--><td>
</td><!-- 6--><td>
</td><!-- 7--><td>
</td><!-- 8--><td>
</td><!-- 9--><td>
</td><!--10--><td>
</td></tr>
<tr><th>Cooldown
</th><!-- 1--><td>5
</td><!-- 2--><td>5
</td><!-- 3--><td>5
</td><!-- 4--><td>5
</td><!-- 5--><td>5
</td><!-- 6--><td>5
</td><!-- 7--><td>5
</td><!-- 8--><td>5
</td><!-- 9--><td>5
</td><!--10--><td>5
</td></tr>
</table>
</noinclude>

Latest revision as of 17:55, 4 June 2022

Notes

Adding BBDW Audio Files to the Quotes Page
  • Add audio files that were uploaded in bulk to the character's BBDW quotes page.
  • The idea is to grab the filenames from the contribution list (or file upload list) so we have the real filenames used on the wiki, and then to format them accordingly.
  • This works better (is more efficient) the more files we have to apply this to at once. Can even be files for multiple characters.
  • These instructions assume the use of Sublime Text 3, or another advanced text editor that supports multiple selections and searches with regular expressions.
Steps:
  • Select and copy into a new document the contribs page text for the user who uploaded the files.

It'll look something like this:

    03:22, 4 June 2022 diff hist +359‎ N File:BBDW Avenge 026b.ogg ‎ Uploaded a work by Arc System Works from BlazBlue Alternative: Dark War with UploadWizard current Tag: Upload Wizard
    03:22, 4 June 2022 diff hist +359‎ N File:BBDW Avenge 026a.ogg ‎ Uploaded a work by Arc System Works from BlazBlue Alternative: Dark War with UploadWizard current Tag: Upload Wizard
  • In the text editor, pull up the search bar (Ctrl+F) and search for: (make sure using regular expressions (regex) is selected)
File:[A-Za-z0-9 ]*\.ogg
  • Click the "Find All" button on the far right (or Alt + Enter) to select all occurrences in current document
  • Cut (Ctrl + X) or copy (Ctrl + C) all selections.
  • Open a new document (or Ctrl + N) and paste (Ctrl + V) the selections.

This extracts all "File:<filename>.ogg" from the copied text. It should look like this:

File:BBDW Avenge 026b.ogg
File:BBDW Avenge 026a.ogg
  • Go to Edit > Sort Lines to sort them alphabetically:
File:BBDW Avenge 026a.ogg
File:BBDW Avenge 026b.ogg
  • Add the header and footer text around the text
==Other==
{{Quotes Header}}
File:BBDW Avenge 026a.ogg
File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
  • Search for all the part b files (026b etc) with this regex:
b\.ogg$
  • ALT+ENTER to select all occurrences of matched text.
  • Press HOME on the keyboard to move each cursor to the beginning of each selected line.
  • BACKSPACE to put each "b" quote on the previous line (with the "a" line)
  • Add a comma and a space to get the following:
==Other==
{{Quotes Header}}
File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
  • Select all lines beginning with "File:" (search for)
^File:
  • HOME to move each cursor to the beginning of each selected line.
  • Copy the following wikitext template, then navigate back to the text editor (do NOT click inside the text editor but click the icon on the menu bar or ALT+TAB back to it, else you will lose your selection)
  • Paste
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=
  |lang=ja
}}

Next is the cool part about Sublime Text...

We should now have the following text, with the cursor before every File: after the wikitext template we just pasted.

  • SHIFT+END to select from every cursor to the end of its line.
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=
  |lang=ja
}}File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
{{Quotes Footer}}
  • Cut, then navigate WITH the arrow keys on the keyboard (not the mouse), and it will move every cursor accordingly.
  • Move to the |audio= part of the template above it, and paste.
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}
  • END to navigate to the end of each audio line.
  • CTRL + Left arrow key twice to move the cursor before the ".ogg" file extension
  • CTRL + SHIFT + arrow keys to select 026 (without the a/b letter suffix)
  • Copy (CTRL+C)
  • Navigate with arrow keys up to the |situation= part and paste, then up to the first |situation= and paste again
==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=026
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=026
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}
  • Finally, remove File: prefix - search for the following

File:

  • ALT+ENTER to select all
  • BACKSPACE to delete all selections

And now we're done and can copy/paste the text into the bottom of the character's quotes page.

==Other==
{{Quotes Header}}
{{Quotes
  |rowspan=2
  |situation=026
  |text=
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=026
  |text=
  |audio=BBDW Avenge 026a.ogg, BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}