User:Jasonkwe/Useful-syntax

From Wikipedia, the free encyclopedia

Copy of wiki syntax that I often forget and have to look up


Basic webpage citation format  <ref name="adfas">{{cite web |last1= |first1= |title= |url= |website= |access-date= |archive-url= |archive-date= |date=}}</ref>


{{convert|2.54|kg|lb|abbr=on}}
{{convert|680|mm|in|abbr=on}}
{{convert|2|-|5|km|mi|2|abbr=on}} → 2–5 km (1.24–3.11 mi)
{{convert|2|x|6|x|9|cm|in|2|abbr=on}} ->

*{{convert|920|g|oz|abbr=on}} w/ battery (PVS-17A/B)

*{{convert|26|x|15|x|10|cm|in|1|abbr=on}} (PVS-17A/B)



A forced line break   <br>


When linking, the real article's name always goes first
 [[United States Special Operations Command|USSOCOM]]
So it renders as   USSOCOM



Citing a source multiple times but with different pages, best to use shortened footnotes and place the book in "Sources" within the References section

blah blah blah.{{sfn|Elk|1972|p=5}


==References==
{{reflist|refs=
<ref>{{Cite web |last=Murphy |first=Jack |date=22 June 2013 |title=Evolution of the 75th Ranger Regiment: RRD |url=https://thenewsrep.com/21408/75th-ranger-regiment-regimental-reconnaissance-detachment/ |archive-url=https://web.archive.org/web/20181113210615/https://thenewsrep.com/21408/75th-ranger-regiment-regimental-reconnaissance-detachment/ |archive-date=13 November 2018 |website=TheNewsRep |accessdate=13 November 2018}}</ref>
}}

===Sources===
{{refbegin}}
* {{cite book |last=Elk |first=Anne |title=[[Anne Elk's Theory on Brontosauruses]] |date=November 16, 1972}}
{{refend}}



Text blah blah.<ref name="example ref"/>
More text blah.<ref name="another ref example"/>


==References==
{{Reflist|refs=
<ref name="example ref">the reference itself</ref>
<ref name="another ref example">the reference itself</ref>
}}



Renders as

Text blah blah.[1]
More text blah.[2]

References

Notes

References

Notes

Related Articles

Wikiwand AI