מוסטער:Adjacent stations/דאק

פֿון װיקיפּעדיע
דאס איז א דאקומענטאציע אונטערבלאט פאר מוסטער:Adjacent stations (זעט יענעם בלאט פארן מוסטער אליין).
ער אנטהאלט אינפארמאציע וויאזוי צו ניצן, קאטעגאריעס און אנדער אינהאלט וואס געהערט נישט צום עיקר מוסטער בלאט.

מוסטער:Uses TemplateStyles

Adjacent stations איז א ספעציאליזירטער succession box מוסטער וואס פארבינדט adjacent station articles, along with the termini of one or more lines or services. ער איז א Lua ווערסיע פון {{ס-ליניע}} (זעט differences).

באניץ[רעדאַקטירן קוואַלטעקסט]

דאטן-מאדול[רעדאַקטירן קוואַלטעקסט]

איידער מען קען ניצן דעם מוסטער, דארף מען שאפן א מאדול וואס שליסט איין אינפארמאציע וועגן דער טראנספארט סיסטעם ווי דער טיטל, ליניעס און די סוף־סטאנציעס פון יענע ליניעס. דער דאטן-מאדול דארף זיין אן אונטערבלאט פון Module:Adjacent stations (Module:Adjacent stations/system), and needs to be of a specific structure.

See Module:Adjacent stations for a guide on creating and editing data modules. Note that not all variables are used by this template.

ווען א סיסטעם עקזיסטירט שוין אין {{ס-ליניע}}, קענט איר אויך ניצן {{Adjacent stations/row|system|line}} inside Special:ExpandTemplates to simplify subpage creation for lines with two termini. You will need to replace every two spaces with a tab space afterwards.

Transclusion[רעדאַקטירן קוואַלטעקסט]

For multiple lines or systems, this template only needs to be transcluded once. Each line is assigned a number. The parameters for the corresponding line are suffixed by the number (e.g. system2, line2). Parameters without a number suffix are treated as group 1.

פאראמעטערס[רעדאַקטירן קוואַלטעקסט]

פאראמעטער באשרייבונג וואס פאסירט ווען עס פעלט הערות
systemn The system to which line n belongs. This should correspond to a subpage of Module:Adjacent stations.
  • System for n assumed to be same as the previous group.
  • Renders empty table if no systems are entered.
Displays error message if unrecognised.
linen The name of line n (or recognised alias). This should correspond to a key under ["lines"] in data. Displays the termini of the line as subtext in left and right cells by default. Renders Terminus as subtext if adjacent station is terminus.
  • Line for n assumed to be same as the previous group.
  • Renders only header row if no lines are entered.
Displays error message if unrecognised.
leftn The name of the previous station. Renders the formatted station name in the left cell as main text. Renders Terminus in the left cell as main text.
rightn The name of the next station. Renders the formatted station name in the right cell as main text. Renders Terminus in the right cell as main text.
to-leftn The left terminus name or alias. Used to replace left terminus where it is non-default. Uses default left terminus. Uses un-formatted name if terminus is absent in data.
to-rightn The right terminus name or alias. Used to replace right terminus where it is non-default. Uses default right terminus. Uses un-formatted name if terminus is absent in data.
ton Terminus name or alias on either side. Used to replace either terminus where it is non-default. Uses default termini. Only replaces side with defined terminus in data.
transfern The name of the transfer station for the line, at stations where an interchange with a line at another nearby station is possible.
oneway-leftn If entered, 'One-way operation' is displayed in the left cell instead of the small text which indicates the line terminus. This can also be entered for the whole line in the system subpage.
oneway-rightn If entered, 'One-way operation' is displayed in the left cell instead of the small text which indicates the line terminus. This can also be entered for the whole line in the system subpage.
nonstopn If entered, instead of displaying previous and next stations, displays 'line does not stop here'. If the value for this parameter is 'former', then 'did not stop here' will be used instead.
headern A table header across the width of the table, displayed above the succession for the line. This will display with or without other parameters with the same number.
note-rown A note across the width of the table, displayed below the succession for the line. This will display with or without other parameters with the same number.
note-leftn A note, displayed below the left (previous) station's name.
note-midn A note, displayed below the line name in italics.
note-rightn A note, displayed below the right (next) station's name.
throughn The through line – trains on the line run through to this line. If this is entered, 'through to line', in italics, displays where 'Terminus' would.
through-leftn The through line for the left cell only (primarily for compatibility purposes).
through-rightn The through line for the right cell only (primarily for compatibility purposes).
reversen If this is entered, 'reverses direction', in italics, displays where 'Terminus' would.
reverse-leftn The same for the left cell only (primarily for compatibility purposes).
reverse-rightn The same for the right cell only (primarily for compatibility purposes).

Conversion from S-line[רעדאַקטירן קוואַלטעקסט]

After creating the module subpage, you can use the convert function of Module:Adjacent stations to replace transclusions of the S-line series templates (this currently does not work with {{Rail line}}-series templates). This can be semi-automated using regular expressions in AWB and other tools:

Find Replace Notes
\|\s*system\s*=\s*oldSystem |system=newSystem Replacement for system name in {{ס-באן}}, if the old system is different from the new system. (Not necessary for {{ס-באן}}, which is ignored.) Use the g regular expression flag to replace multiple uses.
(\| *(?:services|other_services) *=)((?:\s*\{\{.+\}\})+) $1 {{subst:#invoke:Adjacent stations|convert|$2}} Replacement for {{סטאנציע}}'s |services= and |other_services= parameters.
(\{\{[Ss](?:(?:-rail)?-s)?tart\}\}(?:\s*\{\{.+\}\})+\s*\{\{(?:[Ss]-end|[Ee]nd)\}\}) {{subst:#invoke:Adjacent stations|convert|$1}} Replacement for standalone succession boxes. Use the g regular expression flag to replace multiple boxes on the page.

The conversion will not work if

  • the input includes templates other than those in the S-line series;
  • a system or line in the input is unrecognized or otherwise invalid;
  • there are unmatched square or curly brackets in the input.

Examples[רעדאַקטירן קוואַלטעקסט]

מוסטער:Markup