Toggle menu
213
934
195
6.4K
Dovedale Railway Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Crossing/doc: Difference between revisions

Template page
ABadDriverLOL (talk | contribs)
m fix infinite template recursion & spelling
ABadDriverLOL (talk | contribs)
replace hardcoded parameter docs with Template:PropertyDocumentationRow
Line 6: Line 6:
<syntaxhighlight lang="wikitext">
<syntaxhighlight lang="wikitext">
{{Crossing
{{Crossing
| image=
|image=
Day=Satus Level Crossing.png;
Day=Satus Level Crossing.png;
Night=Satus Level Crossing Night.png
Night=Satus Level Crossing Night.png
| signal_box=[[Satus Signal Box]]
|signal_box=[[Satus Signal Box]]
| tracks=2
|tracks=2
| road_lanes=1
|road_lanes=1
| gate_operation=Manual
|gate_operation=Manual
| crossing_code=SC
|abbreviation=SC
| closest_station=[[Satus Services]]
|closest_station=[[Satus Services]]
| xp=1250XP
|xp=1250 XP
}}
}}
</syntaxhighlight>
</syntaxhighlight>
Line 24: Line 24:
!Type
!Type
!status
!status
|-
|<code>image</code>
| Thumbnail Image path (without the File: prefix)
<h3>'''Example'''</h3><pre>
    |image=DC Box.png
</pre>
Or: Gallery specified via the following format:
<h3>'''Example'''</h3><pre>
    |image=Day=DC Box.png;Night=DC Box Night.png
</pre>
|String
|'''required'''
|-
|-
|<code>title</code>
| Name of the Crossing. The Page Name is the default value.<h3>'''Example'''</h3><pre>
    |title=Satus Level Crossing
</pre>
|String
|optional
|-
|-
|<code>signal_box</code>
| The closest signal box to the crossing. Must be a Hyperlink pointing to a signal box.<h3>'''Example'''</h3><pre>
    |signal_box=[[Satus Signal Box]]
</pre>
|String
|optional
|-
|-
|<code>tracks</code>
| The amount of tracks located on the crossing.
<h3>'''Example'''</h3><pre>
    |tracks=1
</pre>
|String
|optional
|-
|-
|<code>road_lanes</code>
| The amount of road lanes that are crossing the tracks.
<h3>'''Example'''</h3><pre>
    |road_lanes=1
</pre>
|String
|optional
|-
|-
|<code>gate_operation</code>
| The way the crossing is operated.
<h3>'''Example'''</h3><pre>
    |gate_operation=Manual
</pre>
|String
|optional
|-
|-
|<code>crossing_code</code>
| The code of the crossing.
<h3>'''Example'''</h3><pre>
    |crossing_code=SC
</pre>
|String
|optional
|-
|-
|<code>closest_station</code>
| The closest station to the crossing. Must be a Hyperlink pointing to a Station.<h3>'''Example'''</h3><pre>
    |closest_station=[[Satus Services]]
</pre>
|String
|optional
|-
|-
|<code>xp</code>
| The XP required to control the crossing.
<h3>'''Example'''</h3><pre>
    |xp=1250XP
</pre>
|String
|optional
|-
|-
|<code>status</code>
| This defines the bottom status bar. Must be one of the following values:<pre>
removed: "Removed"
unknown: "Unknown"
in_development: "In-development"
under_testing: "Undergoing testing"
not_in_service: "Not in Service
out_of_service: "Out of Service"
steam_only: "Steam services only"
diesel_only: "Diesel services only"
available: "Available"
in_operation: "In Operation"
in_service: "In Service"
public: "Public"
admin_only: "Admin Only"
closed: "Closed"
</pre><h3>'''Example'''</h3><pre>
    |status=in_operation
</pre>
|String
|optional
|-
|-
|<code>status_description</code>
| Information about the status. Example: The version in which the crossing was added to or removed from the game.<h3>'''Example'''</h3><pre>
    |status_description=Since [[Update Logs#Version 1|Version 1]]
</pre>
|String
|optional
|-
|-
{{PropertyDocumentationRow|Image}}
{{PropertyDocumentationRow|Title|required=optional}}
{{PropertyDocumentationRow|Signal Box|required=optional}}
{{PropertyDocumentationRow|Tracks|required=optional}}
{{PropertyDocumentationRow|Road Lanes|required=optional}}
{{PropertyDocumentationRow|Gate Operation|required=optional}}
{{PropertyDocumentationRow|Abbreviation|required=optional}}
{{PropertyDocumentationRow|Closest Station|required=optional}}
{{PropertyDocumentationRow|XP|required=optional}}
{{PropertyDocumentationRow|Status}}
{{PropertyDocumentationRow|Status Description|required=optional}}
|}
|}

Revision as of 16:04, 28 September 2024

Information

This uses the InfoboxNeue module. for more infomation, visit Star Citizen.

This defines the Crossing Infobox used by pages.

Example Implementation

{{Crossing
|image=
Day=Satus Level Crossing.png;
Night=Satus Level Crossing Night.png
|signal_box=[[Satus Signal Box]]
|tracks=2
|road_lanes=1
|gate_operation=Manual
|abbreviation=SC
|closest_station=[[Satus Services]]
|xp=1250 XP
}}

Documentation

Template:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRowTemplate:PropertyDocumentationRow
Parameter Description Type status
🍪 Yum Yum Yum! Cookies help us better deliver our services. By using our site, you agree to our use of cookies.