User:Urhixidur

From Wikipedia, the free encyclopedia

Wikipedia:Babel
fr Cet utilisateur a pour langue maternelle le français.
fr-4 Cet utilisateur parle français à un niveau comparable à la langue maternelle.
en-5 This user is able to contribute with a professional level of English.
tsolyáni-1 Màsuntsólukoi trashóm chidóm tlatsolyáni.
This user is an administrator on the English Wikipedia. (verify)
30,000+
This editor is a Senior Editor, and is entitled to display this Platinum Editor Star.
This user has a page on MediaWiki.org.
This user has a page on Meta-Wiki.
This user has a page on Wikibooks.
This user has a page on Wikilivres.
This user has a page on Wikimedia Commons.
This user has a page on Wikiquote.
This user has a page on Wikisource.
This user has a page on the French Wikisource.
This user has a page on Wikispecies.
This user has a page on Wiktionary.
This user is an administrator on the French Wiktionary.
This user has a website, which can be found here.
This user is a member of the Astronomical Object WikiProject.
This user is named after an asteroid.
This user is a Board Game Geek.
This user BOINCs.
This user loves using Google Earth.
This user enjoys using Celestia to look at the virtual skies.
Firefox This user contributes using Mozilla Firefox.
7+1 This user enjoys the Discworld series.
This user is owned by one or more cats.
This user's favourite animal is the Octopus.
This user is an Ophiuchus.
This user was born in the year of the Rat.
This user is skeptical of the Zodiac.
they This user considers the singular they to be substandard English usage.

This user is a Wikipedian in Canada.

This user is a Wikipedian in Quebec.
This user comes from Quebec City.
{{!!!}} This user over-uses userboxes.

I agree to multi-license all my contributions, with the exception of my user pages, as described below:

Multi-licensed with all Creative Commons Attribution Licenses
I agree to multi-license my text contributions, unless otherwise stated, under the GFDL and the Creative Commons licenses by-sa v1.0, by v2.0, by-nd v2.0, by-nc v2.0, by-nc-nd v2.0, by-nc-sa v2.0, and by-sa v2.0. Please be aware that other contributors might not do the same, so if you want to use my contributions under alternate licensing, please check the CC dual-license and Multi-licensing guides.

Personal web page

Contents

[edit] Interwiki


I qualified for senior editor on May 19, 2008.

Wikipedia:List of Wikipedians by number of edits --If I could only stay in slot 501!

Wiki edit count tool

Wikipedia:Topical index

My sand box

[edit] To Do

List of asteroids sub-paging

  • List of asteroids/mmm001–nnn000
  • ALL DONE AT LAST!

MediaWiki messages:

[edit] Snippets

[edit] ImageMap

ImageMap coordinate tool

[edit] Math formulae and TeX markup

To force a math formula to full size, add \,\! (backslash comma backslash exclamation):

<math>a(1+e^2/2)</math> is a(1 + e2 / 2)

<math>a(1+e^2/2)\,\!</math> is a(1+e^2/2)\,

See Wikipedia:TeX markup for more.

