User:Raffriff42/Wiki notes

From Avisynth wiki
< User:Raffriff42(Difference between revisions)
Jump to: navigation, search
m (edit)
m (SPECIAL CHARACTERS & MATH: edit)
 
Line 282: Line 282:
 
: ■ (square bullet, U+25A0)
 
: ■ (square bullet, U+25A0)
 
: ► (triangle bullet, U+25BA)
 
: ► (triangle bullet, U+25BA)
: &diams; (diamond bullet)
+
: (diamond bullet, <code>&diams;</code>)
: {{BoldColor|blue|120|&diams;}} [[:Template:BoldColor|BoldColor]] version:  
+
: {{BoldColor|blue|120|&diams;}} [[:Template:BoldColor|BoldColor]] version: &nbsp;// <code> <nowiki>{{</nowiki>BoldColor|blue|120|}} </code>
<nowiki>{{</nowiki>BoldColor|blue|120|&amp;diams;}}
+
 
;Arrows  
 
;Arrows  
 
: Arrows: &rarr; / &larr; / &harr;
 
: Arrows: &rarr; / &larr; / &harr;
 
;Misc
 
;Misc
: © / ® / µ / ¶ / ° / § / † / ‡
+
: © / ® / µ / ¶ / ° / § / † / ‡ / π / {{Serif|π}} &nbsp;// <code> <nowiki>{{</nowiki>Serif|π}} </code>
 
;Math Symbols
 
;Math Symbols
: 2×3; ''Y'' '''·''' ({{Serif|''k''}}/256 + 1); &radic;2; π ≠ 3
+
: 2×3; ''Y'' '''·''' ({{Serif|''k''}}/256 + 1); &radic;2
 
;Simple math formatting with [[:Template:Serif]]:
 
;Simple math formatting with [[:Template:Serif]]:
:{{FuncArg|level}} = {{Serif|10}}<sup> {{Serif|'''dB''' / 20}}</sup>
+
:{{Serif|10}}<sup> {{Serif|'''dB''' / 20}}</sup> &nbsp;// <code> <nowiki>{{</nowiki>Serif|10}}&lt;sup> <nowiki>{{</nowiki>Serif|<nowiki>'''</nowiki>dB<nowiki>'''</nowiki> / 20}}&lt;/sup> </code>
:{{Serif|j}},{{Serif|k}}=1,2
+
:{{Serif|P<sub>''n''</sub>}} &nbsp;// <code> <nowiki>{{</nowiki>Serif|P&lt;sub><nowiki>''</nowiki>n<nowiki>''</nowiki>&lt;/sub>}} </code>
:{{Serif|P<sub>''n''</sub>}} luma differs from {{Serif|P}} luma by more than {{FuncArg|luma_threshold}}
+
<nowiki>{{</nowiki>FuncArg|level}} = {{Serif|10}}<sup> <nowiki>{{</nowiki>Serif|'''dB''' / 20}}</sup>
+
<nowiki>{{</nowiki>Serif|j}},<nowiki>{{</nowiki>Serif|k}}=1,2
+
<nowiki>{{</nowiki>Serif|P<sub>''n''</sub>}} luma differs from <nowiki>{{</nowiki>Serif|P}} luma by more than {{FuncArg|luma_threshold}}
+
 
;Complex math formatting:  
 
;Complex math formatting:  
 
: Enter the formula in Wikipedia's math editor, save the image & upload to the AviSynth wiki -- see this [https://en.wikipedia.org/wiki/User:XyKyWyKy/sandbox Wikipedia sandbox].
 
: Enter the formula in Wikipedia's math editor, save the image & upload to the AviSynth wiki -- see this [https://en.wikipedia.org/wiki/User:XyKyWyKy/sandbox Wikipedia sandbox].
  
 
. . . . . . . . . . . . . .
 
. . . . . . . . . . . . . .

Latest revision as of 02:16, 18 March 2016


Contents

[edit] Mediawiki

More special characters & useful wikicode knowledge at Mediawiki Help:Formatting


[edit] MAX-WIDTH (avoid ultra-wide paragraphs)

<div style="max-width:62em" >
text...
</div>

Before:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

After:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

(set width to preference)
(create inside < h2 > blocks, not @ top level)

== H2 ==
<div style="max-width:62em" >
text...
</div>

== H2 ==
<div style="max-width:62em" >
text...
</div>


[edit] nicer looking PREFORMATTED box

<div {{BoxWidthIndent|24|2}} >
 BlankClip
</div>

Example:

BlankClip

(set width & indentation to preference)


[edit] NOTA BENE (line in left margin)

<div {{NotaBeneWidthIndent}} >
text...
</div>

<div {{NotaBeneWidthIndent|56|2|3px solid green}} >
text...
</div>

Example:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

(set width, indentation & line style to preference)
('Nota Bene' is probably not the correct name for this effect; the template is named after an old MS Word predefined style)


[edit] OLD BOX

{{OldBox}}
text...
{{End_OldBox}}

Example:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

(normally set at top level – cf. Original_AviSynth_announcement)


[edit] BLUE BOX

{{BlueBox}}
text...
{{End_BlueBox}}

Example:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

(note BlueBox uses <blockquote>, which sets width & indentation, and can affect formatting of the enclosed text)


[edit] GENERIC BOX

<div style="width:36em;margin-left:5em;padding:0.3em 0.7em;border:1px solid black;">
text...
</div>

Example:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed.

