Wiki Code Cookbook/References Demonstration Page: Difference between revisions

From Portland NET Wiki
Created page with "This is a sub-page of the Wiki Code Cookbook that serves to demonstrate how to make a Notes and References section to a page."
 
 
(10 intermediate revisions by the same user not shown)
Line 1: Line 1:
This is a sub-page of the Wiki Code Cookbook that serves to demonstrate how to make a Notes and References section to a page.
This is a sub-page of the [[Wiki Code Cookbook]] that serves to demonstrate how to make a Notes and References section to a page.
 
== Demo Section One ==
Sometimes a crème caramel is called a flan.<ref name="pudi">Wikipedia contributors. (2025, June 11). ''Crème caramel''. Wikipedia. https://en.wikipedia.org/wiki/Cr%C3%A8me_caramel</ref> To create a reference, all I have to do is type:<pre>
<ref>
</pre>...and the Wiki will automatically assign the next number in a sequence of references on that page. Since this is my first reference, it is labeled as "<sup>1</sup>". My next reference will be "<sup>2</sup>", and so forth. The Wiki will also automatically adjust all the numbering if you go back and place a reference before another one already published.
 
 
As soon as I create even a single reference, I should establish the Notes and References section. To do that, I go to the end of the page and use this markup:<pre>
== Notes and References ==
<references />
</pre>Once this is established, the Wiki will automatically place all reference information in this section. Handy!<br>
== Demo Section Two ==
It may be true that flans in Japan have designed sophisticated mind control methods.<ref>Verax. (2010, December 2). ''PUDDI PUDDI (Original Video)'' [Video]. YouTube. https://www.youtube.com/watch?v=1S2nuZsBz8g</ref> However, the Wikipedia article is silent on these possibilities.<ref name="pudi"/>
 
Notice that that last sentence uses the same reference as the first I set up on the page. I did that by naming the reference. The FIRST time I use the reference, I do this:
<pre>
<ref name="pudi">Wikipedia contributors. (2025, June 11). ''Crème caramel''. Wikipedia. https://en.wikipedia.org/wiki/Cr%C3%A8me_caramel</ref>
</pre>
And the second time I use the reference, I just type this:
<pre>
<ref name="pudi"/>
</pre>
That will allow the notation to appear the same, so that it doesn't assign a new sequential number to the reference used previously on the page (which can clutter things up if done too often).<br>
== Notes and References ==
<references />