Difference between revisions of "Template:Client Patch"

m (Testing something.)
(And thus the great Client Patch reckoning begins! (This change is going to temporarily break everything.))
Line 9: Line 9:
 
|notes=
 
|notes=
 
|patchnotes=
 
|patchnotes=
 +
|previous=
 +
|next=
 
}}</nowiki>
 
}}</nowiki>
 
|category=Page
 
|category=Page
Line 18: Line 20:
 
|denotes=the client for which the client patch was issued
 
|denotes=the client for which the client patch was issued
 
|generates=the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section
 
|generates=the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section
|validvalues= "2d" (Classic Client), "ec" (Enhanced Client), "kr" (Kingdom Reborn Client), "3d" (Third Dawn Client)
+
|validvalues= "cc" (Classic Client), "ec" (Enhanced Client), "kr" (Kingdom Reborn Client), "td" (Third Dawn Client)
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 26: Line 28:
 
|generates=the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section
 
|generates=the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section
 
|othernotes=At current, the only case in which this can be true is for old patches that were issued for both the Classic and Third Dawn Clients.
 
|othernotes=At current, the only case in which this can be true is for old patches that were issued for both the Classic and Third Dawn Clients.
|validvalues="3d" (Third Dawn Client)
+
|validvalues="td" (Third Dawn Client)
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
Line 33: Line 35:
 
|takes=a string
 
|takes=a string
 
|denotes=the date on which the client patch was issued
 
|denotes=the date on which the client patch was issued
|generates=the "Date" bullet point
+
|generates=the "Date" bullet point, as well as the date displayed in the sequence box
 
|validvalues=Any string representing a date.
 
