Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted This template links to an unslashed target page [[ MY Jairo Mora Sandoval ]], but it shows the slash: "M/Y": M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted

Usage

  • To show "MY" (unslashed), use {{MY}}: MY Jairo Mora SandovalLua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
  • When the target pagename has a "/" slash, use {{Ship}}:
Target: [[ S/Y Manitou ]]
Use: {{ship|S/Y|Manitou}}S/Y ManitouLua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted

Usage

This is a typing short cut for linking to steamship articles named in the format "MY Shipname (year)", showing "M/Y". Since ship names are italicized in article text, linking to them in the usual manner means typing everything twice, such as [[MY Shipname (ID)|M/Y ''Shipname'' (ID)]]. This template halves that to {{M/Y|Shipname|ID}}.

Formal Usage

  • {{M/Y|Ship Name}}
  • {{M/Y|Ship Name|ID}}, where ID can be the hull number, launch year, or pennant number, as specified in the article title.

Examples

Template usage Equivalent wikicode Final result
{{M/Y|Jairo Mora Sandoval|}} [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'' ()]] M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
{{M/Y|Queen Victoria|ship}} [[MY Queen Victoria (ship)|M/Y ''Queen Victoria'' (ship)]] M/Y Queen Victoria  (ship)Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
{{M/Y|Princess of Norway}} [[MY Princess of Norway|M/Y ''Princess of Norway'']] M/Y Princess of Norway Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted

Label format options

By default, the wikilink is build like this:

  • {{M/Y|Jairo Mora Sandoval|}}, the targetpage is
[[MY Jairo Mora Sandoval]].
Then the template by default adds the formatted label:
[[targetpage|label]]
[[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'' ()]], showing as:
M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted.

The default label can be changed with a simple parameter. The extra third position, unnamed parameter allows setting which elements of the ship's full name are shown in the wikilink. It sets the label in the link: For example, in your article, the hull number (disambiguator) may not be needed to show. In that case, add option |2, and the result is:

  • {{MY|Jairo Mora Sandoval||2}}
[[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'']]
Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted

The options are:

Value Will show Example Wikilink [[targetpage|label]] Shows
(default) PREFIX name (ID) {{M/Y|Jairo Mora Sandoval|}} [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'' ()]] M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
1 ID {{M/Y|Jairo Mora Sandoval||1}} [[MY Jairo Mora Sandoval ()|'''']] Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
2 name {{M/Y|Jairo Mora Sandoval||2}} [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'']] Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
3 name (ID) {{M/Y|Jairo Mora Sandoval||3}} [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'' ()]] Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
4 (dflt) PREFIX name (ID) {{M/Y|Jairo Mora Sandoval||4}} [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'' ()]] M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
5 PREFIX ID {{M/Y|Jairo Mora Sandoval||5}} [[MY Jairo Mora Sandoval ()|M/Y '''']] M/Y Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
6 PREFIX name {{M/Y|Jairo Mora Sandoval||6}} [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'']] M/Y Jairo Mora Sandoval Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
Note: options default (=blank), 2 and 6 are most often used.

TemplateData

This section: Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted
TemplateData
This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. Click here to see a monthly parameter usage report for this template based on this TemplateData.

TemplateData for M/Y

Lua error: Cannot create process: proc_open(): posix_spawn() failed: Operation not permitted

This template provides a wikilink to a ship's page, with label options

Template parameters

ParameterDescriptionTypeStatus
Name1

Ship's name

Example
Bismarck, Belgrano
Stringoptional
ID2

Hull number, launch year, or pennant number

Example
H75, 1975
Stringoptional
Format3

Formats the label (which name parts will show)

Default
blank
Example
1, 2, 3, 5, 6
Numberoptional
unlink prefixup

up=yes puts prefix before (outside of) the wikilink

Default
no
Example
up=yes
Booleanoptional

See also

Template:WPSHIPS shortcut templates