Template:M/Y/testcases
| This is the template test cases page for the sandbox of Template:M/Y. Script error: No such module "Purge". to update the examples. If there are many examples of a complicated template, later ones may break due to limits in MediaWiki, see the HTML comment "NewPP limit report" in the rendered page. You can also use Special:ExpandTemplates to examine the results of template uses. You can test how this page looks in the different skins with these links: |
Label format options – live template
- To show "M/Y", use {{M/Y}}: Template:Ship/special
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
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:- Template:Ship/special.
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'']]→- Template:Ship/special
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'' ()]] | Template:Ship/special |
| 1 | ID | {{M/Y|Jairo Mora Sandoval||1}} | [[MY Jairo Mora Sandoval ()|'''']] | Template:Ship/special |
| 2 | name | {{M/Y|Jairo Mora Sandoval||2}} | [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'']] | Template:Ship/special |
| 3 | name (ID) | {{M/Y|Jairo Mora Sandoval||3}} | [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'' ()]] | Template:Ship/special |
| 4 (dflt) | PREFIX name (ID) | {{M/Y|Jairo Mora Sandoval||4}} | [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'' ()]] | Template:Ship/special |
| 5 | PREFIX ID | {{M/Y|Jairo Mora Sandoval||5}} | [[MY Jairo Mora Sandoval ()|M/Y '''']] | Template:Ship/special |
| 6 | PREFIX name | {{M/Y|Jairo Mora Sandoval||6}} | [[MY Jairo Mora Sandoval ()|M/Y ''Jairo Mora Sandoval'']] | Template:Ship/special |
- Note: options default (=blank), 2 and 6 are most often used.
Label format options – sandbox template
- To show "M/Y/sandbox", use {{M/Y/sandbox}}: Template:Ship/special/sandbox
- To link to S/Y Manitou, use {{Ship|S/Y|Manitou}}
By default, the wikilink is build like this:
{{M/Y/sandbox|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/sandbox ''Jairo Mora Sandoval'' ()]], showing as:- Template:Ship/special/sandbox.
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'']]→- Template:Ship/special/sandbox
The options are:
| Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
|---|---|---|---|---|
| (default) | PREFIX name (ID) | {{M/Y/sandbox|Jairo Mora Sandoval|}} | [[MY Jairo Mora Sandoval ()|M/Y/sandbox ''Jairo Mora Sandoval'' ()]] | Template:Ship/special/sandbox |
| 1 | ID | {{M/Y/sandbox|Jairo Mora Sandoval||1}} | [[MY Jairo Mora Sandoval ()|'''']] | Template:Ship/special/sandbox |
| 2 | name | {{M/Y/sandbox|Jairo Mora Sandoval||2}} | [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'']] | Template:Ship/special/sandbox |
| 3 | name (ID) | {{M/Y/sandbox|Jairo Mora Sandoval||3}} | [[MY Jairo Mora Sandoval ()|''Jairo Mora Sandoval'' ()]] | Template:Ship/special/sandbox |
| 4 (dflt) | PREFIX name (ID) | {{M/Y/sandbox|Jairo Mora Sandoval||4}} | [[MY Jairo Mora Sandoval ()|M/Y/sandbox ''Jairo Mora Sandoval'' ()]] | Template:Ship/special/sandbox |
| 5 | PREFIX ID | {{M/Y/sandbox|Jairo Mora Sandoval||5}} | [[MY Jairo Mora Sandoval ()|M/Y/sandbox '''']] | Template:Ship/special/sandbox |
| 6 | PREFIX name | {{M/Y/sandbox|Jairo Mora Sandoval||6}} | [[MY Jairo Mora Sandoval ()|M/Y/sandbox ''Jairo Mora Sandoval'']] | Template:Ship/special/sandbox |
- Note: options default (=blank), 2 and 6 are most often used.