[edit] Table syntax

  • For table syntax, see Help:Table#Guide to the pipe syntax
  • {{prettytable}} and {{prettytable-center}}
  • More flexibly, use:
    • {| class="wikitable" style="text-align:center" align="right"
      • where text-align can be left, center, justify, or right (left is default)
      • and align can be left or right (center will not work)
    • in theory you could use instead {| class="wikitable" style="text-align:center;float:left" but this allegedly breaks rendering at large font sizes.
      • float would then be left or right (center still does not work)
  • Centered tables can be achieved, but they will not float (no text will appear to either side):
    • {| class="wikitable" style="text-align:center;margin: 1em auto 1em auto"

In the examples below, the wiki code consists of the right-floating table, the left-floating table, the Lorem ipsum text, a centered table, and more Lorem ipsum.

Cells centered, table right
Lorem ipsum dolor
sit amet, consectetur adipisicing elit,
sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Cells right-aligned, table left
Ut enim ad
minim veniam, quis nostrud exercitation ullamco
laboris nisi ut aliquip ex ea commodo consequat.

Lorem ipsum dolor sit amet, pede et congue viverra velit placerat, amet nec mauris nullam justo ac praesent. Urna maecenas in neque, ridiculus aliquam sodales nec turpis volutpat ullamcorper, mauris sodales velit sit a. Aliquet id fusce. Auctor nec tortor at leo pede, ac ac nunc sed imperdiet aliquet, justo suspendisse egestas pulvinar. Elit arcu at ut ullam, nullam hac in sit mollis dictum nisl, placerat lectus hendrerit fermentum. Vestibulum mi semper sodales, porta pellentesque vivamus massa, neque cursus lacus lectus, pellentesque enim nulla porttitor, habitant maecenas quam tristique nunc. Sodales lacinia et, consequat sed. Velit nostra cras ridiculus amet et, accumsan ut lectus etiam quisque eleifend, metus lectus dolorem gravida, nam mattis vestibulum libero aliquet. Euismod vestibulum nulla turpis amet dapibus, sem orci et pellentesque sem nunc. Neque luctus dignissim, pede enim. Posuere blandit quam id, at laoreet placerat, venenatis ut mollis.

Et neque laoreet arcu egestas at. Vel hendrerit nisl, curabitur fermentum. Lectus ligula magna. Rhoncus mollis habitasse etiam in, bibendum imperdiet placerat lorem justo quam, cras fames purus elementum velit eget, dictumst arcu, maecenas eget ipsum. Vitae lacus ut, libero quas, velit ac. Nisl lacus, mauris risus auctor id, sollicitudin eu justo a urna, neque sed interdum. Dictumst mollis bibendum dui, nullam in cursus est pede, ac velit consequatur volutpat neque viverra ornare, amet sed suspendisse. Quis consequat, sed diam vivamus a, eget faucibus et, adipiscing risus tempus nostrud pellentesque magnis. Tristique at ut, malesuada et integer a sodales, pede commodo nulla. Nibh duis rutrum cras aenean odio et, facilisi lacus ut gravida et tortor.

Cells left-aligned, table centered
Duis aute irure
dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur.

Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

[edit] Unicode and ISO 8859-1

[edit] Image borders

Two examples showing ways to put a border around an image, using the Wikimedia Commons current Belarus flag image (which is borderless):

<div style="background-color: #000000; padding: 1px; float: left">
[[Image:Flag_of_Belarus.png|240px|Flag of Belarus]]
</div>
Flag of Belarus


{|
| style="background-color: #FFFFFF; padding: 0px; border: solid 1px #888888"|[[Image:Flag_of_Belarus.png|240px|Flag of Belarus]]
|}
Flag of Belarus

Note that wikitables use a padding of 1 px by default.

[edit] Interwiki

Templates can contain interwiki links; this normally means all pages using the template will have the interwiki, which is usually a bad thing. To link just the templates across wikis, use:

<noinclude>
[[de:Vorlage:Korrekter Titel]]
[[en:Template:Wrongtitle]]
[[es:Plantilla:Título erróneo]]
[[fr:Modèle:titre incorrect]]
</noinclude>

  • [[:fr:Cible française|Article in French]] to link to another language Wikipedia entry.
  • [[wikt:Target|Target]] to link to English Wiktionary entry.
  • [[wikt:fr:Cible|Cible]]to link to another language Wiktionary entry.
  • [[m:Target|Target]] to link to Wikimedia entry.
  • [[mw:Target|Target]] to link to MediaWiki entry.
  • [[q:Target|Target]] to link to the English Wikiquote
  • [[q:fr:Cible|Cible]] to link to another language Wikiquote
  • For more, see m:Help:Interwiki linking.

[edit] Misc.

  • {{Coor title dms|56|6|31.14|N|74|17|49.29|W|type:landmark_region:CA}}
  • <span style="font-variant:small-caps">small caps</span> (see also bsm and esm templates)
  • {{ed|<template or page name>|}}
  • {{stub}}
  • #redirect [[correct page]]
  • [http://etc caption text]
  • <font id="name_of_anchor_without_spaces">anchor 1.</font>
    • then: [[page title#name_of_anchor_without_spaces]]

When sections are defined (using ==), you can jump directly without need of an anchor, like this: [[page title#section title]]. See also Help:Section#Section_linking

[[Image:4 Vesta (HST).png|thumb|right|Caption]] (for the syntax, see Wikipedia:Extended image syntax)

[edit] Cross-references

Experimentally, we could have two templates:

  • Template:Reflink
    • [[{{PAGENAME}}#{{{1}}}|{{{2}}}]]
  • Template:Reftarget
    • <font id="{{{1}}}"></font>

Then one would mark the targets (in the References section, say) with {{reftarget|<label>}} and insert cross-references to those targets elsewhere as {{reflink|<label>|<text to link>}}. The cross-references would appear as links within the same page ('tween-page linking is already abundantly covered by the usual linking means, obviously).

Note that this does not work within namespaces (e.g. User: pages); in those cases, Template:reflink needs to be modified to read instead [[{{NAMESPACE}}:{{PAGENAME}}#{{{1}}}|{{{2}}}]]. Such within-namespaces templates are unlikely to be needed, so at worst a secondary template could be created (e.g. "Template:reflink_ns").

Rooting through the Template: pages, I see {{Biohead}} and {{Bioxref}} follow a similar pattern. And I finally found {{ref}}, {{ref_label}}, {{note}} and {{note_label}}. They _label versions allow multiple links to a single note, but force the editor to pick the labels, which spoils the autonumbering purpose. Some mentions of AUTOINCREMENT which may need looking into. Very roughly, {{ref}} and {{note}} create mutual anchors that link to each other; {{ref}} uses the http linking mechanism to have the refs auto-numbered; {{note}} uses wikilinking to use a default character (^) or user-specified label. With a little tweaking, this is what I get:

  • Template:Reflink
    • <span class="reference"><sup id="ref_{{{1}}}{{{2|}}}" class="plainlinksneverexpand">[{{fullurl:{{FULLPAGENAME}}}}#endnote_{{{1}}}{{{2|}}} {{{3|}}}]</sup></span>
  • Template:Reftarget
    • <cite id="endnote_{{{1}}}{{{2|}}}" style="font-style: normal;">[[#ref_{{{1}}}{{{2|}}}|'''<sup>{{{3|^}}}</sup>''']]</cite> 

{{Reflink}} labels itself as "ref_" with required 1st parameter label, optional 2nd parameter as suffixes, and links to "note_" identically suffixed; the link is auto-numbered by default but accepts an optional 3rd parameter to replace that.

{{Reftarget}} does the same (labels itself "note_", suffixed) but displays a wikilink to "ref_", suffixed, using "^" for its default appearance, or optional 3rd parameter instead.

Better names for the templates may be {{Reflnk}} and {{Reftgt}}.

What is needed is some wiki-supplied way to obtain the "link number" by designating the link's anchor (e.g., given an anchor "ref_" suffixed, obtain the anchored link's number. Or maybe the enclosing span's "rendered contents". Sounds like something HTML/Wiki just can't do, but you never know...

[edit] Useful pages

Languages