User:Netjeff/Cheatsheet about editing

From WikiProjectMed
Jump to navigation Jump to search

This is my cheatsheet about editing Wikipedia pages.

Citations/refs in general

For footnotes using inline citation/ref use <ref>...</ref>, with optional <ref name="...">. Then towards end of page use template {{RefList}} once.

See Help:Footnotes for general guidance & recommendations.

The most freeform is "naked" use of <ref name="...">...</ref>

Use a template inside of <ref> to give more structure and automatic formatting.

One of the most generic is template {{Citation}}. This is known as "Citation Style 1" aka "CS1".

There are "children" of {{Citation}}.

All the "children" can use all of the params of general {{Citation}}.

Citation to short story "Moriarty by Modem" in the anthology Sherlock Holmes in Orbit

Using {{Cite book}} with chapter=story |chapter-url=storyurl, then title=anthology. If there was an url for the overall anthology, I would have added a url=anthologyurl. FYI, I added/updated this citation on Analytical engine.

  • Nimersheim, Jack (1995). "Moriarty by Modem". Sherlock Holmes in Orbit. DAW Books. pp. 287–302. ISBN 9780886776367. Archived from the original on 2003-06-20. Retrieved 2023-11-11.

Citations to printed material with page numbers

This is a citation to an entire paper, where the citation does not include any page numbers [1].

This is a citation to same paper, where the citation itself contains ref to pages 7 and 8[2].

This is reusing the citation containing pages 7 and 8[2]

This is a citation to same paper, but page 14 inside the citation [3].

When a single article has multiple refs to same source differing in only page numbers, see templates {{sfn}}, {{harvp}}, and related, and then combined with a manually created "Bibliography" section, sometime section is named "Works cited", often combined with {{refbegin}} and {{refend}}. These templates automatically links into the manually created "Bibliography" section. For example pages that use these, see Starship Troopers and Happy Birthday to You.

Template {{Rp}} provides visual-only pages markup, with a cite is to the entire paper.[1]: 7–8 

Use template {{IETF RFC}} like this: {{IETF RFC|7095}}RFC 7095

Use special syntax [[rfc:3261]] like this, rfc:3261