|validvalues=Any string representing a date.
 
}}
 
}}
Line 60: Line 62:
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 
}}
 
}}
</noinclude><includeonly>__NOTOC__ __NOEDITSECTION__
+
{{Template Parameter
{{#ifeq: {{{client}}} | kr
+
|name=previous
| This patch was for the [[Ultima Online: Kingdom Reborn|Kingdom Reborn Client]].
+
|takes=a string
 +
|denotes=the number of the client patch that came before the current client patch
 +
|generates=the link under the "Previous" heading in the leftmost section of the sequence box that links to the previous client patch
 +
|othernotes=If there is no "Next" client patch, this parameter becomes mandatory, as otherwise you would be left with a one-patch sequence.
 +
|validvalues=Any string corresponding to a valid patch number.
 +
}}
 +
{{Template Parameter
 +
|name=next
 +
|takes=a string
 +
|denotes=the number of the client patch that came after the current client patch
 +
|generates=the link under the "Next" heading in the rightmost section of the sequence box that links to the next client patch
 +
|othernotes=If there is no "Previous" article in the sequence, this parameter becomes mandatory, as otherwise you would be left with a one-patch sequence.
 +
|validvalues=Any string corresponding to a valid patch number.
 +
}}</noinclude><includeonly>__NOTOC__ __NOEDITSECTION__
 +
{{#ifeq: {{{client}}} | cc
 +
| {{#ifeq: {{{otherclient}}} | td
 +
  | This patch was for the [[Classic Client]] and the [[Ultima Online: Third Dawn|Third Dawn Client]].
 +
  | This patch was for the [[Classic Client]].
 +
  }}
 
| {{#ifeq: {{{client}}} | ec
 
| {{#ifeq: {{{client}}} | ec
 
   | This patch was for the [[Enhanced Client]].
 
   | This patch was for the [[Enhanced Client]].
   | {{#ifeq: {{{client}}} | 2d
+
   | {{#ifeq: {{{client}}} | kr
     | {{#ifeq: {{{otherclient}}} | 3d
+
     | This patch was for the [[Ultima Online: Kingdom Reborn|Kingdom Reborn Client]].
      | This patch was for the [[Classic Client]] and the [[Ultima Online: Third Dawn|Third Dawn Client]].
+
     | {{#ifeq: {{{client}}} | td
      | This patch was for the [[Classic Client]].
+
      }}
+
     | {{#ifeq: {{{client}}} | 3d
+
 
       | This patch was for the [[Ultima Online: Third Dawn|Third Dawn Client]].
 
       | This patch was for the [[Ultima Online: Third Dawn|Third Dawn Client]].
 
       | ERROR: Must supply client code.
 
       | ERROR: Must supply client code.
Line 93: Line 110:
 
}}
 
}}
 
==See Also==
 
==See Also==
{{#ifeq: {{{client}}} | kr
+
{{Sequence
| * [[List of Kingdom Reborn Client Patches]]
+
|title={{#ifeq: {{{client}}} | cc
 +
| {{#ifeq: {{{otherclient}}} | td
 +
  | {{Colored Link|List of Classic Client Patches|Classic|color=FFFFFF}} and {{Colored Link|List of Third Dawn Client Patches|Third Dawn|color=FFFFFF}} Client Patches
 +
  | {{Colored Link|List of Classic Client Patches|Classic Client Patches|color=FFFFFF}}
 +
  }}
 
| {{#ifeq: {{{client}}} | ec
 
| {{#ifeq: {{{client}}} | ec
   | * [[List of Enhanced Client Patches]]
+
   | {{Colored Link|List of Enhanced Client Patches|Enhanced Client Patches|color=FFFFFF}}
   | {{#ifeq: {{{client}}} | 2d
+
   | {{#ifeq: {{{client}}} | kr
     | {{#ifeq: {{{otherclient}}} | 3d
+
     | {{Colored Link|List of Kingdom Reborn Client Patches|Kingdom Reborn Client Patches|color=FFFFFF}}
      | * [[List of Classic Client Patches]]
+
     | {{#ifeq: {{{client}}} | td
* [[List of Third Dawn Client Patches]]
+
       | {{Colored Link|List of Third Dawn Client Patches|Third Dawn Client Patches|color=FFFFFF}}
      | * [[List of Classic Client Patches]]
+
      }}
+
     | {{#ifeq: {{{client}}} | 3d
+
       | * [[List of Third Dawn Client Patches]]
+
 
       | ERROR: Must supply client code.
 
       | ERROR: Must supply client code.
 
       }}
 
       }}
Line 110: Line 127:
 
   }}
 
   }}
 
}}
 
}}
[[Category:Client Patches]]</includeonly>
+
|current=[[{{PAGENAME}}|{{#sub: {{PAGENAME}} | 13 }}]]
 +
|date={{{date}}}
 +
|previous={{#if: {{{previous|}}} | [[Client Patch {{{previous}}}|{{{previous}}}]] }}
 +
|next={{#if: {{{next|}}} | [[Client Patch {{{previous}}}|{{{previous}}}]] }}
 +
}}
 +
{{Categorize|Client Patches}}</includeonly>

Revision as of 14:06, 5 December 2011

Template:Client Patch is designed for use on client patch pages to standardize their look and feel and to make them easier to create.

Template

{{Client Patch
|client=
|otherclient=
|date=
|size=
|notes=
|patchnotes=
|previous=
|next=
}}

Parameters

client

  • Usage: Mandatory
  • Description: The client parameter takes a two-character code denoting the client for which the client patch was issued. This is used to generate the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section.
  • Valid Value(s): "cc" (Classic Client), "ec" (Enhanced Client), "kr" (Kingdom Reborn Client), "td" (Third Dawn Client)

otherclient

  • Usage: Optional
  • Description: The otherclient parameter takes a two-character code denoting a second client for which the client patch was issued. This is used to generate the introductory sentence, as well a link back to the corresponding list of client patches in the "See Also" section. At current, the only case in which this can be true is for old patches that were issued for both the Classic and Third Dawn Clients.
  • Valid Value(s): "td" (Third Dawn Client)

date

  • Usage: Mandatory
  • Description: The date parameter takes a string denoting the date on which the client patch was issued. This is used to generate the "Date" bullet point, as well as the date displayed in the sequence box.
  • Valid Value(s): Any string representing a date.

size

  • Usage: Optional
  • Description: The size parameter takes a string denoting the size, in bytes, of the client patch. This is used to generate the "Size" bullet point in the "Statistics" section. If this parameter is left blank or omitted, a default value of "Unknown" is used.
  • Valid Value(s): A comma-separated number.

notes

  • Usage: Optional
  • Description: The notes parameter takes a string or strings denoting any notes or other unofficial commentary on the client patch. This is used to generate the "Notes" bullet point. If this parameter is left blank or omitted, a default value of "None" is used.
  • Valid Value(s): Any string or strings.

patchnotes

  • Usage: Optional
  • Description: The patchnotes parameter takes a string or strings denoting the official patch notes, or a paraphrasing of the official patch notes, that correspond to the client patch. This is used to generate the "Patch Notes" section. If this parameter is left blank or omitted, a default value of "No patch notes given." is used.
  • Valid Value(s): Any string or strings.

previous

  • Usage: Optional
  • Description: The previous parameter takes a string denoting the number of the client patch that came before the current client patch. This is used to generate the link under the "Previous" heading in the leftmost section of the sequence box that links to the previous client patch. If there is no "Next" client patch, this parameter becomes mandatory, as otherwise you would be left with a one-patch sequence.
  • Valid Value(s): Any string corresponding to a valid patch number.

next

  • Usage: Optional
  • Description: The next parameter takes a string denoting the number of the client patch that came after the current client patch. This is used to generate the link under the "Next" heading in the rightmost section of the sequence box that links to the next client patch. If there is no "Previous" article in the sequence, this parameter becomes mandatory, as otherwise you would be left with a one-patch sequence.
  • Valid Value(s): Any string corresponding to a valid patch number.