Template:Sl: Difference between revisions
Appearance
en>Renegade Updated templates |
en>Renegade Updated documention to actually mention the arrow/flag-linking part, added pointer to Template:S |
||
| Line 1: | Line 1: | ||
<includeonly>{{tt|[[{{{1}}}{{!}}[{{{1}}}]]]}}{{#if:{{{2|}}}|{{arr|r}}{{f|{{{2}}}|{{{3|}}}|link}}|}}</includeonly><noinclude>Usage | <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.'' | ||
==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> | |||
Revision as of 23:28, 28 November 2009
- 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.