Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Humanipedia
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
Template:Adjacent stations/doc
(section)
Template
Discussion
English
Read
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
Anti-spam check. Do
not
fill this in!
== Conversion from S-line == After creating the module subpage, you can use the <code>convert</code> function of [[Module:Adjacent stations]] to replace transclusions of the S-line series templates (this currently does ''not'' work with {{tl|Rail line}}-series templates). This can be semi-automated using [[regular expressions]] in [[WP:AWB|AWB]] and other tools: {| class="wikitable" ! Find !! Replace !! Notes |- | {{mono|1=\|\s*system\s*=\s*<var>oldSystem</var>}} || {{mono|1=|system=<var>newSystem</var>}} || Replacement for system name in {{tl|S-line}}, if the old system is different from the new system. (Not necessary for {{tl|S-rail}}, which is ignored.) Use the ''g'' regular expression flag to replace multiple uses. |- | {{mono|1=<nowiki>(\| *(?:services|other_services) *=)((?:\s*\{\{.+\}\})+)</nowiki>}} || {{codett|1=<nowiki>$1 {{subst:#invoke:Adjacent stations|convert|$2}}</nowiki>}} || Replacement for {{tl|Infobox station}}'s {{para|services}} and {{para|other_services}} parameters. |- | {{mono|1=<nowiki>(\{\{[Ss](?:(?:-rail)?-s)?tart\}\}(?:\s*\{\{.+\}\})+\s*\{\{(?:[Ss]-end|[Ee]nd)\}\})</nowiki>}} || {{mono|1=<nowiki>{{subst:#invoke:Adjacent stations|convert|$1}}</nowiki>}} || 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.
Summary:
Please note that all contributions to Humanipedia may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Humanipedia:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)