Difference between revisions of "Template:Client Patch"

m
(Let's see how much I accidentally broke with this.)
Line 9: Line 9:
 
|notes=
 
|notes=
 
|patchnotes=
 
|patchnotes=
 +
|current=
 
|previous=
 
|previous=
 
|next=
 
|next=
 +
|otherclientcurrent=
 +
|otherclientprevious=
 +
|otherclientnext=
 
}}</nowiki>
 
}}</nowiki>
 
|category=Page
 
|category=Page
Line 61: Line 65:
 
|defaultvalue=No patch notes given.
 
|defaultvalue=No patch notes given.
 
|validvalues=Any string or strings.
 
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=current
 +
|takes=a string
 +
|denotes=the number of the client patch described by the current article, as numbered for the client chosen in the {{Monospace|client}} parameter
 +
|generates=the bold patch number in the center of the primary sequence box under
 +
|othernotes=If this parameter is not used, the template will automatically parse the number out of the article's name.
 +
|validvalues=Any string corresponding to a valid patch number.
 
}}
 
}}
 
{{Template Parameter
 
{{Template Parameter
 
|name=previous
 
|name=previous
 
|takes=a string
 
|takes=a string
|denotes=the number of the client patch that came before the current client patch
+
|denotes=the number of the client patch that came before the current client patch, as numbered for the client chosen in the {{Monospace|client}} parameter
|generates=the link under the "Previous" heading in the leftmost section of the sequence box that links to the previous client patch
+
|generates=a link to the previous client patch under the "Previous" heading in the leftmost section of the primary sequence box
 
|othernotes=If there is no "Next" client patch, this parameter becomes mandatory, as otherwise you would be left with a one-patch sequence.
 
|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.
 
|validvalues=Any string corresponding to a valid patch number.
Line 73: Line 85:
 
|name=next
 
|name=next
 
|takes=a string
 
|takes=a string
|denotes=the number of the client patch that came after the current client patch
+
|denotes=the number of the client patch that came after the current client patch, as numbered for the client chosen in the {{Monospace|client}} parameter
|generates=the link under the "Next" heading in the rightmost section of the sequence box that links to the next client patch
+
|generates=a link to the next client patch under the "Next" heading in the rightmost section of the primary sequence box
 
|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.
 
|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.
 +
}}
 +
{{Template Parameter
 +
|name=otherclientcurrent
 +
|takes=a string
 +
|denotes=the number of the client patch described by the current article, as numbered for the client chosen in the {{Monospace|otherclient}} parameter
 +
|generates=the bold patch number in the center of the secondary sequence box
 +
|othernotes=If this parameter is not used, the template will automatically parse the number out of the article's name. This parameter is meant to be used in situations where the current article describes a patch that applies to two clients, but its number is not synchronized across both.
 +
|validvalues=Any string corresponding to a valid patch number.
 +
}}
 +
{{Template Parameter
 +
|name=otherclientprevious
 +
|takes=a string
 +
|denotes=the number of the client patch that came before the current client patch, as numbered for the client chosen in the {{Monospace|otherclient}} parameter
 +
|generates=a link to the previous client patch under the "Previous" heading in the leftmost section of the secondary sequence box
 +
|othernotes=This parameter is only usable if the {{Monospace|otherclient}} parameter is filled in. If this parameter is not used the value defaults to that of the {{Monospace|previous}} parameter. This parameter is meant to be used in situations where the previous patch applies to two clients, but its number is not synchronized across both.
 +
|validvalues=Any string corresponding to a valid patch number.
 +
}}
 +
{{Template Parameter
 +
|name=otherclientnext
 +
|takes=a string
 +
|denotes=the number of the client patch that came after the current client patch, as numbered for the client chosen in the {{Monospace|otherclient}} parameter
 +
|generates=a link to the next client patch under the "Next" heading in the rightmost section of the secondary sequence box
 +
|othernotes=This parameter is only usable if the {{Monospace|otherclient}} parameter is filled in. If this parameter is not used the value defaults to that of the {{Monospace|next}} parameter. This parameter is meant to be used in situations where the next patch applies to two clients, but its number is not synchronized across both.
 
|validvalues=Any string corresponding to a valid patch number.
 
|validvalues=Any string corresponding to a valid patch number.
 
}}</noinclude><includeonly>__NOTOC__ __NOEDITSECTION__
 
}}</noinclude><includeonly>__NOTOC__ __NOEDITSECTION__
 
