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 (fixing some wrong commands lmao)
 
(9 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly>{{#switch:{{{1|}}}
|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"
|Skill Levels=
! Adding BBDW Audio Files to the Quotes Page
<table class="wikitable" style="width:100%;text-align:center;">
|-
<tr><th style="width:150px;">Skill Level</th>
|
<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>
* Add audio files that were uploaded in bulk to the character's BBDW quotes page.
{{#if:{{{effect1|}}}|<tr><th>{{{effect1|}}}</th>
* 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.
{{#arraymap:{{{effect1values|}}}|,|x|<td>x</td>|}}
* This works better (is more efficient) the more files we have to apply this to at once. Can even be files for multiple characters.
</tr>}}{{#if:{{{effect2|}}}|</tr><tr><th>{{{effect2|}}}</th>
* These instructions assume the use of Sublime Text 3, or another advanced text editor that supports multiple selections and searches with regular expressions.
{{#arraymap:{{{effect2values|}}}|,|x|<td>x</td>|}}
|-
</tr>}}{{#if:{{{effect3|}}}|</tr><tr><th>{{{effect3|}}}</th>
| style="text-align:left;" | Steps:
{{#arraymap:{{{effect3values|}}}|,|x|<td>x</td>|}}
* Select and copy into a new document the contribs page text for the user who uploaded the files.
</tr>}}
It'll look something like this:
</table><!--
<pre><nowiki>
-->}}</includeonly><noinclude>
    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
==Story Summary Template?==
    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
{{User:Chao|Story Summary
</nowiki></pre>
|title=Part 1: Wheel of Fate (運命の輪 ''Unmei no Ren'')
 
|location=???
* In the text editor, pull up the search bar (Ctrl+F) and search for: (make sure using regular expressions (regex) is selected)
|summary1=A mysterious voice calls out, asking for a name.
<pre>File:[A-Za-z0-9 ]*\.ogg</pre>
|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.
 
* Click the "Find All" button on the far right (or <code>Alt</code> + <code>Enter</code>) 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:
<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
|title=
|location=
|summary1=
|summary2=
}}
}}
</nowiki></pre>
Next is the cool part about Sublime Text...


==BBDW Character Skill Levels==
We should now have the following text, with the cursor before every <code>File:</code> after the wikitext template we just pasted.
Freeform table?
* <code>SHIFT</code>+<code>END</code> to select from every cursor to the end of its line.
{{User:Chao|Skill Levels
<pre><nowiki>
|effect1=ATK Up (%)
==Other==
|effect1values=15,15,15,15,20,20,20,20,25,30
{{Quotes Header}}
|effect2=Evasion (Turns)
{{Quotes
|effect2values=1,1,1,1,1,1,1,1,1,1
  |rowspan=2
|effect3=Cooldown (Turns)
  |situation=
|effect3values=,,,,,,,,,
  |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>
<pre><nowiki>
{{User:Chao|Skill Levels
==Other==
|effect1=ATK Up
{{Quotes Header}}
|effect1values=15,15,15,15,20,20,20,20,25,30
{{Quotes
|effect2=Evasion (Turns)
  |rowspan=2
|effect2values=1,1,1,1,1,1,1,1,1,1
  |situation=
|effect3=Cooldown
  |text=
|effect3values=,,,,,,,,,
  |lang=en
}}
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
{{Quotes Footer}}
</nowiki></pre>
</nowiki></pre>


==Search descriptions with regular expressions??==
* <code>END</code> to navigate to the end of each audio line.
For example, query for rows in [[Special:CargoTables/BBDW_Character_Status_Application|BBDW Character Status Application]] where the effect description matches 'ATK Up 20%':
* <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>


* <code><nowiki>|where=fxdesc LIKE '%ATK Up 20\%%'</nowiki></code> (search for "ATK Up 20%")
* Finally, remove File: prefix - search for the following
<code>File:</code>
* ALT+ENTER to select all
* BACKSPACE to delete all selections


<table class="wikitable">
And now we're done and can copy/paste the text into the bottom of the [[:Category:Quotes_Subpage|character's quotes page]].
<tr><th>Character</th><th>Skill Icon</th><th>Ability</th><th>Description</th><th>Statuses</th></tr>
<pre><nowiki>
{{#cargo_query:table=BBDW_Character_Status_Application
==Other==
|fields=charnameen,fxtype,fxnum,icon,nameen,namejp,CONCAT("")=fxcondition,SUBSTRING_INDEX(SUBSTRING_INDEX(fxdesc,'ATK Up ',-1),'and',1)=fxdesc,fxstatuses
{{Quotes Header}}
|where=fxstatuses HOLDS 'ATK Up'
{{Quotes
|order by=SUBSTRING_INDEX(SUBSTRING_INDEX(fxdesc,'ATK Up ',-1),'%',1)
  |rowspan=2
|format=template
  |situation=026
|template=BBDW_Character_Status_Application/display
  |text=
|named args=yes
  |lang=en
}}
{{Quotes
  |rowspan=0
  |situation=026
  |text=
  |audio=BBDW Avenge 026a.ogg, BBDW Avenge 026b.ogg
  |lang=ja
}}
}}
</table>
{{Quotes Footer}}
 
</nowiki></pre>
</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}}