Template:Sl: Difference between revisions
Appearance
en>DCoder m Last one, I hope. |
m 9 revisions imported |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly>{{tt|[[{{{1}}}{{!}}[{{{1}}}]]]}} | <includeonly>{{tt|[[{{{1}}}{{!}}[{{{1}}}]]]}}{{#if:{{{2|}}}|{{arr|r}}{{f|{{{2}}}|{{{3|}}}|link}}|}}</includeonly><noinclude>:''If you do not intent to use the arrow/flag-linking part of this template, please consider using [[Template:S]] instead.'' | ||
{{#if:{{{2|}}}|{{arr|r}}{{ | ==Usage== | ||
<pre>{{Sl|pagename}}</pre> | |||
Copy-paste the code above and use it to quickly create links to section-pages; '''replace "pagename" with the name of the page you want to link to''', the link will be enclosed in brackets and teletyped. | |||
You can also add further parameters to expose/link a flag from that section, optionally with a value: | |||
<pre>{{Sl|pagename|flagname}} | |||
{{Sl|pagename|flagname|flagvalue}}</pre> | |||
==Example== | |||
<pre>{{sl|VehicleTypes}}</pre> gives {{sl|VehicleTypes}}. | |||
<pre>{{sl|VehicleTypes|SpeedType}}</pre> gives {{sl|VehicleTypes|SpeedType}}. | |||
<pre>{{sl|VehicleTypes|SpeedType|Wheel}}</pre> gives {{sl|VehicleTypes|SpeedType|Wheel}}.</noinclude> | |||
Latest revision as of 22:22, 31 March 2025
- If you do not intent to use the arrow/flag-linking part of this template, please consider using Template:S instead.
Usage
{{Sl|pagename}}
Copy-paste the code above and use it to quickly create links to section-pages; replace "pagename" with the name of the page you want to link to, the link will be enclosed in brackets and teletyped. You can also add further parameters to expose/link a flag from that section, optionally with a value:
{{Sl|pagename|flagname}}
{{Sl|pagename|flagname|flagvalue}}
Example
{{sl|VehicleTypes}}gives [VehicleTypes].
{{sl|VehicleTypes|SpeedType}}gives [VehicleTypes]→SpeedType=.
{{sl|VehicleTypes|SpeedType|Wheel}}gives [VehicleTypes]→SpeedType=Wheel.