Help:Editing/References: Difference between revisions

WikiAdmin (talk | contribs)
m WikiAdmin moved page Editing/References to Help:Editing/References: This is an internal article from the IntactiWiki manual and shouldn't be present in the Main space.
WikiAdmin (talk | contribs)
m References using links: text adjustments
 
(7 intermediate revisions by the same user not shown)
Line 1: Line 1:
IntactiWiki articles must be written in a descriptive style like in the Wikipedia, based on reliable information from outside the IntactiWiki. Those references should always be linked to the portion of text where they belong.
IntactiWiki articles must be written in a descriptive style like in the Wikipedia, based on [[Help:Editing/Verifiability|reliable information]] from outside the IntactiWiki. Those references should always be linked to the portion of text where they belong.


== Basic references ==
== Basic references ==
Line 11: Line 11:
You can use any complex portion of text for a reference. Please keep in mind that it will be converted into an article footnote, so you better keep reference texts as short as possible. The following code sample shows how to use a simple external link in a reference:
You can use any complex portion of text for a reference. Please keep in mind that it will be converted into an article footnote, so you better keep reference texts as short as possible. The following code sample shows how to use a simple external link in a reference:


  <nowiki><ref>[http://www.facebook.com Facebook link to the information]</nowiki>
  <nowiki><ref>[https://www.facebook.com Facebook link to the information]</ref></nowiki>


The external link is always written in single square brackets, with the URL followed by a space character and the URL description or title.<ref>[http://www.facebook.com Facebook link to the information]</ref>
The external link is always written in '''single square brackets''', with the URL '''followed by a space character''' and the URL description or title.<ref>[https://www.facebook.com Facebook link to the information]</ref>


== References using templates ==
== References using templates ==
Line 20: Line 20:
{{DefaultTemplates}}
{{DefaultTemplates}}


Templates can use parameters, and the more parameters, the more you may want to use a vertical notation for a reference. The listed templates try to offer copyable template code in both vertial and horizontal notation. The formatting results are the same. Here is a REFweb example:
Templates can use parameters, and the more parameters, the more you may want to use a vertical notation for a reference. The listed templates try to offer copyable template code in both vertial and horizontal notation. The formatting results are the same.
 
'''Note:''' Because the vertical notation is clearer and helps to avoid and find errors, we recommend using vertical notation.
 
Here is a REFweb example:


=== Horizontal notation ===
=== Horizontal notation ===
Line 29: Line 33:
{{REFweb |url=http://www.example.org |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |website=Encyclopedia of Things |work=Huge work |date=2018-12-24 |accessdate=2019-09-20 |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...}}
{{REFweb |url=http://www.example.org |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |website=Encyclopedia of Things |work=Huge work |date=2018-12-24 |accessdate=2019-09-20 |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...}}


'''Note:''' The warning about a deprecated template parameter is built into the template output itself and helps not to use deprecated parameters.<ref>{{REFweb |url=http://www.example.org |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |website=Encyclopedia of Things |work=Huge work |date=2018-12-24 |accessdate=2019-09-20 |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...}}</ref>
'''Note:''' The warning about a deprecated template parameter is built into the template output itself and helps avoiding deprecated parameters.<ref>{{REFweb |url=http://www.example.org |title=My Favorite Things, Part II |last=Doe |first=John |publisher=Open Publishing |website=Encyclopedia of Things |work=Huge work |date=2018-12-24 |accessdate=2019-09-20 |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...}}</ref>


=== Vertical notation ===
=== Vertical notation ===
Line 69: Line 73:
  |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...
  |quote=... Lord Balfour came forward with a unique concern: 'Supposing some unfortunate lady was confined with twins ...
}}</ref>
}}</ref>
== Multiple usage of references ==
It's quite usual to use a reference multiple times in an article. In order to be able and re-use a reference, you will have to name its tag like in the following example:
<ref name=John>
If the reference name has more than one word, use quotation marks instead.
<ref name="Name of the reference">
If you want to use it after the initial usage, simply write for the second position:
<nowiki><ref name=John/></nowiki>
or for the second example above:
<nowiki><ref name="Name of the reference"/></nowiki>
The slash at its end informs the render engine that this is a complete ref tag. A leading space character in front of the slash is not required any longer. This behavior is identical to common HTML5 tags.


{{SEEALSO}}
{{SEEALSO}}
* [http://en.intactiwiki.org/index.php/Special:AllPages?from=&to=&namespace=10 Templates available in the IntactiWiki]
* [[Special:AllPages/Template:|Templates available in the IntactiWiki]]


{{REF}}
{{REF}}


[[Category:IntactiWiki manual]]
[[Category:IntactiWiki manual]]