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
wanted to create this for quite some time now (it's a template for section links)
 
Adding arr+flag, test
Line 1: Line 1:
<includeonly>{{tt|[[{{{1}}}{{!}}[{{{1}}}]]]}}</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}}{{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>

Revision as of 18:16, 1 June 2008

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.

Example

{{sl|AIGenerals}}

gives [AIGenerals]{{#if:{{{2}}}|→Template:TTL.