User:Mpaa

 To The Inhabitants of SPACE IN GENERAL And H. C. IN PARTICULAR This Work is Dedicated By a Humble Native of Flatland In the Hope that Even as he was Initiated into the Mysteries Of THREE Dimensions Having been previously conversant With ONLY TWO So the Citizens of that Celestial Region May aspire yet higher and higher To the Secrets of FOUR FIVE OR EVEN SIX Dimensions Thereby contributing To the Enlargement of THE IMAGINATION And the possible Development Of that most rare and excellent Gift of MODESTY Among the Superior Races Of SOLID HUMANITY

TUSC
I am now proud owner of a TUSC account!

Templates
smaller block (less interline space)

hanging indent inherit

dropinitial

left margin

-- mdash -> alt (num keypad) 0230



Strike, better Bar

ShowTransclude:

linkable phrase start and linkable phrase end

Page status template in Swedish WS

Wikisource:Statistik in Swedish WS

Help
Help:Editing poetry

Formula

Table

w:User:Dcljr/Tables

Help talk:Public domain Copyright and translations

Copyright_tags

w:Wikipedia:Non-U.S._copyrights

Special pages
Special:MassDelete

Users
User:Phe statistics tool

Footnotes of foonotes
From: User:Inductiveload

Replace the outer with but leave the inner one alone.

For example, this text contains a footnote that itself contains a footnote.

Footnotes on more than one page
If the note is carried over on more than one print page, the solution is to use a named reference on the first page, and on subsequent pages containing the footnote use the syntax (use same name).

Notes at the end of a work
Have a look what I have done with, which is built upon another of my creations. If there are only a smaller number to do for the work, we can use the latter template directly, if you have quite a few references, then we can build a template specifically for the work, like I did. On the authorities page on the work (your link) we would add wrap each authority in a section tag, with an anchor outside of that. — billinghurst  sDrewth  00:45, 8 January 2012 (UTC)

Default layouts
From: User:Inductiveload

To use it, you have to add the following to your JS: importScript('User:Inductiveload/layout_override.js');

On the the page that you wish to set a default layout, you simply add the following template: where "Layout 2" is the desired layout name (as specified in MediaWiki:Common.js).

