Difference between revisions of "Template:References/doc"

From LFS Manual
Jump to navigationJump to search
(Created page with "== Basic usage == {{references|one|two|three}}")
 
m (→‎Basic usage: swapped example for a more recent link, non-archived)
 
(8 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<noinclude>{{documentation subpage}}</noinclude>
 +
 +
A reference list to be included in a top-level "References" section at the end of articles. The references are currently handled in a different way compared to the public Wikipedia. The references are only marked with an index in-content with template {{tl|code=1|ref}}, and then the actual references are listed using this template, in the order of ref indices in-article (make sure the indices next to statements match the referenced content).
 +
 +
If referencing a web-based source, please consider using template {{tl|code=1|cite web}} when possible.
 +
 
== Basic usage ==
 
== Basic usage ==
  
{{references|one|two|three}}
+
{{markup|
 +
<nowiki>{{references
 +
|one
 +
|two
 +
|three
 +
|{{cite web |url=https://www.lfs.net/news/1618 |title=New LFS version 0.7F |first=Scawen |last=Roberts |date=July 27, 2024 |website=LFS official website |access-date=July 30, 2024}}
 +
|five
 +
|six
 +
|[https://www.lfs.net seven]
 +
}}</nowiki>|{{references|one|two|three|{{cite web |url=https://www.lfs.net/news/1618 |title=New LFS version 0.7F |first=Scawen |last=Roberts |date=July 27, 2024 |website=LFS official website |access-date=July 30, 2024}}|five|six|[https://www.lfs.net seven]}}|five|six|[https://www.lfs.net seven]}}<!-- Template:Mra -->
 +
 
 +
<includeonly>
 +
[[Category:Citation templates]]
 +
</includeonly>

Latest revision as of 11:47, 30 July 2024

Information icon4.png This is a documentation subpage for Template:References.

It may contain usage information, categories and other content that is not part of the original page.

A reference list to be included in a top-level "References" section at the end of articles. The references are currently handled in a different way compared to the public Wikipedia. The references are only marked with an index in-content with template {{ref}}, and then the actual references are listed using this template, in the order of ref indices in-article (make sure the indices next to statements match the referenced content).

If referencing a web-based source, please consider using template {{cite web}} when possible.

Basic usage

Markup Renders as
{{references
|one
|two
|three
|{{cite web |url=https://www.lfs.net/news/1618 |title=New LFS version 0.7F |first=Scawen |last=Roberts |date=July 27, 2024 |website=LFS official website |access-date=July 30, 2024}}
|five
|six
|[https://www.lfs.net seven]
}}
  1. ^ one
  2. ^ two
  3. ^ three
  4. ^ Roberts, Scawen (July 27, 2024). "New LFS version 0.7F". LFS official website. Retrieved July 30, 2024.
  5. ^ five
  6. ^ six
  7. ^ seven