Jump to content

Template:Link: Difference between revisions

From Worm Wiki
Damage3245 (talk | contribs)
Created page with "<includeonly>{{#switch:{{{1|}}} |Skitter={{Name|{{{2|}}}|Skitter|Taylor Hebert}} |{{Name|{{{2|}}}|{{#sub:{{{1|}}}|0|{{#expr:{{#rpos:{{{1|}}}|(}}{{#ifeq:{{#rpos:{{{1|}}}|(}}|-1..."
(No difference)

Revision as of 10:11, June 15, 2020

Usage

{{Link|<input>}}

Examples

  • {{Link|Skitter}} → [[Taylor Hebert|Skitter]] → {{#switch:Skitter

|Skitter={{#if:Taylor Hebert|{{#if:Skitter|Skitter|Taylor Hebert}}|Skitter}} |{{#if:Skitter|{{#if:{{#sub:Skitter|0|{{#expr:{{#rpos:Skitter|(}}{{#ifeq:{{#rpos:Skitter|(}}|-1|+|-}}1}}}}|{{#sub:Skitter|0|{{#expr:{{#rpos:Skitter|(}}{{#ifeq:{{#rpos:Skitter|(}}|-1|+|-}}1}}}}|Skitter}}|{{#sub:Skitter|0|{{#expr:{{#rpos:Skitter|(}}{{#ifeq:{{#rpos:Skitter|(}}|-1|+|-}}1}}}}}} }}

Explanation

This template takes an input, and creates a link based on the two tables below.

Links

First priority table
Input Text Links to
Skitter Skitter Taylor Hebert
*Some pages' text is a term used by more than one article and uses the whole link instead of the desired text
Second priority table
Input Text Links to
<link without ()> <link without ()> <link without ()>
<link with ()> <link without ()> <link with ()>