Difference between revisions of "Template:Link"
Jump to navigation
Jump to search
(Created page with "<noinclude> '''Parameters:''' 1(required): The link in question 2(optional): "lc" to transform title to lowercase, "uc" to transform to uppercase Example: <nowiki>{{Link|E...") |
Tag: Reverted |
||
Line 20: | Line 20: | ||
--><includeonly><!-- | --><includeonly><!-- | ||
-->{{#vardefine:linktitle|{{#explode:{{#explode:{{#explode:{{{1}}}|/|-1}}|#|-1}}|:|-1}}}}<!-- | -->{{#vardefine:linktitle|dd{{#explode:{{#explode:{{#explode:{{{1}}}|/|-1}}|#|-1}}|:|-1}}}}<!-- | ||
-->{{#ifeq:{{{2|}}}|uc|{{#vardefine:linktitle|<span style="text-transform: capitalize">{{#var:linktitle}}</span>}}|}}<!-- | -->{{#ifeq:{{{2|}}}|uc|{{#vardefine:linktitle|<span style="text-transform: capitalize">{{#var:linktitle}}</span>}}|}}<!-- | ||
-->{{#ifeq:{{{2|}}}|lc|{{#vardefine:linktitle|{{lc:{{#var:linktitle}}}}}}|}}<!-- | -->{{#ifeq:{{{2|}}}|lc|{{#vardefine:linktitle|{{lc:{{#var:linktitle}}}}}}|}}<!-- | ||
-->[[{{{1}}}|{{#var:linktitle}}]]<!-- | -->[[{{{1}}}|{{#var:linktitle}}]]<!-- | ||
--></includeonly> | --></includeonly> |
Revision as of 15:19, 6 August 2021
Parameters:
1(required): The link in question
2(optional): "lc" to transform title to lowercase, "uc" to transform to uppercase
Example: {{Link|Equipment/Heavy Crossbow}} = ddHeavy Crossbow
Example: {{Link|Equipment#Weapons}} = ddWeapons
Example: {{Link|:Category:Combat}} = ddCombat
Example: {{Link|Equipment/WeaponList#Ranged}} = ddRanged
Example: {{Link|Equipment/Heavy Crossbow|lc}} = ddheavy crossbow
Example: {{Link|mana barrier|uc}} = ddmana barrier