User:Chao: Difference between revisions

17,076 editsJoined 5 November 2017
m (test tabs gadget)
m (fixing some wrong commands lmao)
 
(34 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
-->{{#if:{{{tab3|}}}|<li id="{{{name}}}tabtag3" class="{{{tab3class|}}}{{{tabclass|}}}" style="{{{tab3style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab3|{{{tab3|}}}]]</li>}}<!--
|-
-->{{#if:{{{tab4|}}}|<li id="{{{name}}}tabtag4" class="{{{tab4class|}}}{{{tabclass|}}}" style="{{{tab4style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab4|{{{tab4|}}}]]</li>}}<!--
|
-->{{#if:{{{tab5|}}}|<li id="{{{name}}}tabtag5" class="{{{tab5class|}}}{{{tabclass|}}}" style="{{{tab5style|}}}{{{tabstyle|}}}">[[#{{{name}}}tab5|{{{tab5|}}}]]</li>}}<!--
* 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.
</ul>
* 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 id="{{{name}}}tab4" class="contentsclass" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">{{{tab4content|}}}</div>
<div id="{{{name}}}tab5" class="contentsclass" style="{{#ifeq:{{#var:key}}|1||display: none;}}{{{contents{{#var:key}}style|}}}{{{contentsstyle|}}}">{{{tab5content|}}}</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
{{Infobox Character
* Cut (Ctrl + X) or copy (Ctrl + C) all selections.
| nameJp          =ノエル=ヴァーミリオン
* Open a new document (or Ctrl + N) and paste (Ctrl + V) the selections.
| nameEn          =Noel Vermillion
 
| nameIPA          =
This extracts all "File:<filename>.ogg" from the copied text. It should look like this:
| nameAlt          =
<pre><nowiki>
| image            =
File:BBDW Avenge 026b.ogg
{{User:Chao
File:BBDW Avenge 026a.ogg
|name=noel-images
</nowiki></pre>
|divclass=landscape
 
|containerstyle=width:300px;
* Go to Edit > Sort Lines to sort them alphabetically:
|tabstyle=line-height:18px;height:auto;padding:.4em;
<pre><nowiki>
|tab1=BBCT
File:BBDW Avenge 026a.ogg
|tab2=BBCS
File:BBDW Avenge 026b.ogg
|tab3=BBCP
</nowiki></pre>
|tab4=BBCF
 
|tab5=BBTAG
* Add the header and footer text around the text
|tab1content=[[File:BlazBlue_Calamity_Trigger_Noel_Vermillion_Main.png|300x380px]]
<pre><nowiki>
|tab2content=[[File:BlazBlue_Continuum_Shift_Noel_Vermillion_Main.png|300x380px]]
==Other==
|tab3content={{User:Chao|name=BBCF-image
{{Quotes Header}}
|tab1=A
File:BBDW Avenge 026a.ogg
|tab2=B
File:BBDW Avenge 026b.ogg
|tabstyle=line-height:18px;height:auto;padding:.4em;
{{Quotes Footer}}
|tab1content=[[File:BlazBlue_Chrono_Phantasma_Noel_Vermillion_Main(A).png|300x380px]]
</nowiki></pre>
|tab2content=[[File:BlazBlue_Chrono_Phantasma_Noel_Vermillion_Main(B).png|300x380px]]
 
* 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
}}
{{Quotes
  |rowspan=0
  |situation=
  |text=
  |audio=
  |lang=ja
}}
}}
|tab4content={{User:Chao|name=BBCF-image
</nowiki></pre>
|tab1=A
 
|tab2=B
Next is the cool part about Sublime Text...
|tabstyle=line-height:18px;height:auto;padding:.4em;
 
|tab1content=[[File:BlazBlue_Central_Fiction_Noel_Vermillion_Main(A).png|300x380px]]
We should now have the following text, with the cursor before every <code>File:</code> after the wikitext template we just pasted.
|tab2content=[[File:BlazBlue_Central_Fiction_Noel_Vermillion_Main(B).png|300x380px]]
* <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
}}
}}
|tab5content=[[File:BlazBlue_Cross_Tag_Battle_Noel_Vermillion_Main.png|300x380px]]
{{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
}}
}}
| name            =Noel Vermillion
{{Quotes
| birthday        =December 25
  |rowspan=0
  |situation=
  |text=
  |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
  |lang=ja
}}
}}
===== <font style="visibility:hidden" size="0">Hidden Section Test</font> =====
{{Quotes Footer}}
Plain text
</nowiki></pre>
===== Visible Section Test =====
 
Plain text
* <code>END</code> to navigate to the end of each audio line.
<h5> HTML Section 5 Test</h6>
* <code>CTRL</code> + Left arrow key twice to move the cursor before the ".ogg" file extension
Plain text
* <code>CTRL</code> + <code>SHIFT</code> + arrow keys to select <code>026</code> (without the a/b letter suffix)
{{User:Chao
* Copy (CTRL+C)
|name=bbtag
* Navigate with arrow keys up to the <code>|situation=</code> part and paste, then up to the first <code>|situation=</code> and paste again
|divclass=landscape
<pre><nowiki>
|tab1=1.0
==Other==
|tab2=1.5
{{Quotes Header}}
|tab3=2.0
{{Quotes
|tab1content=Here's a test.
   |rowspan=2
===== <font style="visibility:hidden" size="0">Tab 1 Hidden Header</font> =====
   |situation=026
{{Command List (BBTAG)
   |text=
| smart_combo =
   |lang=en
  {{Command List Row
    |EN=Smart Combo 1
    |JP=
    |image=
    |input=A · A · A · A
  }}
  {{Command List Row
    |EN=Smart Combo 2
    |JP=
    |image=
    |input=← + A · A · A · A
  }}
  {{Command List Row
    |EN=Smart Combo 3
    |JP=
    |image=
    |input=B · B · B
  }}
  {{Command List Row
    |EN=Smart Combo 4
    |JP=
    |image=
    |input=Crouching B · B
  }}
  {{Command List Row
    |EN=Smart Combo 5
    |JP=
    |image=
    |input=Midair A · A
  }}
| specials =
  {{Command List Row
    |EN=Special Attack 1
    |JP=
    |image=
    |input=← + A
  }}
| reversal =
  {{Command List Row
    |EN=
    |JP=大人しくしてな!
    |image=
    |input=A + D
    |desc=
  }}
| skills =
  {{Command List Row
    |EN=Maha Ziodyne
    |JP=マハジオダイン
    |image=
    |input=↓↘→ + A or B (Air OK)
  }}
  {{Command List Row
    |EN=Heat Riser
    |JP=ヒートライザ
    |image=
    |input=↓↙← + A
  }}
  {{Command List Row
    |EN=Magatsu Mandala
    |JP=マギツマンダラ
    |image=
    |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=<h5> <font style="visibility:hidden" size="0">Tab 2 Hidden Header</font> </h5>
{{Quotes
Second test goes here.
   |rowspan=0
{{Command List (BBTAG)
   |situation=026
| smart_combo =
   |text=
   {{Command List Row
   |audio=File:BBDW Avenge 026a.ogg, File:BBDW Avenge 026b.ogg
    |EN=Smart Combo 1
   |lang=ja
    |JP=
}}
    |image=
{{Quotes Footer}}
    |input=A · A · A · A
</nowiki></pre>
  }}
 
  {{Command List Row
* Finally, remove File: prefix - search for the following
    |EN=Smart Combo 2
<code>File:</code>
    |JP=
* ALT+ENTER to select all
    |image=
* BACKSPACE to delete all selections
    |input=B · B · B · B
 
  }}
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=Smart Combo 3
==Other==
    |JP=
{{Quotes Header}}
    |image=
{{Quotes
    |input=In mid-air A · A
   |rowspan=2
   }}
   |situation=026
  {{Command List Row
   |text=
    |EN=Special Attack 1
   |lang=en
    |JP=
    |image=
    |input=← + A
   }}
| specials =  
   {{Command List Row
    |EN=Inferno Divider
    |JP=
    |image=
    |input=A + D (Air OK)
    |desc=
  }}
  {{Command List Row
    |EN= ⇒ Uppercut
    |JP=
    |image=
    |input= During Inferno Divider A or B or C
  }}
  {{Command List Row
    |EN=  ⇒ Axe Kick
    |JP=
    |image=
    |input=  During Uppercut A or B or C
  }}
  {{Command List Row
    |EN=Dead Spike
    |JP=
    |image=
    |input=↓↘→ + A or B
  }}
  {{Command List Row
    |EN=Hell's Fang
    |JP=
    |image=
    |input=↓↙← + A
  }}
  {{Command List Row
    |EN= ⇒ Follow-up Attack
    |JP=
    |image=
    |input= During Hell's Fang A or B or C
  }}
  {{Command List Row
    |EN=Gauntlet Hades
    |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}}