Difference between revisions of "Template:Patch"

From Wowpedia
Jump to: navigation, search
(Moving the API changes link to a more prominent position, and allowing it to be a red link, per discussion on Discord)
(Removing false positives by putting the api links only on pages with a Template:apinav)
 
Line 10: Line 10:
 
Battle for Azeroth -->|8.={{Bfa-inline}}<!--
 
Battle for Azeroth -->|8.={{Bfa-inline}}<!--
 
Shadowlands -->|9.={{Sl-inline}}<!--
 
Shadowlands -->|9.={{Sl-inline}}<!--
Default (Classic) -->|{{Wow-inline}}}}</span> '''[[Patch {{{patchpage|{{{patch}}}}}}|Patch {{{patch}}}]]''' {{#if:{{#invoke:Api|GetType|{{PAGENAME}}}}|/ [[Patch {{{patchpage|{{{patch}}}}}}/API changes| API changes]]
+
Default (Classic) -->|{{Wow-inline}}}}</span> '''[[Patch {{{patchpage|{{{patch}}}}}}|Patch {{{patch}}}]]''' {{#if:{{#var:IsAnApiPage}}|/ [[Patch {{{patchpage|{{{patch}}}}}}/API changes| API changes]]
 
}} '''({{#if:{{{date|}}}|{{#ifeq:{{{date}}}|Beta|[[Beta|{{text|MediumVioletRed|Beta}}]]|{{{date}}}}}|[[PTR|{{text|MediumVioletRed|PTR}}]]}}):''' {{#if:{{{bluenote|}}}
 
}} '''({{#if:{{{date|}}}|{{#ifeq:{{{date}}}|Beta|[[Beta|{{text|MediumVioletRed|Beta}}]]|{{{date}}}}}|[[PTR|{{text|MediumVioletRed|PTR}}]]}}):''' {{#if:{{{bluenote|}}}
 
|"{{text|blizz|{{{bluenote}}}}}"
 
|"{{text|blizz|{{{bluenote}}}}}"

Latest revision as of 23:40, 19 April 2021

Do not directly use this template! Use the appropriate template in Category:Patch templates instead. Example: {{Patch 3.3.0|<note=Added>}}

Patch adds a nice formatted link about patch changes. It is an internal template not designed to be called directly.

Usage

Template:Patch 2.1 would use it thus:

<onlyinclude>{{Patch
  |patch=2.1
  |patchpage=2.1.0
  |date=2007-05-22
  |bluenote={{{bluenote|}}}
  |note={{{note|}}}
  |link={{{link|}}}
  |comment={{{comment|}}}
}}</onlyinclude>
  • date must be a valid, parseable date, or the word "Beta" if included. If the date is omitted, it defaults to "PTR".
  • patchpage is optional if it would be equal to patch. You can use it to avoid linking to a redirect.

Examples

*{{Patch
  |patch=1.2.3
  |date=2005-01-02
  |bluenote=quote from a forum thread
  |note=Quoted text from patch notes
  |link=http://www.example.invalid/forum_thread_for_bluenote
  |comment=Un-official notes, undocumented changes or additional info
}}

*{{Patch
  |patch=1.2.3
  |date=2006-01-02
  |note=Quoted text from patch notes
  |comment=Un-official notes, undocumented changes or additional info
}}

*{{Patch
  |patch=1.2.3
  |date=2007-01-02
  |comment=Un-official notes, undocumented changes or additional info
}}
Un-official notes, undocumented changes or additional info
  • WoW Icon update.png Patch 1.2.3 (2006-01-02): Quoted text from patch notes
Un-official notes, undocumented changes or additional info
  • WoW Icon update.png Patch 1.2.3 (2007-01-02): Un-official notes, undocumented changes or additional info

Notes

  • note, bluenote and comments are all optional, but at least one must be included
  • Comments are recommended when an item only gives specifics about the new change. For example "foo was increased to 120%" could have the comment "Previously 90%".