Difference between revisions of "Template:Sequence"

m
m
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
{{Navbox
+
<noinclude>{{Template Overview
|title={{{title|Classic Client Patches}}}
+
|usedon=all applicable
 +
|purpose=clearly indicate that the page's subject is part of a chronological sequence
 +
|template=<nowiki>{{Sequence
 +
|title=
 +
|current=
 +
|date=
 +
|previous=
 +
|next=
 +
}}</nowiki>
 +
|display={{Navbox
 +
|title={{{title}}}
 
|list1={{{!}} style="border-collapse:collapse; font-size:12px; margin:auto; text-align:center; width:100%;"
 
|list1={{{!}} style="border-collapse:collapse; font-size:12px; margin:auto; text-align:center; width:100%;"
{{#if: {{{previous|[[Client Patch 7.0.4.2|7.0.4.2]]}}}
+
{{!}} style="width:33%;" {{!}} Previous{{Line Break}}'''[[{{{previous}}}]]'''
| {{!}} style="width:33%;" {{!}} Previous{{Line Break}}'''{{{previous|[[Client Patch 7.0.4.2|7.0.4.2]]}}}'''
+
{{!}} style="font-size:25px; width:25px;" {{!}} '''>'''
{{!}} style="font-size:25px; width:auto;" {{!}} '''>'''
+
{{!}} style="width:33%;" {{!}} '''{{{current}}}'''{{Line Break}}{{{date}}}
 +
{{!}} style="font-size:25px; width:25px;" {{!}} '''>'''
 +
{{!}} style="width:33%;" {{!}} Next{{Line Break}}'''[[{{{next}}}]]'''
 +
{{!}}}
 
}}
 
}}
{{!}} style="width:33%;" {{!}} '''{{{current|7.0.4.3}}}'''{{Line Break}}{{{date|January 12, 2010}}}
+
|category=Information
{{#if: {{{next|[[Client Patch 7.0.4.4|7.0.4.4]]}}}
+
| {{!}} style="font-size:25px; width:auto;" {{!}} '''>'''
+
{{!}} style="width:33%;" {{!}} Next{{Line Break}}'''{{{next|[[Client Patch 7.0.4.4|7.0.4.4]]}}}'''
+
 
}}
 
}}
{{!}}}
+
{{Template Parameter
 +
|name=title
 +
|usage=mandatory
 +
|takes=any string or strings
 +
|denotes=the category of pages under which the sequence falls
 +
|generates=the header of the sequence box
 +
|validvalues=Any string or strings.
 
}}
 
}}
 +
{{Template Parameter
 +
|name=current
 +
|usage=mandatory
 +
|takes=any string or strings
 +
|denotes=the current article's subject
 +
|generates=the bolded text on the upper line in the center of the sequence box, or to the left or right of the sequence box, depending on the length of the overall sequence
 +
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=date
 +
|usage=mandatory
 +
|takes=a string
 +
|denotes=the date of the current article's subject
 +
|generates=the date beneath the current article's subject in the sequence box
 +
|validvalues=Any string representing a date.
 +
}}
 +
{{Template Parameter
 +
|name=previous
 +
|takes=a string
 +
|denotes=the article that comes before the current article in the sequence
 +
|generates=the link under the "Previous" heading in the leftmost section of the sequence box that links to the previous article in the sequence
 +
|othernotes=If there is no "Next" article in the sequence, this parameter becomes mandatory, as otherwise you would be left with a one-article sequence.
 +
|validvalues=Any string or strings.
 +
}}
 +
{{Template Parameter
 +
|name=next
 +
|takes=a string
 +
|denotes=the article that comes after the current article in the sequence
 +
|generates=the link under the "Next" heading in the rightmost section of the sequence box that links to the next article in the sequence
 +
|othernotes=If there is no "Previous" article in the sequence, this parameter becomes mandatory, as otherwise you would be left with a one-article sequence.
 +
|validvalues=Any string or strings.
 +
}}</noinclude><includeonly>{{Navbox
 +
|title={{{title}}}
 +
|list1={{{!}} style="border-collapse:collapse; font-size:12px; margin:auto; text-align:center; width:100%;"
 +
{{#if: {{{next|}}}
 +
| {{#if: {{{previous|}}}
 +
  | {{!}} style="width:33%;" {{!}} Previous{{Line Break}}'''[[{{{previous}}}]]'''
 +
    {{!}} style="font-size:25px; min-width:25px;" {{!}} '''>'''
 +
  | {{!}} style="width:33%;" {{!}}
 +
    {{!}} style="min-width:25px;" {{!}}
 +
  }}
 +
| {{#if: {{{previous|}}}
 +
  | {{!}} style="width:33%;" {{!}} Previous{{Line Break}}'''[[{{{previous}}}]]'''
 +
    {{!}} style="font-size:25px; min-width:25px;" {{!}} '''>'''
 +
  | {{!}} style="width:33%;" {{!}} '''Must Enter Value{{Line Break}}In Previous or Next'''
 +
  }}
 +
}}
 +
{{!}} style="width:33%;" {{!}} '''{{{current}}}'''{{Line Break}}{{{date}}}
 +
{{#if: {{{previous|}}}
 +
| {{#if: {{{next|}}}
 +
  | {{!}} style="font-size:25px; min-width:25px;" {{!}} '''>'''
 +
    {{!}} style="width:33%;" {{!}} Next{{Line Break}}'''[[{{{next}}}]]'''
 +
  | {{!}} style="min-width:25px;" {{!}}
 +
    {{!}} style="width:33%;" {{!}}
 +
  }}
 +
| {{#if: {{{next|}}}
 +
  | {{!}} style="font-size:25px; min-width:25px;" {{!}} '''>'''
 +
    {{!}} style="width:33%;" {{!}} Next{{Line Break}}'''[[{{{next}}}]]'''
 +
  | {{!}} style="width:33%;" {{!}} '''Must Enter Value{{Line Break}}In Previous or Next'''
 +
  }}
 +
}}
 +
{{!}}}
 +
}}</includeonly>

Latest revision as of 20:19, 8 January 2012

Template:Sequence is designed for use on all applicable pages to clearly indicate that the page's subject is part of a chronological sequence.

Template

{{Sequence
|title=
|current=
|date=
|previous=
|next=
}}

Display

Parameters

title

  • Usage: Mandatory
  • Description: The title parameter takes any string or strings denoting the category of pages under which the sequence falls. This is used to generate the header of the sequence box.
  • Valid Value(s): Any string or strings.

current

  • Usage: Mandatory
  • Description: The current parameter takes any string or strings denoting the current article's subject. This is used to generate the bolded text on the upper line in the center of the sequence box, or to the left or right of the sequence box, depending on the length of the overall sequence.
  • Valid Value(s): Any string or strings.

date

  • Usage: Mandatory
  • Description: The date parameter takes a string denoting the date of the current article's subject. This is used to generate the date beneath the current article's subject in the sequence box.
  • Valid Value(s): Any string representing a date.

previous

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

next

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