This is known as "Interwiki linking" with complete list at MetaWiki:Interwiki_map
You can customize the link as usual with [[rfc:3261|RFC 3261]] like this, RFC 3261
You can deep link with [[rfc:3261#section-21.4.18|rfc-3261 §21.4.18]] like this, rfc-3261 §21.4.18

Citations to RFC

Use template {{Ref RFC}} for an all-in-one <ref>...</ref> plus cite

  • {{Ref RFC|3261}}[4]
  • See docs for variations on section name, pages, etc

Use template {{Cite IETF}} within a <ref>...</ref>

<ref name="rfc9110_shallow">{{cite ietf |rfc=9110 |title=HTTP Semantics |date=June 2022}}</ref>
<ref>{{cite ietf |rfc=9110 |title=HTTP Semantics |section=5.6.5 |date=June 2022}}</ref>
  • deep w/sectionname[7]
<ref>{{cite ietf |rfc=9110 |title=HTTP Semantics |section=5.6.5 |sectionname=Comments |date=June 2022}}</ref>
  • shallow with section.[5]: §5.6.5  This uses {{Rp}} for visual-only section number, combined with {{cite ietf}} to the entire RFC.
<ref name="rfc9110_shallow"/>{{rp|at=§5.6.5}}
  • deep with appendix name[8]
<ref name="7231_appendixB">{{cite ietf |rfc=7231 |title=Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content |appendix=B |sectionname=Changes from RFC 2616 |date=June 2014}}</ref>

For fine-grained control use generic template {{Cite web}} like this.[9]

<ref>{{cite web |date=June 2022 |url=https://www.rfc-editor.org/rfc/rfc9110#section-5.6.5 |title=RFC 9110: HTTP Semantics, Section 5.6.5 |publisher=[[IETF]]}}</ref>

Note that template {{Citation}} is the basis of both {{Cite web}} and {{Cite IETF}}. So you can also use all params from {{Citation}}.

When a single article has multiple refs to same rfc differing in only section/page numbers, see discussion about templates {{sfn}} and {{harvp}} above.

See Wikipedia:Citation needed for guidelines on when to (not) use the {{Citation needed}} template

See Template:Inline cleanup tags for an exhaustive list of related templates

When citation is present but questionable,

  • {{Specify}} : Used to tag statements that seem to be sourced but lack sufficient specificity as to what exactly is being drawn from the source. This situation most often arises when sources are over-summarized to an excessive level, without sufficient care for whether the result has a clear enough meaning to be properly verifiable.
  • {{Verify source}} : Used to request that someone verify that the cited source supports the material in the passage, only after you have made a good faith attempt to verify the information yourself, and you still have good reason to question whether the source is correct

Dollar amounts

{{US$}}: The movie cost $82,604,699 in 1979.[10]

{{US$}} w/inflation: The movie cost $82,604,699 in 1979 (equivalent to about $350,000,000 in 2023)[11].[10]

{{Inflation}}: The movie cost $82,604,699 in 1979[10] (equivalent to $350,000,000 in 2023[11]).

{{Format price}} with {{Inflation}}: The movie cost $82.6 million in 1979[10] ($347 million in 2023[11]).

Numeric values

{{val}}: Formatting, layout (no wrap, etc), sortability, and unit wikilinking.

  • {{val|123456.78901|fmt=commas}}123,456.78901
  • {{val|e=5}}105
  • {{val|1.234|e=5}}1.234×105
  • {{val|1.234e5}}1.234×105
  • {{val|1.234|u=m2}}1.234 m2
  • {{val|1.234|ul=m2}}1.234 m2 (with units wikilinked, when available)
  • {{val|1.234e5|ul=m2}}1.234×105 m2
  • {{val|12.34|p=Δ}}Δ12.34
  • {{val|12.34|p=Δ&nbsp;}}Δ 12.34
  • {{val|12.34|u=%|p=≅}}≅12.34%
  • {{val|12.34|0.25|s=%}}12.34±0.25%
  • {{val|1.234|e=7|ul=W|upl=m2}}1.234×107 W/m2
  • {{val|1.234|e=7|ul=au|upl=M_Earth}}1.234×107 au/M🜨
  • {{val|1.234|u=AU<sup>1.5</sup>|e=7|up=''M''<sub>E</sub><sup>2</sup>}}1.234×107 (AU1.5)/(ME2)
  • etc etc etc

{{10^}}: Focuses on formatting just the part ×1042. Note {{e}} is an alias.

{{scinote}}: {{scinote|12345}} → 1.2345×10^4

See Category:Mathematical_function_templates for things like

Deep linking to sections

Use one of these:

Section Π

The above section heading includes use of template {{math}}

Section μ

The above section heading does not include templates

Misc

L1 (with nolink=yes) L1 (without nolink=yes)

This is a ref to a {{note}} (not a ref to cite). odds The note appears later (not in references section)

^odds The odds are only 1-in-231

Meta templates

{{tl}} (and related) refer to templates without running the template

  • {{tl|math}}{{math}}
  • {{tl2|math}}{{math}}

{{#invoke:DemoTemplate|val|1.234|ul=m2}} produces: {{val|1.234|ul=m2}}1.234 m2


References

  1. ^ a b Brauneis, Robert (2008-03-21), Copyright and the World's Most Popular Song, retrieved 2008-05-08
  2. ^ a b Brauneis, Robert (2008-03-21), Copyright and the World's Most Popular Song, pp. 7–8, retrieved 2008-05-08
  3. ^ Brauneis, Robert (2008-03-21), Copyright and the World's Most Popular Song, p. 14, retrieved 2008-05-08
  4. ^ J. Rosenberg; H. Schulzrinne; G. Camarillo; A. Johnston; J. Peterson; R. Sparks; M. Handley; E. Schooler (June 2002). SIP: Session Initiation Protocol. Network Working Group. doi:10.17487/RFC3261. RFC 3261. Proposed Standard. Updated by RFC 8591, 8760, 8898, 3853, 4320, 5626, 5393, 4916 and 5630. Obsoletes RFC 2543.
  5. ^ a b HTTP Semantics. June 2022. doi:10.17487/RFC9110. RFC 9110.
  6. ^ HTTP Semantics. June 2022. sec. 5.6.5. doi:10.17487/RFC9110. RFC 9110.
  7. ^ "Comments". HTTP Semantics. June 2022. sec. 5.6.5. doi:10.17487/RFC9110. RFC 9110.
  8. ^ "Changes from RFC 2616". Hypertext Transfer Protocol (HTTP/1.1): Semantics and Content. June 2014. sec. B. doi:10.17487/RFC7231. RFC 7231.
  9. ^ "RFC 9110: HTTP Semantics, Section 5.6.5". IETF. June 2022.
  10. ^ a b c d cite for 1979 price
  11. ^ a b c 1634–1699: McCusker, J. J. (1997). How Much Is That in Real Money? A Historical Price Index for Use as a Deflator of Money Values in the Economy of the United States: Addenda et Corrigenda (PDF). American Antiquarian Society. 1700–1799: McCusker, J. J. (1992). How Much Is That in Real Money? A Historical Price Index for Use as a Deflator of Money Values in the Economy of the United States (PDF). American Antiquarian Society. 1800–present: Federal Reserve Bank of Minneapolis. "Consumer Price Index (estimate) 1800–". Retrieved February 29, 2024.