ਸਮੱਗਰੀ 'ਤੇ ਜਾਓ

ਫਰਮਾ:Rail template doc/doc

ਵਿਕੀਪੀਡੀਆ, ਇੱਕ ਆਜ਼ਾਦ ਵਿਸ਼ਵਕੋਸ਼ ਤੋਂ

This template creates a wikitable row for documenting line and type parameters for an Adjacent stations data module. It is similar to {{Color template doc}}.

Note: if the system icon is Non-free content and can only be used on articles with fair use, add |hideicon=true to suppress showing the icon in the template documentation.

Standard example with no aliases:

{{Rail template doc}}
{{Rail template doc|Washington Metro|Red}}
{{Rail template doc|Washington Metro|Blue}}
{{Rail template doc|Washington Metro|Orange}}
{{Rail template doc|Washington Metro|Yellow}}
{{Rail template doc|Washington Metro|Green}}
{{Rail template doc|Washington Metro|Silver}}
{{Rail template doc||end}}

Gives:

<td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist।; border-top:solid 1px gray;">  
LineKeysColorHex colorIcon
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Red ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Blue ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Orange ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Yellow ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Green ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro lines" does not exist। Silver ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Washington Metro color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Washington Metro' not found.

Example with an alias:

{{Rail template doc}}
{{Rail template doc|Amtrak|Amtrak Cascades|Cascades}}
{{Rail template doc||end}}
<td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Amtrak color" does not exist।; border-top:solid 1px gray;">  
LineKeysColorHex colorIcon
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Amtrak lines" does not exist। Amtrak Cascades
or Cascades
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "Amtrak color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/Amtrak' not found.

Up to 16 aliases can be shown for each row. If there are more than three aliases, some of them are initially hidden in a collapsible container.

Example with types defined:

{{Rail template doc||type}}
{{Rail template doc|MBTA|Green|type=A}}
{{Rail template doc|MBTA|Green|type=B}}
{{Rail template doc|MBTA|Green|type=C}}
{{Rail template doc|MBTA|Green|type=D}}
{{Rail template doc|MBTA|Green|type=E}}
{{Rail template doc||end}}
<td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist।; border-top:solid 1px gray;">   <td style="background:#ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist।; border-top:solid 1px gray;">  
LineTypeType keysColorHex colorIcon
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। A ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/MBTA' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। B ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/MBTA' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। C ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/MBTA' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। D ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/MBTA' not found.
ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA lines" does not exist। E ਲੂਆ ਗ਼ਲਤੀ: expandTemplate: template "MBTA color" does not exist। Lua error in package.lua at line 80: module 'Module:Adjacent stations/MBTA' not found.