Jump to content

User:Oceanflynn/Useful codes

From Wikipedia, the free encyclopedia

Useful templates and codes

  • <nowiki></nowiki>
  • {{reflist|colwidth=30em}}
  • |last-author-amp=yes
  • {{cite web |url=http://www.newstatesman.com/politics/uk/2017/02/uk-cant-avoid-dealing-donald-trump-we-must-engage-intelligently |title=The UK can't avoid dealing with Donald Trump – but we must engage intelligently |date=February 3, 2017 |publisher=[[New Statesman]] |deadurl=no |accessdate=April 26, 2017}}
  • {{reflist-talk|close}}
    • {{Cite journal|url = http://link.galegroup.com/apps/doc/GALE{{!}}A256635439/GPS|title = Escape into the past|last = |first = |date = 2011|journal = Paraplegia News|volume = 65|issue = 5|pages = 49–53}}{{subscription required|via=General OneFile}}
  • |url-access=subscription
  • |url-access=registration
  • |url-access=limited|bibcode= with |bibcode-access=free
  • |doi= with |doi-access=free
  • |hdl= with |hdl-access=free
  • |jstor= with |jstor-access=free
  • |ol= with |ol-access=free
  • |osti= with |osti-access=free


Footnotes
When using both names and groups, the syntax is:
<ref name=name group=groupname>Content</ref>
For the repeated note:
<ref name=name group=groupname />
{{cleanup-reorganize|date=January 2016}}
The footnote marker group name must be enclosed in quotes if the group name includes a space, else a cite error will occur, otherwise quotes are optional.
The syntax for the reference list with a group is:
{{reflist|group=groupname}}
  • Templates at top of articles
    • {{Use dmy dates|date=September 2015}}
  • Templates placed at top of articles that have major issues
  • {{Essay-like|date=January 2016}}
  • {{outdated|date=January 2016}}


  • {{reflist|30em}}
  • {{citations needed|date=January 2016}}
  • {{under construction|14 January 2016}}
  • {{in use}}
  • {{convert|1.126|Moilbbl/d|m3/d}}
  • replace et al. in author/editor parameters with |display-authors=etal or |display-editors=etal;)
  • {{cite journal |last1=Hughes |first1=J.|last2=Albon |first2=S.D.|last3=Irvine |first3=R.J.|last4=Woodin |first4=S. |year=2009 |title=Is there a cost of parasites to caribou? |journal=Parasitology |volume=136 |pages=253–265 |ref={{SfnRef|Hughes|2009}} |doi=10.1017/s0031182008005246|display-authors=etal}} Cited in Vors' Phd (2013), Caribou
  • {{{{Use dmy dates|date=January 2015}}
  • {{Main|Porcupine caribou}}
  • {{rp|314}}
  • {{convert|1.126|Moilbbl/d|m3/d}}
  • {{convert|5.3|km2|sqmi|abbr=on}}
  • {{Use dmy dates|date=2 November 2014}}
  • {{reflist-talk}}
  • {{underconstruction}}
  • {{talkheader}} for user pages
  • {{Reliable sources for medical articles}} for medical articles
  • {| class="wikitable" width="70%" ! style="width:6%" | Year || style="width:10%" | Date || Event |- | xxxx || xxxx|| vvv.{{sfn|last|1992}} |}

– ° ° ′ ″ ≈ ≠ ≤ ≥ ± − × ÷ ← → · §


— careful with this one, deletes content

    • | image = Caribou.jpg|325px
    • | image_caption =Male Porcupine caribou ''R. t. granti'' in Alaska
  • {{clear left}} just above the subsection title, to maintain image placement related to subsection.
  • [[File:Reindeer licking salt from roadway.jpg|thumb|Caribou licking salt from roadway in [[British Columbia]]]]
  • 250px[[File:CanaportLNG Long7.jpg|thumb|right|250px|[[Canaport]] in New Brunswick, Canada is a tidewater petroleum facility]]
  • [[ File:Drop of oil.png|thumb|right|100px|Drop of oil]]
  • [[ File:Carbon_sequestration-2009-10-07.svg|right|300px|<small>Schematic showing both terrestrial and geological sequestration of carbon dioxide emissions from a [[coal-fired plant]]</small>]]
  • <gallery> Image:Caribou crossing Leaf River.jpg|Caribou crossing Leaf River Image:Caribou at the campsite.jpg|Leaf River and caribou </gallery>

Common edit summaries

[edit]
  • rm stray character-typo
  • reference consistency
  • References after punctuation per WP:REFPUNC and WP:PAIC

Citations

[edit]
  • The cite news, cite web, cite magazine will automatically italicize.
  • "test". The New York Times.
  • "test", The New York Times
  • {{cite magazine |last= |first= |date= |title=test |url= |magazine=New Yorker |location= |publisher= |access-date= }}

<ref>{{cite web |last= |first= |date= |title=test |url= |newspaper=The New York Times |location= |publisher= |access-date= }}</ref>

[1]

[2]

References

  1. ^ "test". New Yorker.
  2. ^ "test". The New York Times. {{cite web}}: Missing or empty |url= (help)

{{cite magazine }}

  • "test". New Yorker.

Special characters

[edit]
  • ®

page numbers 5—9? Two forms of dash are used on Wikipedia: en dash (–) and em dash (—). Type them in as – (–) and — (—) or click on them to the right of the "Insert" tab under the edit window; or see How to make dashes.

  • Unspaced em dash[edit]

"Another "planet" was detected—but it was later found to be a moon of Saturn." Do not use spaces with em dashes.

  • Spaced en dash

"Another "planet" was detected – but it was later found to be a moon of Saturn."

To ensure correct linewrap handling, the  – template (or its  – shorthand) can be used:

Another "planet" was detected – but it was later found to be a moon of Saturn.

However, do not use the template where the en dash is unspaced (see § En dashes: other uses, below).

Dashes can clarify the sentence structure when there are already commas or parentheses, or both.

We read them in chronological order: Descartes, Locke, Hume—but not his Treatise (it is too complex)—and Kant.

Gale

[edit]

{{Cite journal|url = http://link.galegroup.com/apps/doc/GALE{{!}}A256635439/GPS|title = Escape into the past|last = |first = |date = 2011|journal = Paraplegia News|volume = 65|issue = 5|pages = 49–53}}{{subscription required|via=General OneFile}}

"Transcript of a Press Briefing by Gerry Rice, Director, Communications Department, IMF." ENP Newswire 15 Jan. 2016. Infotrac Newsstand. Web. 18 Jan. 2016. http://go.galegroup.com/ps/i.do?id=GALE%7CA439931815&v=2.1&u=wikipedia&it=r&p=STND&sw=w&asid=bc5a13915f0a167c964b9ac62cb3ee22 "

Clades and cladograms

[edit]

clade branches, subtree1, subtree2, leaf1, leaf2,

phylogenetic tree is a branching diagram or "tree" showing the inferred relationships among various entities. The taxa joined together in the tree are implied to have descended from a common ancestor. Phylogenetic trees. One Root> > Node (point from which branch emerges from root Node 1, Node 2, Node 3) > Branch (Branch 1, Branch2, Branch 3 > Clade > Subtree (subtree1, subtree2, subtree3, > Leaf (leaf1, leaf2, Taxa (Taxon1, Taxon2, Taxon3). Radial Sector can have 2, 3 branches.


{{clade
|1={{clade
   |label1=[[Subtree1]]
   |1=Leaf1
   |label2=Subtree2
   |2=[[Leaf2]]
   }}
}}
Subtree1

Leaf1

Subtree2

Leaf2

Note that the order of the parameters does not matter. Exactly the same output is produced by


{{clade| style=font-size:75%;line-height:75%;
|1={{clade | thickness=3
   |2=Leaf2
   |1=Leaf1
   |label1=Subtree1
   |label2=Subtree2
   }}
}}
Subtree1

Leaf1

Subtree2

Leaf2

Leaf3

}}


{{clade
|1={{clade
   |1={{clade | thickness=3
      |1=Leaf1
      |2=Leaf2
      }}
   |2=Leaf3
   }}
}}

{{clade
|1={{clade
   |1={{cladex
      |1=Leaf1
      |2=Leaf2|state2=double
      }}
   |2=Leaf3
   }}
}}

Leaf1

Leaf2

Leaf3

Example
branch 1
branch 2

branch 3

branch 4

Leaf 4

Taxon 1

Taxon 2

Sample of {{Branch}}

cladogram at APG III system#Phylogeny