Template:Racer: Difference between revisions

From Hacky Racers Wiki
imported>Cstubbs
Created page with "<noinclude> This is the "Racer" template. The easiest way to use this template is to visit the Racers page and use the form to create a village. It should be called in the following format: <pre> {{Racer |Description= |Contact= |WebAddress= |Activities= |Location= }} </pre> To not include the list of team members, add |HideList=true before the }} </noinclude><includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-col..."
No edit summary
 
(32 intermediate revisions by 2 users not shown)
Line 1: Line 1:
<noinclude>
<noinclude>
This is the "Racer" template. The easiest way to use this template is to visit the [[Racers]] page and use the form to create a village.
This is the "Racer" template. The easiest way to use this template is to visit the [[Racers]] page and use the form to create a Racer Profile.


It should be called in the following format:
It should be called in the following format:
<pre>
<pre>
{{Racer
{{Racer
|Description=
|ProfilePic=Cybr trk profile.jpg
|Contact=
|BuiltBy=Chris Stubbs and Dom Tag
|WebAddress=
|Theme=Tesla Cybertruck
|Activities=
|FirstRace=EMF 2022
|Location=
|CurrentStatus=Active
|Motor=4x Hoverboard 6.5″ Hub Motors
|ESC=2x Hoverboard PCB
|Battery=48V 12S3P Li-Ion (2x 6S)
|Transmission=Direct hub motor / 62:3 5mm chain reduction / xxx diff etc...
|Contact=@emfroamer (optional)
}}
}}
</pre>
</pre>
To not include the list of team members, add |HideList=true before the }}


</noinclude><includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
</noinclude>
! style="text-align: center; background-color:#5E93CE; color: white;" colspan="2" |<big>[[Name::Village:{{#explode:{{PAGENAME}}|:|1}}|{{#explode:{{PAGENAME}}|:|1}}]]</big>
 
 
<includeonly>{| style="float: right; margin: 0 0 10px 10px; width: 269px; border-radius: 8px; background-color: #F9F9F9;border: 1px solid #AAAAAA;font-size: 95%;padding: 5px;"
! style="text-align: center; background-color:#5E93CE; color: white;" colspan="2" |<big>{{PAGENAME}}</big>
|-
|-
! colspan="2" |
! colspan="2" |
{{GetRacerImage|Racer-{{#explode:{{PAGENAME}}|:|1}}}}
[[File:{{{ProfilePic|}}}|thumb]]
{{#ifeq:{{ImageExists|Racer-{{#explode:{{PAGENAME}}|:|1}}}}|1|[[Picture::{{filepath:{{GetImageFilename|Racer-{{#explode:{{PAGENAME}}|:|1}}}}}}|  ]]|}}
|-
! Built By
| {{{BuiltBy|}}}
|-
! Theme
| {{{Theme|}}}
|-
! First Race
| {{{FirstRace|}}}
|-
! Current Status
| {{{CurrentStatus|}}}
|-
|-
! Description
! Motor
| [[Description::{{{Description|}}}|]] {{{Description|}}}
| {{{Motor|}}}
|-
! ESC
| {{{ESC|}}}
|-
! Battery
| {{{Battery|}}}
|-
! Transmission
| {{{Transmission|}}}
|-
|-
! Contact
! Contact
| [[Contact::User:{{{Contact|}}}]]
| {{{Contact|}}}
{{#ifeq:|{{{WebAddress|}}}||
{{!}}-
! Web Site
{{!}} {{{WebAddress|}}} }}
|-
! Activities
| [[Activities::{{{Activities|}}}|]]{{{Activities|}}}
{{#ifeq:|{{{Location|}}}||
{{!}}-
{{#if:{{{Location|}}}|[[Location::{{{Location}}}|]][[MapFix::{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Racer-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Racer-{{#explode:{{PAGENAME}}|:|1}}}}|EMF-blue.png}}|]]|}}
! colspan="2"{{!}} {{#display_map:{{{Location}}}~{{#explode:{{PAGENAME}}|:|1}}~{{{Description}}}~{{#ifeq:{{ImageExists|Racer-{{#explode:{{PAGENAME}}|:|1}}}}|1|{{GetImageFilename|Racer-{{#explode:{{PAGENAME}}|:|1}}}}|EMF-blue.png}}|width=300|height=300|service=openlayers|zoom=18}} }}
|-
|-
!colspan="2"|[[Racers|View all Racers]]
!colspan="2"|[[:Category:Racers|View all Racer Profiles]]
|}{{#ifeq: {{{HideList|false}}}|true||{{inhabitants}}}}
|}
[[Category:Racers]]
[[Category:Racers]]
</includeonly>
</includeonly>

Latest revision as of 18:10, 7 January 2025

This is the "Racer" template. The easiest way to use this template is to visit the Racers page and use the form to create a Racer Profile.

It should be called in the following format:

{{Racer
|ProfilePic=Cybr trk profile.jpg
|BuiltBy=Chris Stubbs and Dom Tag
|Theme=Tesla Cybertruck
|FirstRace=EMF 2022
|CurrentStatus=Active
|Motor=4x Hoverboard 6.5″ Hub Motors
|ESC=2x Hoverboard PCB
|Battery=48V 12S3P Li-Ion (2x 6S)
|Transmission=Direct hub motor / 62:3 5mm chain reduction / xxx diff etc...
|Contact=@emfroamer (optional)
}}




<templatedata> { "params": { "Description": { "description": "A brief description of the Racer", "type": "string", "suggested": true }, "Contact": { "description": "User to contact about the Racer", "type": "wiki-user-name", "suggested": true }, "WebAddress": { "description": "A URL to more info about the Racer", "example": "https://example.com", "type": "url", "suggested": true }, "Activities": {}, "Location": {}, "HideList": {} }, "description": "Used to annotate Racers", "format": "block" } </templatedata>