User:Equalizer5118/Sandbox: Difference between revisions

From Valve Developer Community
Jump to navigation Jump to search
No edit summary
(Clearing page)
Tag: Replaced
 
(2 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{User:Equalizer5118/Page header}}
{{User:Equalizer5118/Page header}}
== WIP citation overhaul ==
My old {{tl2|Citation}} template (originally called ref2) is very basic, only having the ability to put any format of text into {{param|1}}, with the only other parameter being {{param|access-date}} (and cite-id, but that's not changing). This new Citation template will be more accurate to Wikipedia's version, with parameters for each part of the citation (title, url, website, archive-url, last, first, etc), with the exception that {{param|title}} will not have any special styling, and the user will have to manually put any quotes or italics. Some parameters will likely be missing, because they are usually not used by the average user and my not get used considering the scope of this wiki, but I will try my best to include the important ones. Feel free to use my talk page to suggest anything or if you have any questions.
<sup>{{Cite|1}}{{cite|2}}{{cite|3}}</sup><br>
Checklist:
* <s>last
* first
* author
* date
* title
* url
* website
* location
* publisher
* url-status
* archive-url
* archive-date
* access-date</s>
{{{{FULLPAGENAME}}
    | 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
}}
{{{{FULLPAGENAME}}
    | cite id = 2
| last        = Doe
    | first        = Jane
    | date        = 30 October, 1994
    | title        = Totally Awesome Article
    | url          = http://url/
    | work        = Daily Planet
    | location    = Metro City
    | publisher    =
    | url-status  = live
    | archive-url  = http://archiveurl/
    | archive-date = 7 July, 2010
    | access-date  = 28 July, 2025
}}
{{{{FULLPAGENAME}}
    | cite id = 3
| author      = Parker, Peter
    | date        = 2005
    | title        = Green Goblin Jailed!
    | url          = http://url/
    | work        = Daily Planet
    | location    = Metro City
    | url-status  = deviated
    | archive-url  = http://archiveurl/
    | archive-date = 7 July, 2005
    | access-date  = 30 July, 2025
}}
<includeonly><onlyinclude><div id="ref{{{cite id|}}}" style="padding: 0px 5px">
:{| style="background:transparent"
|- style="vertical-align:top;"
|[[#cite{{{cite id|}}}|{{{cite id|}}}.]]
|| <!--
  author/date
--> {{#if:{{{last|}}}{{{first|}}}{{{date|}}}{{{author|}}}
    | {{{author|{{#if:{{{last|}}}|{{{last|}}}{{#if:{{{first|}}}|,&nbsp;|}}}}{{{first|}}}}}}{{#if:{{{date|{{{year|}}}}}}|&nbsp;({{{date|{{{year|tf how did this happen}}}}}})|}},&nbsp;<!--
-->|}}<!--
  title
-->{{#if:{{{title|}}}
    | {{#if:{{{url|}}}
        | [{{#if:{{{archive-url|}}}
            | {{#switch:{{{url-status}}}
                | live = {{{url}}}
                | #default = {{{archive-url}}}}}<!--
        -->| {{{url}}}<!--
    -->}} {{{title|bruh}}}]{{#ifeq:{{{url-status}}}|live||&nbsp;(Archived)|}}<!--
-->|{{{title|}}}}}<!--
-->|{{tpl error|missing title!}}}}. <!--
Website/work
-->{{#if:{{{website|{{{work|}}}}}}|<i>{{{website|{{{work}}}}}}</i>.&nbsp;|}}<!--
Location
-->{{#if:{{{location|}}}|{{{location}}}{{#if:{{{publisher|}}}|<nowiki>:</nowiki>|.}}&nbsp;|}}<!--
Publisher
-->{{#if:{{{publisher|}}}|{{{publisher}}}.&nbsp;|}}<!--
Archived text
-->{{#if:{{{archive-url|}}}
    | {{#switch:{{{url-status|}}}
        | live = [{{{archive-url}}} Archived] from the original
        | dead | deviated | #default = Archived from the [{{{url}}} original]{{#ifeq:{{{url-status|}}}|deviated|&nbsp;(Deviated)|}}}}<!--
-->}}{{#if:{{{archive-date|}}}|&nbsp;on {{{archive-date|}}}.&nbsp;|}}<!--
Retrieved
-->{{#if:{{{access-date|}}}|Retrieved on {{{access-date}}}.}}
|}</div></onlyinclude></includeonly>

Latest revision as of 14:33, 31 July 2025