Template:References: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
m (Make linkable)
No edit summary
 
(14 intermediate revisions by 5 users not shown)
Line 1: Line 1:
{{Todo|Make this template better. It is useful to know where the information was taken from, but the implementation of this in [[mw:Extension:Cite|Extension:Cite]] is disgusting (this also applies to superscript links).}}
{{Documentation}}
{{Doc}}
 
<includeonly><onlyinclude>
<includeonly>
== References ==
 
{| {{#switch:{{{collapsible|}}}|false=|#default=class="mw-collapsible {{#switch:{{{collapsed|}}}|false=|mw-collapsed}}"}} style="width:100%; border:2px solid #525252; border-radius:.3em"
<onlyinclude><h2>
! style="background-color:#3A3A3A; color:hsl(30deg 6% 85%)" | {{autolang
<span style="cursor:help" title="{{#switch: {{{lang|{{ROOTPAGENAME}}}}}|#default = The header of this section is included in Template:References, which makes it impossible to edit it on the current page.|Ru = Заголовок данного раздела включён в Template:References, из-за чего его редактирование невозможно на текущей странице.}}">{{#switch: {{{lang|{{ROOTPAGENAME}}}}}
| References
| #default = References
| es = Referencias
| Es = Referencias
| pt = Referências
| Hr = Reference
| ru = Примечания
| Pt = Referências
| tr = Kaynakça
| Ru = Примечания
| zh = 参考文献 }}
| Tr = Kaynakça
| Zh = 参考文献
}}</span>
</h2>
{| {{#switch:{{{collapsible|}}}|false=|#default=class="mw-collapsible {{#switch:{{{collapsed|}}}|true=mw-collapsed|#default=}}"}} style="width:100%; border:2px solid #525252; border-radius:.3em"
! style="background-color:#3A3A3A; color:hsl(30deg 6% 85%)" | {{#switch: {{{lang|{{ROOTPAGENAME}}}}}
| #default = References
| Es = Referencias
| Hr = Reference
| Pt = Referências
| Ru = Примечания
| Tr = Kaynakça
| Zh = 参考文献 }}
|-
|-
| style="background-color:#323232; padding:.3em" | {{{1|}}}
| style="background-color:#323232; padding:.3em" | {{{1|{{error|Missing Parameter {{param|1}} in template {{tl|References}}.}}}}}
|}</onlyinclude>
|}</onlyinclude>
</includeonly>
</includeonly>
<!-- NOTES TO EDITORS: To edit or change the references, please click the edit button on the page itself (on top right) instead of the edit button on the "References" section. -->

Latest revision as of 13:10, 1 August 2024

English (en)Deutsch (de)Esperanto (eo)Español (es)Français (fr)Suomi (fi)Hrvatski (hr)Magyar (hu)Italiano (it)日本語 (ja)한국어 (ko)Nederlands (nl)Polski (pl)Português (pt)Português do Brasil (pt-br)Русский (ru)Slovenčina (sk)Svenska (sv)Türkçe (tr)Українська (uk)Tiếng Việt (vi)中文 (zh)中文(臺灣) (zh-tw)
Curly brackets white.pngTemplate Documentation [view] [edit]
Icon-translate.png Available doc translations
View
Page history

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|}}
{{Citation
    |cite id=9
    |archive-url=http://archive-url/
    |access-date=IDK
    |title=testing testing, ahem, everything seems to be in order
}}

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}}}!}}.
9. testing testing, ahem, everything seems to be in order. Archived from the original. Retrieved on IDK.