Template:Listplayer/Current/End

From Rocket League at EsportsWikis
Jump to: navigation, search

(view - edit)

Documentation

Overview

WHEN TO USE LISTPLAYER VS LISTPLAYER/CURRENT:

Why is this distinction important?

A lot of stuff on the wiki is automated using something called "Semantic MediaWiki" which encodes information into a database that is queryable in other places. So if we encode the current roster on one page, we can then query it elsewhere and display the information that was encoded in a new format. So {{Listplayer/Current}} encodes the information that's put into it as the team's current roster. {{Listplayer}} and {{Listplayersp}} don't. We ONLY want current players' information encoded, so it's important to use the two separate templates exactly as described above.

Usage with starting and ending templates

You MUST use {{Listplayer/Current}} with {{Listplayer/Current/Start}} and {{Listplayer/Current/End}}. IF YOU DO NOT USE THESE SISTER TEMPLATES, YOUR CODE WILL NOT WORK!!! See above for templates to use with former and organization. If you use current templates in the wrong place, everything will break!!!

Updating Pages

If a page is currently using {{Listplayer}} for everything, please do all of the following:

  • Switch all current players to {{Listplayer/Current}}
  • Replace manual table start/ends with {{Listplayer/Current/Start}} and {{Listplayer/Current/End}} only in the current roster section
  • Add official Riot residency as the |res= argument (if unknown write |res=Unknown
  • Change |contractdate= to |contract= (syntax updated for future simplicity)
  • Remove the |{{{1}}} argument (this is no longer needed)
  • Ensure that no player uses the syntax of link{{!}}name and instead use the syntax |name|link=link
Good Bad
|Amazing|link=Amazing (Maurice Stückenschneider) |Amazing (Maurice Stückenschneider){{!}}Amazing
  • Optional but encouraged: update former players and organization sections manual table starts and ends to {{Listplayer/Start}} and {{Listplayer/End}}. If you use "current" outside of "current roster" you will break stuff so be careful!
  • Concurrently, or immediately after, update the appropriate Teams Portal page - updating the team page will break the current format for the team portal page. See {{PortalTeamDisplay}} for more information on its usage.

Example

{{listplayer/Current/Start|res=yes|contract=yes}}
{{listplayer/Current|Bjergsen|dk|Søren Bjerg|Mid|contract=20th Nov 2018|res=EU}}
{{listplayer/Current|WildTurtle|ca|Jason Tran|AD|contract=20th Nov 2018|res=NA }}
{{listplayer/Current|BillyBoss|us|Billy Yu|Top|sub=true|res=NA }}
{{listplayer/Current|Reginald|us|Andy Dinh|Mid|sub=true|res=NA }}
{{listplayer/Current|Patoy|us|Jordan Blackburn|Support|sub=true|res=NA }}
{{Listplayer/Current/End}}
R C ID Name Role Contract Ends
Current Official Residency Denmark Bjergsen Søren Bjerg 11 2018-11-20
Current Official Residency Canada WildTurtle Jason Tran 11 2018-11-20
Current Official Residency USA BillyBoss Billy Yu 11 Sub/ -
Current Official Residency USA Reginald Andy Dinh 11 Sub/ -
Current Official Residency USA Patoy Jordan Blackburn 11 Sub/ -

Additional Notes

The Semantic MediaWiki used in {{Listplayer/Current}} and its sister templates will only within the Main namespace (i.e. pages that don't start with Template: or User: or Category: etc.) That means you don't have to worry about causing problems from using this template within your user namespace.

See {{Listplayer/Current/Start}} for more information about usage.