{{#ifeq: {{{client}}} | cc
 
{{#ifeq: {{{client}}} | cc
 
| {{#ifeq: {{{otherclient}}} | td
 
| {{#ifeq: {{{otherclient}}} | td
   | This patch was for the [[Classic Client|Classic]] and [[Ultima Online: Third Dawn|Third Dawn Clients]].
+
   | This patch was for the [[Classic Client|Classic]] and [[Ultima Online: Third Dawn|Third Dawn]] Clients.
 
   | This patch was for the [[Classic Client]].
 
   | This patch was for the [[Classic Client]].
 
   }}
 
   }}
Line 111: Line 147:
 
==See Also==
 
==See Also==
 
{{Sequence
 
{{Sequence
|title={{#ifeq: {{{client}}} | cc
+
|title={{#ifeq: {{{client|cc}}} | cc
| {{#ifeq: {{{otherclient}}} | td
+
| {{Colored Link|List of Classic Client Patches|Classic Client Patches|color=FFFFFF}}
  | {{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
 
   | {{Colored Link|List of Enhanced Client Patches|Enhanced Client Patches|color=FFFFFF}}
 
   | {{Colored Link|List of Enhanced Client Patches|Enhanced Client Patches|color=FFFFFF}}
Line 127: Line 160:
 
   }}
 
   }}
 
}}
 
}}
|current=[[{{PAGENAME}}|{{#sub: {{PAGENAME}} | 13 }}]]
+
|current={{#if: {{{current|}}} | '''{{{current}}}''' | [[{{PAGENAME}}|{{#sub: {{PAGENAME}} | 13 }}]] }}
 
|date={{{date}}}
 
|date={{{date}}}
 
|previous={{#if: {{{previous|}}} | Client Patch {{{previous}}} {{!}} {{{previous}}} }}
 
|previous={{#if: {{{previous|}}} | Client Patch {{{previous}}} {{!}} {{{previous}}} }}
 
|next={{#if: {{{next|}}} | Client Patch {{{next}}} {{!}} {{{next}}} }}
 
|next={{#if: {{{next|}}} | Client Patch {{{next}}} {{!}} {{{next}}} }}
 +
}}
 +
{{#ifeq: {{{client|cc}}} | cc
 +
| {{#ifeq: {{{otherclient|td}}} | td
 +
  | {{Sequence
 +
    |title={{Colored Link|List of Third Dawn Client Patches|Third Dawn Client Patches|color=FFFFFF}}
 +
    |current={{#if: {{{otherclientcurrent|}}} | '''{{{otherclientcurrent}}}''' | [[{{PAGENAME}}|{{#sub: {{PAGENAME}} | 13 }}]] }}
 +
    |date={{{date}}}
 +
    |previous={{#if: {{{otherclientprevious|}}} | Client Patch {{{otherclientprevious}}} {{!}} {{{otherclientprevious}}} | Client Patch {{{previous}}} {{!}} {{{previous}}} }}
 +
    |next={{#if: {{{otherclientnext|}}} | Client Patch {{{otherclientnext}}} {{!}} {{{otherclientnext}}} | Client Patch {{{next}}} {{!}} {{{next}}} }}
 +
    }}
 +
  }}
 
}}
 
}}
 
{{#ifeq: {{{client}}} | cc
 
{{#ifeq: {{{client}}} | cc

Revision as of 15:22, 1 January 2012

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=
|current=
|previous=
|next=
|otherclientcurrent=
|otherclientprevious=
|otherclientnext=
}}

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, a link back to the corresponding list of client patches in the "See Also" section, and the category to which the article belongs.
  • 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.

current

  • Usage: Optional
  • Description: The current parameter takes a string denoting the number of the client patch described by the current article, as numbered for the client chosen in the client parameter. This is used to generate the bold patch number in the center of the primary sequence box under. If this parameter is not used, the template will automatically parse the number out of the article's name.
  • Valid Value(s): Any string corresponding to a valid patch number.

previous

  • Usage: Optional
  • Description: The previous parameter takes a string denoting the number of the client patch that came before the current client patch, as numbered for the client chosen in the client parameter. This is used to generate a link to the previous client patch under the "Previous" heading in the leftmost section of the primary sequence box. 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, as numbered for the client chosen in the client parameter. This is used to generate a link to the next client patch under the "Next" heading in the rightmost section of the primary sequence box. 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.

otherclientcurrent

  • Usage: Optional
  • Description: The otherclientcurrent parameter takes a string denoting the number of the client patch described by the current article, as numbered for the client chosen in the otherclient parameter. This is used to generate the bold patch number in the center of the secondary sequence box. If this parameter is not used, the template will automatically parse the number out of the article's name. This parameter is meant to be used in situations where the current article describes a patch that applies to two clients, but its number is not synchronized across both.
  • Valid Value(s): Any string corresponding to a valid patch number.

otherclientprevious

  • Usage: Optional
  • Description: The otherclientprevious parameter takes a string denoting the number of the client patch that came before the current client patch, as numbered for the client chosen in the otherclient parameter. This is used to generate a link to the previous client patch under the "Previous" heading in the leftmost section of the secondary sequence box. This parameter is only usable if the otherclient parameter is filled in. If this parameter is not used the value defaults to that of the previous parameter. This parameter is meant to be used in situations where the previous patch applies to two clients, but its number is not synchronized across both.
  • Valid Value(s): Any string corresponding to a valid patch number.

otherclientnext

  • Usage: Optional
  • Description: The otherclientnext parameter takes a string denoting the number of the client patch that came after the current client patch, as numbered for the client chosen in the otherclient parameter. This is used to generate a link to the next client patch under the "Next" heading in the rightmost section of the secondary sequence box. This parameter is only usable if the otherclient parameter is filled in. If this parameter is not used the value defaults to that of the next parameter. This parameter is meant to be used in situations where the next patch applies to two clients, but its number is not synchronized across both.
  • Valid Value(s): Any string corresponding to a valid patch number.