Difference between revisions of "Template:Car link"

From LFS Manual
Jump to navigationJump to search
m
m
Line 1: Line 1:
<includeonly>{{abbr|[[{{car map|{{{1}}}}}|{{{1}}}]]|{{car map|{{{1}}}}}}}</includeonly><noinclude>
+
<includeonly>{{abbr|[[{{#switch: {{{1}}}
 +
|UF1=UF 1000
 +
|XFG=XF GTI
 +
|XRG=XR GT
 +
|LX4=LX4
 +
|LX6=LX6
 +
|RB4=RB4 GT
 +
|FXO=FXO Turbo
 +
|XRT=XR GT Turbo
 +
|RAC=RaceAbout
 +
|FZ5=FZ50
 +
|UFR=UF GTR
 +
|XFR=XF GTR
 +
|FXR=FXO GTR
 +
|XRR=XR GTR
 +
|FZR=FZ50 GTR
 +
|MRT=MRT5
 +
|FBM=Formula BMW FB02
 +
|FOX=Formula XR
 +
|FO8=Formula V8
 +
|BF1=BMW Sauber F1.06
 +
|unknown car}}|{{{1}}}]]|Hello}}
 +
</includeonly><noinclude>
 
{{documentation}}
 
{{documentation}}
 +
</noinclude>

Revision as of 19:20, 3 December 2023

Template Info-Icon.png

Template documentation

View - Edit

Converts a 3-character LFS car abbreviation to an internal link to its car page and uses the full car name as the link title.

Markup Renders as
{{car link|XFG}}

XFG

Markup Renders as
{{car link|XRT}}

XRT

Markup Renders as
{{car link|unknown}}
Markup Renders as
The best car is {{car link|XRR}} because it is so fun to drive.

The best car is XRR

because it is so fun to drive.