User:Beleg Tâl/Tools
Beleg Tâl |
Missing frame
[edit]{{framed page}}
Musical notation
[edit]<score>{ \override Score.TimeSignature #'stencil = ##f \new RhythmicStaff \stopStaff \stemDown \hideNotes c-| }</score>
Script-fu
[edit]Best for drawings that are black and white, not greyscale
(script-fu-register
"script-fu-bab-ballads" ;func name
"Bab Ballads" ;menu label
"Removes the background of a b/w photo,
makes it transparent, and saves to
specified location" ;description
"Beleg Tâl" ;author
"CC0" ;copyright notice
"2014-05-06" ;date created
"RGB*" ;image type that the script works on
SF-IMAGE "Input Image" 0
SF-DRAWABLE "Input Drawable" 0
SF-STRING "Text" "image.png" ;a string variable
)
(script-fu-menu-register "script-fu-bab-ballads"
"<Image>/Script-Fu/Bab-Ballads")
(define (script-fu-bab-ballads image drawable text)
(let* (
(filename (string-append "C:\\Users\\Beleg Tâl\\Desktop\\Wikisource\\Images\\" text) )
)
(gimp-desaturate drawable)
(gimp-brightness-contrast drawable 0 50)
(plug-in-colortoalpha RUN-NONINTERACTIVE image drawable '(255 255 255))
(file-png-save-defaults RUN-NONINTERACTIVE image drawable filename filename)
)
)
Interwiki
[edit]Interwiki transclusions
Style is defined at mul:MediaWiki:InterWikiTransclusion.js
This template is used for transcluding a page ("Page" namespace) from another Wikisource domain into another page ("Page" namespace):
Code:
{{iwpage|language code}}
E.g. br:Page:Barzaz Breiz, huitième édition.djvu/13 has {{iwpage|fr}}
"iwpage" class is defined at oldwikisource:MediaWiki:InterWikiTransclusion.js.
This template is used for transcluding various pages (from "Page" namespace) from another Wikisource domain:
Code:
{{iwpages|language code|Title of the Index page|page_from|page_to|section_from|section_to}}
(section_from and section_too are optional.)
And this will do the following at the end Wikisource:
<pages index="Title of the Index page" from=page_from to=page_to fromsection=section_from tosection=section_to/>
Example
{{iwpages|el|On two Greek inscriptions, from Kamiros and Ialysos, in Rhodes, respectively (1878).djvu|4|4|Greek|Greek}}
{{IwpageSection}}
[edit]This template is used for transcluding a section from one page (from "Page" namespace) from another Wikisource domain into another page ("Page" namespace):
Code:
{{IwpageSection|language code|Title of the page from the outer Wikisource|section name}}
For example:
{{IwpageSection|ca|Cansons de la terra (1866).djvu/92|oc}}
will bring from ca (Catalan) Wikisource, the section named "oc" from the page named "Cansons de la terra (1866).djvu/92":
This template allows the transclusion of a page (in any namespace) from another Wikisource domain; useful for multilingual books. Parameters (used at "iw_trans" function at oldwikisource:MediaWiki:InterWikiTransclusion.js):
- The first is the ISO code of the language ("es" for Spanish, "fr" for French, etc.).
- The second one, is the title of the outer Wikisource. The namespace prefix must be included.
- num: page number that will appear.
- position: indentation in "em" units. By default, 1em.