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.
This user [1] an administrator on the English Wikipedia.
This user has a page on Wikiquote.
This user has a page on Wikimedia Commons.
This user has a page on Wiktionary.
This user is a BoardGameGeek.
This user BOINCs.
This user loves using Google Earth.
This user contributes using Netscape.
This user has one or more cats.
This user is an Ophiuchus.

This user is a Wikipedian in Canada.

This user is a Wikipedian in Quebec.
This user comes from Quebec City.

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

Meta User Page
Page utilisateur Wikiquote français
Page utilisateur Wiktionnaire français

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

Wikipedia:Topical index

My sand box

Contents

[edit] To Do

List of asteroids sub-paging

Meanings of asteroid names

Deletion Tools
Articles (howto|log)

{{ subst:afd }}   {{relist}}
{{ subst:prod|why }}

Templates (howto|log)

{{tfd|template}}   {{catfd}}
{{ subst:tfdnotice }}
{{ subst:tfd2|template|why }}
{{ subst:catfd2|cat|why }}

Images (log)

{{ subst:ifd }}

Categories (howto|log)

{{ subst:cfd1 }}   {{ subst:cfm1|  }}
{{ subst:cfr1|  }}   {{cfdnotice| }}
{{cfr-speedy| }}

Stub types

{{sfd-t}}   {{sfd-c}}   {{sfd-r}}

Redirects (howto|log)
Miscellaneous (log)
Copyvios (howto|log)

{{rfd}}   {{md1}}   {{copyvio}}

Mergers

{{merge}}
{{mergeto}}   {{mergefrom}}
{{merging}}   {{afd-mergeto}}
{{afd-mergefrom}}

Page moves

{{move}}   {{moveoptions}}

Speedy

{{db-author}}  {{db-web}}
{{db-nonsense}}   {{db-test}}
{{db-nocontext}}   {{db-empty}}
{{db-attack}}   {{db-catempty}}
{{db-band}}   {{db-banned}}
{{db-bio}}   {{db-notenglish}}
{{db-copyvio}}   {{db-repost}}
{{db-vandalism}}   {{db-talk}}
{{db-spam}}   {{db-disparage}} (T1)
All available templates

Unfree images

{{PUIdisputed}}   {{PUInonfree}}
{{ subst:nsd }}   {{ subst:nld }}
{{ subst:nrd }}   {{ subst:rfu }}
{{ subst:orfud }}  

Transwiki (howto|log)

{{Copy to Wiktionary}}
{{Copy to Wikisource}}
{{Copy to Wikibooks}}
{{Quotefarm}}
{{Copy to Wikispecies}}
{{Copy to Wikimedia Commons}}

Deletion review, policy, log
v  d  e

[edit] Snippets

[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.
  • [[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.

  • <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 Template:Biohead and Template:Bioxref follow a similar pattern. And I finally found Template:ref, Template:ref_label, Template:note and Template: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 Template:Reflnk and Template: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

In other languages