This overrides the user's cookie (which is how the layout persists normally) for that page only. If the next page the user views has no default layout template, the layout reverts to the user's cookie-stored layout (which is "Layout 1" for people who haven't changed it).

Indexes
From: User_talk:Cygnis_insignis Prometheus and Pandora| the title/substitute a page number with a link to that page, in that section repeated for each section of the work. If the number it is wrapped around was less than 11, it would create a link [[A Book of Myths/Prometheus and Pandora#9|9

Prometheus and Pandora|{{subst:#ifexpr:{{{1}}}<16|Pygmalion|{{subst:#ifexpr:{{{1}}}<26|Phaeton|{{subst:#ifexpr:{{{1}}}<31|Endymion|{{subst:#ifexpr:{{{1}}}<42|Orpheus|{{subst:#ifexpr:{{{1}}}<46|Apollo and Daphne|{{subst:#ifexpr:{{{1}}}<69|Psyche}}}}}}}}}}}}}}#{{{1}}}|{{{1}}}

How to apply, e.g. in a table: When saved, text is replaced.
 * some text
 * align=right|{{subst:User:xxx/test|17}}, {{subst:User:xxx/test|42}}, {{subst:User:xxx/test|53}}, {{subst:User:xxx/test|57}}

How to split a table across many Page: pages so they transclude neatly into one
See Help:Page_breaks

Indent tables
{| style="margin-left: 20px;"

List of Illustrations
Example: Page:Things_Seen_In_Holland_(1912).djvu/17

Commons tools
IA import tool, uploaded by commons:User:IaUploadBot

Outdent
ANDS UP!"

ANDS UP

HaithiTrust

 * https://babel.hathitrust.org/cgi/imgsrv/image?id=xxxx;seq=dddd;width={resolution}

Queries
http://en.wikisource.org/w/api.php?action=query&list=backlinks&bltitle=Popular_Science_Monthly/Volume_42/January_1893/Marriage_and_Kinship_Among_the_Ancient_Israelites&bllimit=5&blfilterredir=redirects

http://en.wikisource.org/w/api.php?action=query&list=backlinks&bltitle=Popular_Science_Monthly/Volume_42&bllimit=500

http://en.wikisource.org/w/api.php?action=query&generator=backlinks&gbltitle=Popular_Science_Monthly/Volume_42&gbllimit=500

http://en.wikisource.org/w/api.php?action=query&generator=backlinks&gbltitle=Popular_Science_Monthly/Volume_42&gbllimit=500&list=backlinks&bllimit=5&blfilterredir=redirects

http://en.wikisource.org/w/api.php?action=query&titles=User:Mpaa&prop=revisions&rvprop=content&rvsection=2

http://en.wikisource.org/w/api.php?action=query&generator=categorymembers&gcmtitle=Category:Popular%20Science%20Monthly%20Volume%201&gcmlimit=5000&prop=categories&cllimit=5000

PSM
Multi_part_articles

WikiProject Popular Science Monthly/Unrelated duplicate article titles

Drop initial with "

Authors
All authors script: User:Visviva/authors.py

add text
python ..\pywikipedia\pagefromfile.py -file:Filename.xml -safe -notitle -pt:90

python ..\pagefromfile.py -file:redirect.xml -safe -notitle

flags
-pt:90   prevents overflow of recent changes

Extended query
User:Phe/Scripts/query_ext.py

Pathoschild
add that to your JS then add the functions and setup lines from my regex script (add to your common.js, or a sub-script like mine)

User:Inductiveload/Regexp_toolbar.js

JSON

 * I use Firefox and Firebug. It's a simple combo, but sometimes like today I have only a locked-down computer with an old IE on it.
 * As for the JS used to process an API call to MediaWiki, if you have jQuery (which you will have on WMF sites) you use the getJSON function. The following code looks at a page, gets all the transcluded Page pages, and adds the title of each page to the top of the current HTML document with the first category that Page: page is in:

See also http://pastebin.com/kxzKCj9e.

http://api.jquery.com can tell you the jQuery functions purposes better than I can. The API URL is constructed thusly:
 * http://en.wikisource.org/w/api.php - path to the WS API interface
 * action=query - we wish to run a query on the database
 * titles=Hudibras/Part%201/Canto%201 - title of the page you are interested in
 * generator=templates - we are looking for transcluded pages, which are equivalent to templates for this purpose
 * gtllimit=500 - template generator limit of 500, the maximum for a non-bot user. It is very unlikely that you will exceed this on a single mainspace page, but it is likely you will exceed it if you try to find all the page in an index
 * gtlnamespace=104 - template generator namespace = 104 = Page:
 * prop=categories - we are interested in the categories of the transcluded pages
 * cllimit=500 - category limit = 500, max, etc
 * format=json - return the data in JSON (JS data format), as opposed to XML
 * callback=? - this is needed to allow the program to receive the data and process it

I have used an anonymous functions to process the data to keep it all inline, you can use named functions to keep larger code in order. This is not the simplest JS in the world, but it is not too bad. Just keep building up from small blocks into larger ones. Hope that helps, Inductiveload— talk/contribs  00:48, 15 November 2011 (UTC)

 

test edit
A from this account or IP address, which appeared to be a test edit, was removed or reverted. Please use the sandbox for this purpose. The community portal has information on contributing to this library.

Useful links

 * Test of Regex expressions
 * Test of Regex expressions
 * Regex tutorial
 * [//tools.wmflabs.org/checker/?db=enwikisource_p Checker for transclusion]
 * Any2DjVu Online converter
 * Online OCR LJB
 * Online OCR
 * unpaper & how to use it
 * Stanford Search
 * Flowchart for US Copyright
 * Index of Greek Ligatures
 * Greek typing tool
 * which character is behind a code?
 * path to the WS API interface
 * svg-editor
 * wikimedia statistics
 * notable persons database
 * [//de.wikipedia.org/wiki/Wikipedia%3aHelferlein/VBA-Macro_for_EXCEL_tableconversion VBA-Macro_for_EXCEL_tableconversion]
 * Excel2wiki
 * csv2wikitable

IRC
Help:
 * /msg chanserv help
 * /msg nickserv help
 * /msg memoserv help
 * /me action

ANSI CODES and characters

 * List of XML and HTML character entity references