Template:Cite/doc/example: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
(Needs a better example, replaced the template with the updated one)
No edit summary
Line 3: Line 3:
{{Bug|1=Links with "=" on it will break the template. Please use the {{T|{{=}}}} template as a workaround.|hidetested=1}}
{{Bug|1=Links with "=" on it will break the template. Please use the {{T|{{=}}}} template as a workaround.|hidetested=1}}
{{Workaround|offset=1|1=This can be fixed by adding "1=" before the text, this allows templates or links to have equal sign without needing the template, see the example code, it should be highlighted in dark yellow.}}
{{Workaround|offset=1|1=This can be fixed by adding "1=" before the text, this allows templates or links to have equal sign without needing the template, see the example code, it should be highlighted in dark yellow.}}
{{pre|1=<nowiki>{{Citation| cite id = 1
{{pre|1=<nowiki>{{Citation
    | cite id     = 1
| last        = Doe
| last        = Doe
     | first        = John
     | first        = John

Revision as of 14:34, 31 July 2025

Example used on all Citation doc pages. Put here so we don't have to edit 3 copies of the same text.

Example

Icon-Bug.pngBug:Links with "=" on it will break the template. Please use the {{=}} template as a workaround.
PlacementTip.pngWorkaround:This can be fixed by adding "1=" before the text, this allows templates or links to have equal sign without needing the template, see the example code, it should be highlighted in dark yellow.
{{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}}}!}}.