(set width & indentation to preference)


[edit] BLOCK QUOTE

Nicer looking blockquote

<div {{BoxWidthIndent|52|1}} >
{{BoldColor|blue|120|“}}
...text...
{{BoldColor|blue|120|”}} <sup>[cite link]</sup>
</div>

Example:

Avisynth is a scripting language and a collection of filters for simple non-linear editing tasks. What makes Avisynth unusual is that it does not generate output files. Instead, Avisynth scripts, which have the extension .AVS, can be opened directly in applications which read AVI files. When an AVS file is opened, Avisynth runs in the background, generating video and audio data according to the script and feeding it to the application as needed. [1]

(set width & indentation to preference)


[edit] FuncDef LINE BREAK

{{FuncDef
|FilterName(arguments,<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; more arguments)
}}

Example:
ColorYUV(clip [,
     float gain_y, float off_y, float gamma_y, float cont_y,
     float gain_u, float off_u, float gamma_u, float cont_u,
     float gain_v, float off_v, float gamma_v, float cont_v,
     string levels, string opt, bool showyuv, bool analyze,
     bool autowhite, bool autogain, bool conditional ] )


[edit] ListItemContinue

* Item 1
<div {{ListItemContinue}} >
More about Item 1.
</div>

Example:

  • Item 1

More about Item 1.


[edit] LINK ANCHORS etc


[edit] INVISIBLE TABLE FOR ALIGNING COLUMNS

{| border="0"
|-
|style="line-height:1.2em"|'''Item'''
|style="line-height:1.2em"|discussion...
|-
|style="line-height:1.2em"|'''Item 2'''
|style="line-height:1.2em"|discussion...
|-
|style="line-height:1.2em"|'''Item 2.1'''
|style="line-height:1.2em"|discussion...
|}

Before:
Item discussion...
Item 2 discussion...
Item 2.1 discussion...


After:

Item discussion...
Item 2 discussion...
Item 2.1 discussion...


Fake bullet list with alignment:

<div style="margin:0 0 0 0.2em" >
{| border="0"
|-
|style="line-height:1.2em"|{{BoldColor|#669999|85|■}} '''Item'''
|style="line-height:1.2em"|discussion...
|-
|style="line-height:1.2em"|{{BoldColor|#669999|85|■}} '''Item 2'''
|style="line-height:1.2em"|discussion...
|-
|style="line-height:1.2em"|{{BoldColor|#669999|85|■}} '''Item 2.1'''
|style="line-height:1.2em"|discussion...
|}
</div>

Before:

  • Item discussion...
  • Item 2 discussion...
  • Item 2.1 discussion...


After:

Item discussion...
Item 2 discussion...
Item 2.1 discussion...


[edit] HEADINGS

And their CSS equivalents

H2 19pt + HR

== H2 19pt + HR ==
== Syntax and Parameters ==
<div style="color:black; font: x-small sans-serif; font-size:150%; line-height:1.5em; font-weight:normal;">
----
H3 17pt
=== H3 17pt ===
<div style="color:black; font: x-small sans-serif; font-size:132%; line-height:1.5em; font-weight:bold;">
H4 14pt blue
==== H4 14pt blue ====
<div style="color:#4F81BD; font: x-small sans-serif; font-size:112%; line-height:1.5em; font-weight:bold;">
H5 13pt (=body+bold)
===== H5 13pt (=body+bold) =====
<div style="color:black; font: x-small sans-serif; font-size:100%; line-height:1.5em; font-weight:bold;">
H6 10pt
====== H6 10pt ======
<div style="color:black; font: x-small sans-serif; font-size:80%; line-height:1.5em; font-weight:bold;">
[edit] indented heading
<div style="margin:0 0 0 2em" >
===== indented heading =====
</div>


[edit] REDIRECTS

Redirect "top note" — emulate wikipedia Template:Redirect

Example: see Script_variables
"String" redirects here. For the String() conversion function, see Internal functions: String

 ''"String" redirects here. For the String() conversion function, 
 see [[Internal_functions#String|Internal functions: String]]''
 


[edit] CITATIONS

Emulate Wikipedia's Extension:Cite

(body text)
The sky is blue.<sup>[http://en.wikipedia.org/wiki/Rayleigh_scattering (1)]</sup>
. . .
(optional References section)
# [http://en.wikipedia.org/wiki/Rayleigh_scattering ''Rayleigh scattering''] (wikipedia.org)

The sky is blue.(1)
. . .

References
  1. Rayleigh scattering (wikipedia.org)


[edit] SPECIAL CHARACTERS & MATH

Dashes
– (medium dash)
— (long dash)
Bullets
• (bullet)
■ (square bullet, U+25A0)
► (triangle bullet, U+25BA)
♦ (diamond bullet, )
BoldColor version:  // {{BoldColor|blue|120|♦}}
Arrows
Arrows: → / ← / ↔
Misc
© / ® / µ / ¶ / ° / § / † / ‡ / π / π  // {{Serif|π}}
Math Symbols
2×3; Y · (k/256 + 1); √2
Simple math formatting with Template:Serif
10 dB / 20  // {{Serif|10}}<sup> {{Serif|'''dB''' / 20}}</sup>
Pn  // {{Serif|P<sub>''n''</sub>}}
Complex math formatting
Enter the formula in Wikipedia's math editor, save the image & upload to the AviSynth wiki -- see this Wikipedia sandbox.

. . . . . . . . . . . . . .

Personal tools