Pređi na sadržaj

Šablon:S-rail-national/dok

Izvor: Vojna Enciklopedija

{{#ifeq:dok |dok

    | 

{{#ifeq:show |show

|

        }}{{#if: |
         |   {{#ifexist:Шаблон:S-rail-national
                  | [[Категорија:Документација {{#switch:Шаблон |Шаблон=шаблона |Модул=модула |Корисник=корисничких страница |#default=Википедије}}]]
                  | 
                 }}
        }}
    | 
   }}


This template is an alias of {{s-line}}, with several parameters renamed to conform with usage on the British National Rail system. Changes to the underlying functionality of {{s-line}} should be made to that template and not this one.

Usage

The renamed parameters are as follows:

  • |{{SAFESUBST:#if:county1|county1=}} instead of |{{SAFESUBST:#if:state1|state1=}}
  • |{{SAFESUBST:#if:county2|county2=}} instead of |{{SAFESUBST:#if:state2|state2=}}
  • |{{SAFESUBST:#if:route|route=}} instead of |{{SAFESUBST:#if:branch|branch=}}
  • |{{SAFESUBST:#if:toc|toc=}} instead of |{{SAFESUBST:#if:line|line=}}

In addition, the parameter |{{SAFESUBST:#if:system|system=}} is optional, and if omitted, defaults to |{{SAFESUBST:#if:system|system=}}National Rail

This template takes one special parameter that {{s-line}} does not: |{{SAFESUBST:#if:status|status=}}. By specifying either |{{SAFESUBST:#if:status|status=}}Disused or |{{SAFESUBST:#if:status|status=}}Historical, you make invoke those sets of templates instead of the templates for active lines.


TemplateData

{{#if:|pogledajte mesečni izveštaj o greškama za ovaj šablon.|Ovo je {{#if:|TemplateData|TemplateData}} dokumentacija za ovaj šablon, korišćena u Vizuelnom uređivaču i u drugim alatkama; pogledajte mesečni izveštaj o greškama za ovaj šablon.}}

TemplateData za S-rail-national

{{#ifeq:dok|sandbox||

}} <templatedata> {

   "description": "A specialised succession box for rail lines on the British National Rail system.",
   "params": {
       "previous": {
           "label": "previous",
           "description": "The name of the previous station, should correspond to a specific template name",
           "type": "string",
           "required": false
       },
       "next": {
           "label": "next",
           "description": "The name of the next station, should correspond to a specific template name",
           "type": "string",
           "required": false
       },
       "system": {
           "label": "system",
           "description": "The system to which the line belongs, Defaults to 'National Rail'.",
           "type": "string",
           "required": false
       },
       "toc": {
           "label": "Train operating company",
           "description": "Train operating company",
           "type": "string",
           "required": true
       },
       "status": {
           "label": "status",
           "description": "Can be either 'Disused' or 'Historical'. system should also be set in this case.",
           "type": "string",
           "required": false
       },
       "route": {
           "label": "route",
           "description": "The route of a line e.g. 'Thameslink'.",
           "type": "string",
           "required": false
       },
       "type": {
           "label": "type",
           "description": "The left-hand line branch",
           "type": "string",
           "required": false
       },
       "type2": {
           "label": "type2",
           "description": "The right-hand line branch",
           "type": "string",
           "required": false
       },
       "note": {
           "label": "note",
           "description": "Information about the left-hand line branch",
           "type": "string",
           "required": false
       },
       "notemid": {
           "label": "notemid",
           "description": "Information about the station itself",
           "type": "string",
           "required": false
       },
       "note2": {
           "label": "note2",
           "description": "Information about the right-hand line branch",
           "type": "string",
           "required": false
       },
       "oneway1": {
           "label": "oneway1",
           "description": "Indicates that trains do not operate towards the Previous station",
           "type": "string",
           "required": false
       },
       "oneway2": {
           "label": "oneway2",
           "description": "Indicates that trains do not operate towards the Next station",
           "type": "string",
           "required": false
       },
       "through1": {
           "label": "through1",
           "description": "Allows, instead of a previous station, service passing to another line on the system.",
           "type": "string",
           "required": false
       },
       "through2": {
           "label": "through2",
           "description": "Allows, instead of a next station, service passing to another line on the system.",
           "type": "string",
           "required": false
       },
       "county1": {
           "label": "county1",
           "description": "The county of a station. Useful for disambiguation.",
           "type": "string",
           "required": false
       },
       "county2": {
           "label": "county2",
           "description": "The county of a station. Useful for disambiguation.",
           "type": "string",
           "required": false
       },
       "transfer": {
           "label": "transfer",
           "description": "Used to show lines available by direct transfer at an adjoining station. ",
           "type": "string",
           "required": false
       },
       "round1": {
           "label": "round1",
           "description": "If set displays 'Reverses direction' in left cell",
           "type": "string",
           "required": false
       },
       "round2": {
           "label": "round2",
           "description": "If set displays 'Reverses direction' in right cell",
           "type": "string",
           "required": false
       },
       "circular": {
           "label": "circular",
           "description": "",
           "type": "string",
           "required": false
       },
       "circular1": {
           "label": "circular1",
           "description": "",
           "type": "string",
           "required": false
       },
       "circular2": {
           "label": "circular2",
           "description": "",
           "type": "string",
           "required": false
       },
       "rows1": {
           "label": "rows1",
           "description": "Number of rows for left hand column",
           "type": "string",
           "required": false
       },
       "rowsmid": {
           "label": "rowsmid",
           "description": "Number of rows for center hand column",
           "type": "string",
           "required": false
       },
       "rows2": {
           "label": "rows2",
           "description": "Number of rows for right hand column",
           "type": "string",
           "required": false
       },
       "hide1": {
           "label": "hide1",
           "description": "Hides the previous station, used when a previous row has 'rows1' set",
           "type": "string",
           "required": false
       },
       "hidemid": {
           "label": "hidemid",
           "description": "Hides this station, used when a previous row has 'rowsmid' set",
           "type": "string",
           "required": false
       },
       "hide2": {
           "label": "hide2",
           "description": "Hides the next station, used when a previous row has 'rows2' set",
           "type": "string",
           "required": false
       }
   }

} </templatedata>

See also