ModEnc is currently in Maintenance Mode: Changes could occur at any given moment, without advance warning.

Template:Sl: Difference between revisions

From ModEnc
Jump to navigation Jump to search
m Not quite, stupid newlines.
Updated documention to actually mention the arrow/flag-linking part, added pointer to Template:S
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
<includeonly>{{tt|[[{{{1}}}{{!}}[{{{1}}}]]]}}{{#if:{{{2|}}}|{{arr|r}}{{TTL|{{{2}}}|{{{3|}}}}}|}}</includeonly><noinclude>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.<h2>Example</h2><pre>{{sl|AIGenerals}}</pre> gives {{sl|AIGenerals}}.</noinclude>
<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>

Latest revision as of 21: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.