Difference between revisions of "Template:L"
Sparkletwist (talk | contribs) (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...") |
Sparkletwist (talk | contribs) m |
||
(One intermediate revision by the same user not shown) | |||
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! | ||
Specify a link within your own setting/project like this: <nowiki>{{L|Page to link to|Link title (optional)}}</nowiki>. | Specify a link within your own setting/project like this: <nowiki>{{L|Page to link to|Link title (optional)}}</nowiki>. | ||
− | |||
− | |||
<nowiki>Or to link to someone else's setting {{L|s=SettingName|Page to Link to|Link title (</nowiki>'''not optional''' in this case)<nowiki>}}</nowiki> | <nowiki>Or to link to someone else's setting {{L|s=SettingName|Page to Link to|Link title (</nowiki>'''not optional''' in this case)<nowiki>}}</nowiki> | ||
</noinclude> | </noinclude> |
Latest 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)}}.
Or to link to someone else's setting {{L|s=SettingName|Page to Link to|Link title (not optional in this case)}}