User:Tom.Reding/Useful

From Wikipedia, the free encyclopedia

Astronomy related/reference material[edit]

References

  1. ^ "Dictionary of Nomenclature of Celestial Objects". Simbad. Centre de Données astronomiques de Strasbourg. 1 December 2014. Retrieved 18 December 2014. Avoid the usage of Cr, prefer Collinder

Other meta help/search tools[edit]

WikiData[edit]

Quarry/SQL[edit]

Template parser functions, calculation, and logic (not formatting related)[edit]

Other[edit]

Unit conversion, notation, and special characters[edit]

  • {{HMS2Deg|22|06|15}} →  331.5625
  • {{Deg2HMS|331.5625|p=0|sup=yes}} →  22h 6m 15s

  • {{Coord|0|-28.4375|format=dms}} →  0°00′00″N 28°26′15″W / 0°N 28.4375°W / 0; -28.4375
  • {{convert|23|Mpc|Mly|0|abbr=on|lk=on}} →  23 Mpc (75 Mly)
  • {{convert|281|+/-|90|Mpc|Mly|abbr=on|lk=on}} →  281 ± 90 Mpc (920 ± 290 Mly)

  • {{#expr: (200/6) * 2 round 3}} →  66.667
  • : [ ] { | } →  : [ ] { | }
  • - – — & σ Σ λ Λ * →  - – — & σ Σ λ Λ *
  • ±  ≈ ≉ ≟ ≠ ≡ ≢ ≣ ≤ ≥
≦ ≧ ≨ ≩ ≪ ≫ ≬ ≭ ≮ ≯
≰ ≱ ≲ ≳ ≴ ≵ ≶ ≷ ≸ ⋅
× ☉ ♃ ⊕ ☾

Formatting[edit]

  • Columns:
    • {{cmn|colwidth=15em|... }} →  usually the best list-option—continuously determines how many columns best fit the page.
    • {{cmn|3|
       * some
       * bulleted
       * list
       }}
      →  splits that list up dynamically(!) into 3 (forced) columns.
    • {{columns-start}} ... {{column}} ... {{columns-end}} →  for custom column-breaks
    • See {{div col}} for more variants.
  • {| cellpadding="0" style="vertical-align:top; float: right;" border="0"
     |- valign="top"
     | [[Image:blah.gif|thumb|top|300px|Caption text.]]
     | [[Image:stuff.jpg|thumb|top|300px|Things.]]
     |}
    →  is an easy way to lay pictures horizontally rather than vertically.
  • {{Clear}} →  forces horizontal white space until next section, usually after a picture.
  •   →  Non     -     Breaking     SPace. Ascii chr 160, instead of ascii 32 (typical keyboard space).
  • [[File:Santa riding a dinosaur with Jesus with a lightsaber.jpg|275px|right|thumb|Caption this]] →  inserts a variable size picture and caption text.
  • <span> <div> <gallery widths="300px" heights="300px"> →  (usually) prettifies things.
  • <pre style="width:50%; height:150px; overflow:scroll;"> →  Begins a scrolling list.
  • {{para|date}} →  |date=
  • {{keypress|Alt|F4}} →  Alt+F4
  • {{hidden begin
     | title = '''Some ordered list'''
     | titlestyle = text-align:center;
     | border = 1px solid}}
    {{cmn|colwidth=15em|
    # some
    # ordered
    # list
    }}
    {{hidden end}}
    
    → 
Some ordered list
  1. some
  2. ordered
  3. list
  • <div class="template-documentation iezoomfix"> Template documentation background </div> → 
Template documentation background
  • <syntaxhighlight lang="wikitext">{{demo|1=blah}}</syntaxhighlight> → 
{{demo|1=blah}}
  • <syntaxhighlight inline lang="wikitext">{{demo|1=blah}}</syntaxhighlight> → 

{{demo|1=blah}}

  • <syntaxhighlight inline lang="logtalk">{{(?:(?:[^{}]+(?:{{[^{}]+}})?[^{}]*)+)}}</syntaxhighlight> → 

{{(?:(?:[^{}]+(?:{{[^{}]+}})?[^{}]*)+)}} (shortlist of alts based on context: bf, cadlisp, clojure, css, latex, logtalk, prolog, scheme, tcl)

Citations & links[edit]

  • User:Tom.Reding#Frequently used links & code →  links directly to subsections of an article.
  • {{Anchor|Foo}} to be used to link to [[User:Tom.Reding#Foo]]'s in-page position.
  • <span id="Simpler section title"></span> for [[User:Tom.Reding#Simpler subsection title]] linking when special characters are used.
  • <ref name="Reding">...</ref> ... <ref name="Reding"/> →  to name your refs for easy reref'ing later in the same article.
  • {{Refimprove|date=May 2024}} or {{Refneeded|date=May 2024}} →  use occasionally.
  • {{Citation needed|date={{CURRENTMONTHNAME}} {{CURRENTYEAR}}}} →  use liberally.
  • {{Sky|03|28|13.8|-|20|44|40|321000000}} →  links to wikisky (not whiskey). Put after references. 321000000 = lightyears (for zoom level!).
  • {{tq}} makes nice-looking in-line talk-quotes.
  • [[Special:Diff/1]]/[[Special:Permalink/1]] →  Easy WP:PERMALINK to diffs.

Other wikicode[edit]

  • Standardish archive settings:
    {{User:MiszaBot/config
    | algo                = old(366d)
    | archive             = User talk:Tom.Reding/Archive %(counter)d
    | counter             = 1
    | maxarchivesize      = 200K
    | archiveheader       = {{Automatic archive navigator}}
    | minthreadstoarchive = 1
    | minthreadsleft      = 4
    }}
    + either {{Talk header}}, {{Archives|banner=yes}}, or similar.
  • #REDIRECT [[Tidal force]] + {{An R template}} →  to create a redirect.
  • <code><nowiki> w/e </nowiki></code>, {{tl|sometemplate}}, {{t1|blah}}, {{tlx|etc|a{{=}}1|b{{=}}2}} →  make everything above.
  • <tt><nowiki> blah </nowiki></tt> →  or this (which doesn't highlight the background).