User:Chao: Difference between revisions

17,076 editsJoined 5 November 2017
m (test tabs gadget)
m (fixing some wrong commands lmao)
 
(36 intermediate revisions by the same user not shown)
Line 1: Line 1:
<includeonly><div id="tabs-{{{name}}}" class="tabdiv {{{divclass}}}" style="containerstyle">


<ul style="ulstyle">
==Notes==
<li id="{{{name}}}tabtag1" class="{{{tab1class|}}}{{{tabclass|}}}" style="{{{tab1style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab1|{{{tab1|}}}]]</li><!--
{| class="wikitable mw-collapsible mw-collapsed"
--><li id="{{{name}}}tabtag2" class="{{{tab2class|}}}{{{tabclass|}}}" style="{{{tab2style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab2|{{{tab2|}}}]]</li><!--
! Adding BBDW Audio Files to the Quotes Page
--><li id="{{{name}}}tabtag3" class="{{{tab3class|}}}{{{tabclass|}}}" style="{{{tab3style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab3|{{{tab3|}}}]]</li><!--
|-
-->
|
</ul>
* 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>


<div id="{{{name}}}tab1" class="contentsclass" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">{{{tab1content|}}}</div>
* In the text editor, pull up the search bar (Ctrl+F) and search for: (make sure using regular expressions (regex) is selected)
<div id="{{{name}}}tab2" class="contentsclass" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">{{{tab2content|}}}</div>
<pre>File:[A-Za-z0-9 ]*\.ogg</pre>
<div id="{{{name}}}tab3" class="contentsclass" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">{{{tab3content|}}}</div>


</div></includeonly><noinclude>
* 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
* Cut (Ctrl + X) or copy (Ctrl + C) all selections.
|name=bbtag
* Open a new document (or Ctrl + N) and paste (Ctrl + V) the selections.
|divclass=landscape
 
|tab1=1.0
This extracts all "File:<filename>.ogg" from the copied text. It should look like this:
|tab2=1.5
<pre><nowiki>
|tab3=2.0
File:BBDW Avenge 026b.ogg
|tab1content=Here's a test.
File:BBDW Avenge 026a.ogg
====== <font style="visibility:hidden" size="0">Version 1.0</font> ======
</nowiki></pre>
{{Command List (BBTAG)
 
| smart_combo =
* Go to Edit > Sort Lines to sort them alphabetically:
  {{Command List Row
<pre><nowiki>
    |EN=Smart Combo 1
File:BBDW Avenge 026a.ogg
    |JP=
File:BBDW Avenge 026b.ogg
    |image=
</nowiki></pre>
    |input=A · A · A · A
 
  }}
* Add the header and footer text around the text
  {{Command List Row
<pre><nowiki>
    |EN=Smart Combo 2
==Other==
    |JP=
{{Quotes Header}}
    |image=
File:BBDW Avenge 026a.ogg
    |input=← + A · A · A · A
File:BBDW Avenge 026b.ogg
  }}
{{Quotes Footer}}
  {{Command List Row
</nowiki></pre>
    |EN=Smart Combo 3
 
    |JP=
* Search for all the part b files (026b etc) with this regex:
    |image=
<pre>b\.ogg$</pre>
    |input=B · B · B
 
  }}
* ALT+ENTER to select all occurrences of matched text.
  {{Command List Row
* Press <code>HOME</code> on the keyboard to move each cursor to the beginning of each selected line.
    |EN=Smart Combo 4
* <code>BACKSPACE</code> to put each "b" quote on the previous line (with the "a" line)
    |JP=
* Add a comma and a space to get the following:
    |image=
<pre><nowiki>
    |input=Crouching B · B
==Other==
  }}
{{Quotes Header}}
  {{Command List Row
File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
    |EN=Smart Combo 5
{{Quotes Footer}}
    |JP=
</nowiki></pre>
    |image=
 
    |input=Midair A · A
* Select all lines beginning with "File:" (search for)
  }}
<pre>^File:</pre>
| specials =
 
  {{Command List Row
* <code>HOME</code> to move each cursor to the beginning of each selected line.
    |EN=Special Attack 1
* 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)
    |JP=
* Paste
    |image=
<pre><nowiki>
    |input=← + A
{{Quotes
  }}
  |rowspan=2
| reversal =
  |situation=
  {{Command List Row
  |text=
    |EN=
  |lang=en
    |JP=大人しくしてな!
}}
    |image=
{{Quotes
    |input=A + D
  |rowspan=0
    |desc=
  |situation=
  }}
  |text=
| skills =
   |audio=
  {{Command List Row
   |lang=ja
    |EN=Maha Ziodyne
}}
    |JP=マハジオダイン
</nowiki></pre>
    |image=
 
    |input=↓↘→ + A or B (Air OK)
Next is the cool part about Sublime Text...
  }}
 
  {{Command List Row
We should now have the following text, with the cursor before every <code>File:</code> after the wikitext template we just pasted.
    |EN=Heat Riser
* <code>SHIFT</code>+<code>END</code> to select from every cursor to the end of its line.
    |JP=ヒートライザ
<pre><nowiki>
    |image=
==Other==
    |input=↓↙← + A
{{Quotes Header}}
  }}
{{Quotes
  {{Command List Row
  |rowspan=2
    |EN=Magatsu Mandala
  |situation=
    |JP=マギツマンダラ
   |text=
    |image=
   |lang=en
    |input=↓↙← + B
    |desc=
  }}
  {{Command List Row
    |EN=Ghastly Wail
    |JP=亡者の嘆き
    |image=
    |input=↓↙← + C
   }}
| extra_skill=
   {{Command List Row
    |EN=
    |JP=空間殺法
    |image=
    |input=↓↘→ + C (Air also)
    |desc=
  }}
| distortions =
  {{Command List Row
    |EN=Atom Smasher
    |JP=木っ端微塵斬り
    |image=
    |input=↓↘→ + B + C (Air also)
    |desc=
  }}
  {{Command List Row
    |EN=
    |JP=禍津 ・ 十文字斬り
    |image=
    |input=↓↙← + B + C
    |desc=
  }}
| dist_duo =
  {{Command List Row
    |EN=
    |JP=禍津 ・ 十文字斬り
    |image=
    |input=During the main character's Distortion Skill SP
    |desc=
   }}
| astral =  
   {{Command List Row
    |EN=
    |JP=
    |image=
    |input=↓↓↓ + B + C
    |desc=
  }}
}}
}}
|tab2content=<h6> <font style="visibility:hidden" size="0">5A</font> </h6>
{{Quotes
Second test goes here.
  |rowspan=0
{{Command List (BBTAG)
   |situation=
| smart_combo =  
  |text=
   {{Command List Row
   |audio=
    |EN=Smart Combo 1
   |lang=ja
    |JP=
}}File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
    |image=
{{Quotes Footer}}
    |input=A · A · A · A
</nowiki></pre>
   }}
* Cut, then navigate WITH the arrow keys on the keyboard (not the mouse), and it will move every cursor accordingly.
  {{Command List Row
* Move to the <code>|audio=</code> part of the template above it, and paste.
    |EN=Smart Combo 2
<pre><nowiki>
    |JP=
==Other==
    |image=
{{Quotes Header}}
    |input=B · B · B · B
{{Quotes
  }}
  |rowspan=2
   {{Command List Row
  |situation=
    |EN=Smart Combo 3
  |text=
    |JP=
  |lang=en
    |image=
}}
    |input=In mid-air A · A
{{Quotes
  }}
  |rowspan=0
  {{Command List Row
  |situation=
    |EN=Special Attack 1
  |text=
    |JP=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
    |image=
   |lang=ja
    |input=← + A
}}
  }}
{{Quotes Footer}}
| specials =
</nowiki></pre>
  {{Command List Row
 
    |EN=Inferno Divider
* <code>END</code> to navigate to the end of each audio line.
    |JP=
* <code>CTRL</code> + Left arrow key twice to move the cursor before the ".ogg" file extension
    |image=
* <code>CTRL</code> + <code>SHIFT</code> + arrow keys to select <code>026</code> (without the a/b letter suffix)
    |input=A + D (Air OK)
* Copy (CTRL+C)
    |desc=
* 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>
  {{Command List Row
==Other==
    |EN= ⇒ Uppercut
{{Quotes Header}}
    |JP=
{{Quotes
    |image=
  |rowspan=2
    |input= During Inferno Divider A or B or C
  |situation=026
  }}
  |text=
  {{Command List Row
  |lang=en
    |EN= ⇒ Axe Kick
}}
    |JP=
{{Quotes
    |image=
  |rowspan=0
    |input= During Uppercut A or B or C
  |situation=026
  }}
  |text=
  {{Command List Row
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
    |EN=Dead Spike
   |lang=ja
    |JP=
}}
    |image=
{{Quotes Footer}}
    |input=↓↘→ + A or B
</nowiki></pre>
  }}
 
   {{Command List Row
* Finally, remove File: prefix - search for the following
    |EN=Hell's Fang
<code>File:</code>
    |JP=
* ALT+ENTER to select all
    |image=
* BACKSPACE to delete all selections
    |input=↓↙← + A
 
  }}
And now we're done and can copy/paste the text into the bottom of the [[:Category:Quotes_Subpage|character's quotes page]].
  {{Command List Row
<pre><nowiki>
    |EN= ⇒ Follow-up Attack
==Other==
    |JP=
{{Quotes Header}}
    |image=
{{Quotes
    |input= During Hell's Fang A or B or C
  |rowspan=2
  }}
  |situation=026
  {{Command List Row
   |text=
    |EN=Gauntlet Hades
   |lang=en
    |JP=
    |image=
    |input=↓↙← + B (Air OK)
    |desc=
  }}
  {{Command List Row
    |EN= ⇒ Rising Kick
    |JP=
    |image=
    |input= During Gauntlet Hades A or B or C
  }}
  {{Command List Row
    |EN=Nightmare Edge
    |JP=
    |image=
    |input=In mid-air ↓↙← + A
  }}
  {{Command List Row
    |EN= ⇒ Follow-up Attack
    |JP=
    |image=
    |input= During Nightmare Edge A or B or C
  }}
| skills =
  {{Command List Row
    |EN=Dead Spike
    |JP=
    |image=
    |input=↓↘→ + C
  }}
   {{Command List Row
    |EN= ⇒ Follow-up Attack 1
    |JP=
    |image=
    |input= During C Dead Spike A or B or C
  }}
  {{Command List Row
    |EN=  ⇒ Follow-up Attack 2
    |JP=
    |image=
    |input=  During C Dead Spike Follow-up Attack 1 A or B or C
  }}
  {{Command List Row
    |EN=Blood Scythe
    |JP=
    |image=
    |input=↓↙← + C (Air OK)
  }}
| distortions =
  {{Command List Row
    |EN=Carnage Scissors
    |JP=
    |image=
    |input=↓↘→ + B + C
    |desc=
  }}
  {{Command List Row
    |EN=Devoured by Darkness
    |JP=
    |image=
    |input=↓↙← + B + C
    |desc=
  }}
  {{Command List Row
    |EN=Devoured by Darkness
    |JP=
    |image=
    |input=During the main character's Distortion Skill SP
    |desc=
   }}
| astral =  
   {{Command List Row
    |EN=Black Onslaught
    |JP=
    |image=
    |input=↓↓↓ + B + C
    |desc=
  }}
}}
}}
|tab3content=3
{{Quotes
  |rowspan=0
  |situation=026
  |text=
  |audio=BBDW Avenge 026a.ogg, BBDW Avenge 026b.ogg
  |lang=ja
}}
}}
</noinclude>
{{Quotes Footer}}
</nowiki></pre>
|}

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}}