Template:Link: Difference between revisions
Appearance
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..." |
Damage3245 (talk | contribs) No edit summary |
||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}} | <includeonly>{{#switch:{{{1|}}} | ||
|Glory Girl={{Name|{{{2|}}}|Glory Girl|Victoria Dallon}} | |||
|Panacea={{Name|{{{2|}}}|Panacea|Amy Dallon}} | |||
|Skitter={{Name|{{{2|}}}|Skitter|Taylor Hebert}} | |Skitter={{Name|{{{2|}}}|Skitter|Taylor Hebert}} | ||
|{{Name|{{{2|}}}|{{#sub:{{{1|}}}|0|{{#expr:{{#rpos:{{{1|}}}|(}}{{#ifeq:{{#rpos:{{{1|}}}|(}}|-1|+|-}}1}}}}|{{{1|}}}}} | |{{Name|{{{2|}}}|{{#sub:{{{1|}}}|0|{{#expr:{{#rpos:{{{1|}}}|(}}{{#ifeq:{{#rpos:{{{1|}}}|(}}|-1|+|-}}1}}}}|{{{1|}}}}} | ||
| Line 16: | Line 18: | ||
|+First priority table | |+First priority table | ||
!Input !!Text !!Links to | !Input !!Text !!Links to | ||
|- | |||
|Glory Girl||Glory Girl||Victoria Dallon | |||
|- | |||
|Panacea||Panacea||Amy Dallon | |||
|- | |- | ||
|Skitter||Skitter||Taylor Hebert | |Skitter||Skitter||Taylor Hebert | ||
Revision as of 13:14, June 20, 2020
Usage
{{Link|<input>}}
Examples
- {{Link|Skitter}} → [[Taylor Hebert|Skitter]] → {{#switch:Skitter
|Glory Girl={{#if:Victoria Dallon|{{#if:Glory Girl|Glory Girl|Victoria Dallon}}|Glory Girl}} |Panacea={{#if:Amy Dallon|{{#if:Panacea|Panacea|Amy Dallon}}|Panacea}} |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
| Input | Text | Links to |
|---|---|---|
| Glory Girl | Glory Girl | Victoria Dallon |
| Panacea | Panacea | Amy Dallon |
| 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
| Input | Text | Links to |
|---|---|---|
| <link without ()> | <link without ()> | <link without ()> |
| <link with ()> | <link without ()> | <link with ()> |