Difference between revisions of "Template:Link"

From Epic Paths
Jump to navigation Jump to search
 
Line 23: Line 23:
--><includeonly><!--
--><includeonly><!--
-->{{#vardefine:linktitle|{{#explode:{{#explode:{{#explode:{{{1}}}|/|-1}}|#|-1}}|:|-1}}}}<!--
-->{{#vardefine:linktitle|{{#explode:{{#explode:{{#explode:{{{1}}}|/|-1}}|#|-1}}|:|-1}}}}<!--
--><!--{{#vardefine:url|{{{1}}}}}
-->{{#vardefine:url|}}<!--


-->{{#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>}}|}}<!--

Latest revision as of 15:52, 14 August 2021


Parameters:

1(required): The link in question

2(optional): "lc" to transform title to lowercase, "uc" to transform to uppercase, "ul" to transform the url to uppercase but keep title case

Example: {{Link|Equipment/Dagger}} = Dagger

Example: {{Link|Equipment#Weapons}} = Weapons

Example: {{Link|:Category:Abilities}} = Abilities

Example: {{Link|Equipment/Weapons#Ranged}} = Ranged

Example: {{Link|Equipment/Studded Leather Armor|lc}} = studded leather armor

Example: {{Link|Equipment/studded leather armor|ul}} = studded leather armor

Example: {{Link|studded leather armor|uc}} = studded leather armor