Template:References/doc: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 2: Line 2:
This template creates a references section, which is used in tandem with {{tl2|Cite}} and {{tl2|Ref2}} to create references as a replacement for the missing Cite extension.
This template creates a references section, which is used in tandem with {{tl2|Cite}} and {{tl2|Ref2}} to create references as a replacement for the missing Cite extension.


{{Cite/doc/example}}}}
== Parameters and Examples ==
{| class="standard-table" style="width:100%"
|- style="position:sticky; z-index:10; top:0"
! Parameter
! Description
! Examples
|-
| style="text-align:center" | {{Code|preset=1| {{Param|1}} |}}
| style="text-align:center; padding:.2em .5em" | Your text. If any equals signs are present, prepend {{code|1=1=}} to the section.
| style="padding:.2em .5em" |
 
{{CodeBlock|<nowiki>{{references|1=
{{ref2|cite id=1|This is the external source that the text was cited from}}
}}</nowiki>}}
 
|}
 
{{Cite/doc/example}}

Latest revision as of 23:46, 27 July 2025

Edit-copy.png
This is a documentation subpage for Template:References.
Don't forget to purge the contents of the base page upon creating or editing this subpage.

This template creates a references section, which is used in tandem with {{Cite}} and {{Ref2}} to create references as a replacement for the missing Cite extension.

Parameters and Examples

Parameter Description Examples
{{{1}}} Your text. If any equals signs are present, prepend 1= to the section.
{{references|1= {{ref2|cite id=1|This is the external source that the text was cited from}} }}

Example

{{lorem ipsum|1}}{{cite|1}}

{{highlight|color=white|text color=black|1=This is really cool text from an external source.}}{{cite|2}}{{cite|4}}{{cite|5}}

{{highlight|color=white|text color=black|1=This is really cool text from an external source which has since become dead.}}{{cite|3}}

{{lorem ipsum|1}}{{cite|6}}{{cite|7}}{{Citation
    | cite id      = 1
    | last         = Doe
    | first        = John
    | author       = Doe, John S
    | date         = 27 September, 2007
    | title        = Really Cool Article
    | url          = http://url/
    | website      = Site Name
    <!--| work         = Work Name-->
    | location     = Planet Earth
    | publisher    = Cool name Publishing
    | url-status   = <!-- dead, live, deviated -->
    | archive-url  = http://archiveurl/
    | archive-date = 4 July, 2016
    | access-date  = 28 July, 2025
}}
{{Citation
    | cite id = 5
    | 1 = Old template being used in this testcase! Please fix!
    | access-date = 7 March, 2024
}}
{{Citation
    | cite id = 6
    | title = Test title for things
}}
{{Citation
    | cite id = 7
}}
{{Citation|}}

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[1]

This is really cool text from an external source.[2][4][5]

This is really cool text from an external source which has since become dead.[3]

Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.[6][7]

References

References
1. Doe, John S (27 September, 2007), Really Cool Article (Archived). Site Name. Planet Earth: Cool name Publishing. Archived from the original on 4 July, 2016. Retrieved on 28 July, 2025.
2. Doe, Jane (30 October, 1994), Totally Awesome Article. Daily Planet. Metro City. Archived from the original on 7 July, 2010. Retrieved on 28 July, 2025.
3. Parker, Peter (2005), Green Goblin Jailed! (Archived). Daily Planet. Metro City. Archived from the original (Deviated) on 7 July, 2005. Retrieved on 30 July, 2025.
4. Green Goblin Jailed!. Retrieved on 30 July, 2025.
5. Old template being used in this testcase! Please fix!. Retrieved on 7 March, 2024.
6. Test title for things.
7. {{missing necessary {{{title}}}!}}.
{{missing necessary {{{cite id}}}!}} {{missing necessary {{{title}}}!}}.