Template:Link: Difference between revisions
Damage3245 (talk | contribs) No edit summary |
Damage3245 (talk | contribs) No edit summary |
||
| (One intermediate revision by the same user not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{#switch:{{{1|}}} | <includeonly>{{#switch:{{{1|}}} | ||
|Alec={{Name|{{{2|}}}|Alec|Jean-Paul "Alec" Vasil}} | |||
|Armsmaster={{Name|{{{2|}}}|Armsmaster|Colin Wallis}} | |||
|Bitch={{Name|{{{2|}}}|Bitch|Rachel Lindt}} | |||
|Defiant={{Name|{{{2|}}}|Defiant|Colin Wallis}} | |||
|Glory Girl={{Name|{{{2|}}}|Glory Girl|Victoria Dallon}} | |Glory Girl={{Name|{{{2|}}}|Glory Girl|Victoria Dallon}} | ||
|Grue={{Name|{{{2|}}}|Grue|Brian Laborn}} | |||
|Panacea={{Name|{{{2|}}}|Panacea|Amy Dallon}} | |Panacea={{Name|{{{2|}}}|Panacea|Amy Dallon}} | ||
|Regent={{Name|{{{2|}}}|Regent|Jean-Paul "Alec" Vasil}} | |||
|Skitter={{Name|{{{2|}}}|Skitter|Taylor Hebert}} | |Skitter={{Name|{{{2|}}}|Skitter|Taylor Hebert}} | ||
|Tattletale={{Name|{{{2|}}}|Tattletale|Lisa Wilbourn}} | |||
|{{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|}}}}} | ||
}}</includeonly><noinclude>__NOTOC__ | }}</includeonly><noinclude>__NOTOC__ | ||
| Line 18: | Line 25: | ||
|+First priority table | |+First priority table | ||
!Input !!Text !!Links to | !Input !!Text !!Links to | ||
|- | |||
|Alec||Alec||Jean-Paul "Alec" Vasil | |||
|- | |||
|Armsmaster||Armsmaster||Colin Wallis | |||
|- | |||
|Bitch||Bitch||Rachel Lindt | |||
|- | |||
|Defiant||Defiant||Colin Wallis | |||
|- | |- | ||
|Glory Girl||Glory Girl||Victoria Dallon | |Glory Girl||Glory Girl||Victoria Dallon | ||
|- | |||
|Grue||Grue||Brian Laborn | |||
|- | |- | ||
|Panacea||Panacea||Amy Dallon | |Panacea||Panacea||Amy Dallon | ||
|- | |||
|Regent||Regent||Jean-Paul "Alec" Vasil | |||
|- | |- | ||
|Skitter||Skitter||Taylor Hebert | |Skitter||Skitter||Taylor Hebert | ||
|- | |||
|Tattletale||Tattletale||Lisa Wilbourn | |||
|} | |} | ||
:''<small>*Some pages' text is a term used by more than one article and uses the whole link instead of the desired text</small>'' | :''<small>*Some pages' text is a term used by more than one article and uses the whole link instead of the desired text</small>'' | ||
Latest revision as of 21:13, June 26, 2020
Usage[edit]
{{Link|<input>}}
Examples[edit]
- {{Link|Skitter}} → [[Taylor Hebert|Skitter]] → {{#switch:Skitter
|Alec={{#if:Jean-Paul "Alec" Vasil|{{#if:Alec|Alec|Jean-Paul "Alec" Vasil}}|Alec}} |Armsmaster={{#if:Colin Wallis|{{#if:Armsmaster|Armsmaster|Colin Wallis}}|Armsmaster}} |Bitch={{#if:Rachel Lindt|{{#if:Bitch|Bitch|Rachel Lindt}}|Bitch}} |Defiant={{#if:Colin Wallis|{{#if:Defiant|Defiant|Colin Wallis}}|Defiant}} |Glory Girl={{#if:Victoria Dallon|{{#if:Glory Girl|Glory Girl|Victoria Dallon}}|Glory Girl}} |Grue={{#if:Brian Laborn|{{#if:Grue|Grue|Brian Laborn}}|Grue}} |Panacea={{#if:Amy Dallon|{{#if:Panacea|Panacea|Amy Dallon}}|Panacea}} |Regent={{#if:Jean-Paul "Alec" Vasil|{{#if:Regent|Regent|Jean-Paul "Alec" Vasil}}|Regent}} |Skitter={{#if:Taylor Hebert|{{#if:Skitter|Skitter|Taylor Hebert}}|Skitter}} |Tattletale={{#if:Lisa Wilbourn|{{#if:Tattletale|Tattletale|Lisa Wilbourn}}|Tattletale}} |{{#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[edit]
This template takes an input, and creates a link based on the two tables below.
Links[edit]
| Input | Text | Links to |
|---|---|---|
| Alec | Alec | Jean-Paul "Alec" Vasil |
| Armsmaster | Armsmaster | Colin Wallis |
| Bitch | Bitch | Rachel Lindt |
| Defiant | Defiant | Colin Wallis |
| Glory Girl | Glory Girl | Victoria Dallon |
| Grue | Grue | Brian Laborn |
| Panacea | Panacea | Amy Dallon |
| Regent | Regent | Jean-Paul "Alec" Vasil |
| Skitter | Skitter | Taylor Hebert |
| Tattletale | Tattletale | Lisa Wilbourn |
- *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 ()> |