Advertisement

L

|- |{{{{{2}}}}}||{{{{{3}}}|{{{1}}}}}||{{{7}}}{{{6}}}{{{5}}} {{{5}}}, {{{7}}}||{{{8}}}||{{{3}}}

Preview

Direction Series Date Description Type


{{{{{2}}}}} {{{1}}}}} {{{7}}}{{{6}}}{{{5}}} {{{5}}}, {{{7}}} {{{8}}} {{{3}}}

Usage

This template is used to write a row in the table of links. To properly work it must be preceded by the "table" template, that creates the table headers, then the pieces of information about the link must be given like this:

{{l|Linked series name|Direction|Type|Special subtype|Day|Month|Year|Description}}

Where:

  • Linked series name is the name of the series that linked to the page's series.
  • Direction is the direction of the link; type in if it goes from the listed series to the page's, out from the page's to the listed, inout if it happened in both directions, - (or --) if its undirectional, sin if the page's is a spinoff of the listed series and sout if the listed series is a spinoff of the page's series.
  • Type is the type of link; may be 1,2, 3, 1.5 or 2.5.
  • Special subtype is used for special kind of link types, specifically:
    • If it's an arguable link, this field should be "a".
    • If it's an unreleased link (meaning that it only happened in an early unreleased version of the work, or it's content hidden in it and regularly unaccessible) this field should be "no".
    • If it's both arguable and unreleased, this field can either be "ano" or "noa".
    • If it's a regularly released, not-arguable link, then the field should be left blank.
  • Day, Month and Year indicate when the link took place. The day can be left blank and so can the month if the day is also blank. The year field can alternatively be used to include text when the information about the date is incomplete, such as "unknown" or "TBA".
  • Description is a description for the link.

Note: for undirectional links a single dash (-) is used by default, but two dashes (--) can be used instead with the same result. This option was added to avoid writing |-| in a multi-tab links table, since that is used to end the tab.

For example, to have

Direction Series Date Description Type


5 Arrow R.png Example series 19880310 March 10, 1988 An element from Random physically appeared in an unreleased Example episode 51

You must type:

{{table}}
{{l|Example series|out|1|no|10|03|1988|An element from Random physically appeared in an unreleased Example episode}}
|}

Code description

|- |{{{{{2}}}}} || {{ {{{3}}}| {{#ifexist: {{{1}}} | {{#switch: {{{4}}} | no|noa|ano = <s>[[{{{1}}}]]</s> | [[{{{1}}}]] }} | {{#switch: {{{4}}} | no|noa|ano = <s>{{{1}}}</s> | {{{1}}} }} }} }} || {{date| {{{5}}} | {{{6}}} | {{{7}}} }} || {{{8}}} {{#ifexist: {{PAGENAME}} X {{{1}}} | <br><div align="right">([[{{PAGENAME}} X {{{1}}}|see details]])</div> | }} || {{#switch: {{{4}}} | no = {{no| {{{3}}} }} | a = {{a| {{{3}}} }} | noa|ano = {{no| {{a| {{{3}}} }} }} | {{{3}}} }}

It automatically creates a new row with

|-

For the first column it takes the second field, the direction, and makes it into a template

{{ {{{2}}} }}

So, if field 2 is "out", it will become the template

{{out}}

resulting in the direction arrow:

5 Arrow R.png


For the second column, the linked series, it takes field 3, the type, and makes it into a template, to have the correct format for the name. The series's name is taken from field 1, but first the template checks if such name corresponds to an existing page, using the #ifexist function, in which case the name will be made into a link (using [[ ]]), and in either case it will also checks if field 4 is "no" (or "noa" or "ano") using the #switch function, in which case the name will appear barred (using <s> </s>)

{{ {{{3}}}| {{#ifexist: {{{1}}} | {{#switch: {{{4}}} | no|noa|ano = <s>[[{{{1}}}]]</s> | [[{{{1}}}]] }} | {{#switch: {{{4}}} | no|noa|ano = <s>{{{1}}}</s> | {{{1}}} }} }} }}

So, if field 1 is "Example series", field 3 is "1", and field 4 is "no", it will become

{{1| {{#ifexist: Example series | {{#switch: no | no|noa|ano = <s>[[Example series]]</s> | [[Example series]] }} | {{#switch: no | no|noa|ano = <s>[[Example series]]</s> | [[Example series]] }} }}

Seeing that a page called "Example series" doesn't exist, it will take the non-linked option.

{{1| {{#switch: no | no|noa|ano = <s>[[Example series]]</s> | [[Example series]] }} }}

Seeing that field 4 is "no", it will take the barred name:

{{1| <s>Example series</s> }}

resulting in

Example series

For the third column, the date, it simply takes fields 5, 6 and 7, applying the "date" template to them

{{date| {{{5}}} | {{{6}}} | {{{7}}} }}

So, if these fields are "10", "03" and "1988", it will apply the date template to them

{{date|10|03|1988}}

Resulting in the written date with hidden number for sorting.

19880310 March 10, 1988

For the fourth column, it writes the description from field 8, then it uses the #ifexist function to check if there's a page corresponding to the detailed link page. The name to such page is written by taking the current page name (using {{PAGENAME}}), followed by " X ", and then the linked series' name, taking it from field 1. If such a page exists, then the template will create a link to it shown like a "(see details)" writing.

{{{8}}} {{#ifexist: {{PAGENAME}} X {{{1}}} | <br><div align="right">([[{{PAGENAME}} X {{{1}}}|see details]])</div> | }}

So, if the series' page name is "Random series", field 1 is "Example series" and field 8 is "An element from Random physically appeared in an unreleased Example episode", it will become

An element from Random physically appeared in an unreleased Example episode {{#ifexist: Random series X Example series | <br><div align="right">([[Random series X Example series|see details]])</div> | }}

Seeing that a page called "Random series X Example series" doesn't exist, it won't write anything after the description.

If such a page existed it would have taken the linked option:

An element from Random physically appeared in an unreleased Example episode <br><div align="right">([[Random series X Example series|see details]])</div>

Resulting in:

An element from Random physically appeared in an unreleased Example episode
(see details)

For the fifth and final column, it once again checks the content of field 4, and if it includes "no" then it takes the type number from field 3, applying the "no" template to it to show it barred and make it sortable as "5", while if it includes "a" it takes the number from field 3, applying the "a" template to it to show an "a" after the number and make it sortable as "1.25"; if it includes both (meaning it's either "ano" or "noa") then it applies both templates to it; if field 4 is blank (or it includes any other content), it simply takes the number from field 3.

{{#switch: {{{4}}} | no = {{no| {{{3}}} }} | a = {{a| {{{3}}} }} | noa|ano = {{no| {{a| {{{3}}} }} }} | {{{3}}} }}

So, if field 3 is "1", and field 4 is "no", it will become

{{#switch: no | no = {{no|1}} | a = {{a|1}} | noa|ano = {{no| {{a| 1 }} }} | 1 }}

Seeing that 4 is "no", it will apply the "no" template:

{{no|1}}

Resulting in the barred number, with a hidden "5" before it.

51


Community content is available under CC-BY-SA unless otherwise noted.