Difference between revisions of "Template:L"

(Created page with "<noinclude>{{TemProtect}} This template has a short name because it's going to get used a lot. L is for linky! Specify a link within your own setting/project like this: <now...")
 
Line 1: Line 1:
<noinclude>{{TemProtect}}
+
<includeonly>{{#ifeq:{{{S|@@@}}}|@@@|{{#vardefine:slink|{{{1}}}}}{{#vardefine:sname|{{#var:SETTINGNAME}}}}{{#vardefine:final_title|{{{2|{{#var:slink}}}}}}}|{{#vardefine:slink|{{{1}}}}}{{#vardefine:sname|{{{S}}}}}{{#vardefine:final_title|{{{2|{{#var:slink}}}}}}}}}{{#vardefine:starget|{{#explode:{{#var:slink}}|#|1}}}}{{#vardefine:targpage|{{#explode:{{#var:slink}}|#|0}}}}{{#vardefine:final_link|{{#ifexist:{{#var:targpage}} ({{#var:sname}})|{{#var:targpage}} ({{#var:sname}}){{#if:{{#var:starget}}|%23{{#var:starget}}|}}|{{#var:targpage}}{{#if:{{#var:starget}}|%23{{#var:starget}}|}}}}}}[[{{#var:final_link}}|{{#if:{{{style|}}}|(ERROR)|{{#var:final_title}}}}]]</includeonly><noinclude>{{TemProtect}}
 
This template has a short name because it's going to get used a lot. L is for linky!  
 
This template has a short name because it's going to get used a lot. L is for linky!  
  

Revision as of 16:05, 21 November 2020

Template:TemProtect This template has a short name because it's going to get used a lot. L is for linky!

Specify a link within your own setting/project like this: {{L|Page to link to|Link title (optional)}}.

Specify a style with a style parameter, like {{L|Mypage|style=color:#FF0000}} for a red link.

Or to link to someone else's setting {{L|s=SettingName|Page to Link to|Link title (not optional in this case)}}