User:Margin1522/notes
A page for various things about editing Wikipedia.
Misc
[edit]{{subst:unsigned|user name or IP|date}}
- Wikipedia:Edit_summary_legend
- To reference the Cleanup template, typing
{{tl|Cleanup}}
results in {{Cleanup}}. - {{Tag}} for good example of parameters explained
- Help:Interwikimedia_links
- Wikipedia:Catalogue of CSS classes
- Shift+ALT+F: Goes to WP search box (Chrome)
- ALT+D, ALT+Enter duplicate tab (Chrome)
- Screenshots
- {{Annotated image}}
- {{Reflist-talk}}
- Unsigned comments
- {{EB1911}} Encyclopedia Britannica text
- WP:PAGELINKS Google Books urls
- {{harvid}} for sfn cites with no author
- $1 to insert pattern found with regex search in Advanced toolbar
- Table for hanging indent -- see Sophy Rickett#Publications
- Nihongo menu for CharInsert
Plain lists and columns
[edit]See Help:List, WP:LINEBREAK, and Help:Columns
{{Column-generating template families}}
- {{Div col}} and {{Div col end}} for CSS columns instead of tables
- {{plainlist}} creates an ul and adds li tags to each line. It requires a star on each line in wiki source.
- The
<poem>
extension generates a p tag with a br tag at end of each line. {{colbegin}} + poem works, but adds extra space before 1st column (because of p tag). - {{plainlist}} + {{colbegin}} works.
- {{flatlist}} for an inline list
Prevent tag parsing
[edit]See {{tag}}, {{xtag}}, <nowiki>
Excessive apparatus after topic names
[edit]See Trebuchet for how to put it into notes
Dubious hatnotes
[edit]- Wikipedia:Template messages – Wikipedia:Terminal Event Management Policy. Deleted in (this edit).
- "WP:D" redirects here. For information about deletion on Wikipedia, see Wikipedia:Deletion policy. in Wikipedia:Disambiguation
"WP:A" redirects here. For Administrators, see Wikipedia:Administrators. For Arbitration, see Wikipedia:Arbitration. In Wikipedia:Attribution
Notability
[edit]- Scopus journal list
- index of highly cited researchers
- awardsandwinners.com
- Criteria for photographers
- Beall’s List
- DPv2 Articles deleted from Wikipedia
Commons
[edit]For derviative images: Use derivativeFX upload tool.
For images from other Wikipedias:
- Choose Commons category (will be needed later).
- Download the file to PC, rename as necessary (original name uses kana, etc.)
- Use FileInfo.
- Enter the original file name on the other Wikipedia.
- Check all the boxes to generate information template.
- Copy information to Notepad.
- On Commons, upload with the upload tool
- Add the Wikipedia name in the Source field, the author in the Author(s) field, and the license tag in the copyright field
- Enter the category selected above
- Enter file info from Notepad in the description
- After the file is saved, edit the description to add the original file log (from Notepad)
For Flickr images:
- Use Magnus' Flickr2Commons upload tool
- Enter the number ID (e.g. 9668851247) of Flickr image in "OR single Flickr photo ID" field
- Be sure to set the include Flickr tags option to off.
- If file needs to be renamed, see Renaming files. Add the template to top of description.
To hide the page navebox, put this in your CSS:
- .pageNavBox {display: none !important;}
Vectors
[edit]- commons:Help:Text and Inkscape Convert to Text
- Fix corrupt files
- Validate at w3.org
- Optimize with SVGO
- Don't select "Styles to attributes" (doesn't validate)
Drafts
[edit]Type the following into a search box.
User:Margin1522/subpage_name
- Help:Userspace draft adds NOINDEX
- Also {{noindex}} for NOINDEX |visible=yes
- {{db-user}} or {{Db-u1}} to delete subpage
Sorting
[edit]To sort a list where every line contains a year, save the wikitext lines to a file (tmp.txt) and do this in Powershell.
gc 'tmp.txt' -encoding utf8 | %{ if ($_ -match '\d{4}') { $matches[0] + $_ } else { $_ } } |
sort | % { $_ -replace '^\d{4}', ''} | out-file sorted.txt -encoding utf8