User:Margin1522/notes

From Wikipedia, the free encyclopedia

A page for various things about editing Wikipedia.

Misc[edit]

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.

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]

"WP:A" redirects here. For Administrators, see Wikipedia:Administrators. For Arbitration, see Wikipedia:Arbitration. In Wikipedia:Attribution

Notability[edit]

Commons[edit]

Moving files to Commons

For derviative images: Use derivativeFX upload tool.

For images from other Wikipedias:

  1. Choose Commons category (will be needed later).
  2. Download the file to PC, rename as necessary (original name uses kana, etc.)
  3. Use FileInfo.
  4. Enter the original file name on the other Wikipedia.
  5. Check all the boxes to generate information template.
  6. Copy information to Notepad.
  7. On Commons, upload with the upload tool
  8. Add the Wikipedia name in the Source field, the author in the Author(s) field, and the license tag in the copyright field
  9. Enter the category selected above
  10. Enter file info from Notepad in the description
  11. After the file is saved, edit the description to add the original file log (from Notepad)

For Flickr images:

  1. Use Magnus' Flickr2Commons upload tool
  2. Enter the number ID (e.g. 9668851247) of Flickr image in "OR single Flickr photo ID" field
  3. Be sure to set the include Flickr tags option to off.
  4. 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]

Drafts[edit]

Type the following into a search box.

User:Margin1522/subpage_name

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