Template:MY/testcases
This is the template test cases page for the sandbox of Template:MY. 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 and parsers with these links: |
Label format options – live template
[edit]By default, the wikilink is build like this:
{{MY|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|MY ''Jairo Mora Sandoval'']]
, showing as:- MY Jairo Mora Sandoval.
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
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{MY|Jairo Mora Sandoval|}} | [[MY Jairo Mora Sandoval|MY ''Jairo Mora Sandoval'']] | MY Jairo Mora Sandoval |
1 | ID | {{MY|Jairo Mora Sandoval||1}} | [[MY Jairo Mora Sandoval|'''']] | Error: {{MY}} missing disambiguator (help) |
2 | name | {{MY|Jairo Mora Sandoval||2}} | [[MY Jairo Mora Sandoval|''Jairo Mora Sandoval'']] | Jairo Mora Sandoval |
3 | name (ID) | {{MY|Jairo Mora Sandoval||3}} | [[MY Jairo Mora Sandoval|''Jairo Mora Sandoval'']] | Error: {{MY}} missing disambiguator (help) |
4 | invalid | {{MY|Jairo Mora Sandoval||4}} | — | Error: {{MY}} invalid control parameter: 4 (help) |
5 | PREFIX ID | {{MY|Jairo Mora Sandoval||5}} | [[MY Jairo Mora Sandoval|MY '''']] | Error: {{MY}} missing disambiguator (help) |
6 | PREFIX name | {{MY|Jairo Mora Sandoval||6}} | [[MY Jairo Mora Sandoval|MY ''Jairo Mora Sandoval'']] | MY Jairo Mora Sandoval |
- Note: options default (=blank), 2 and 6 are most often used.
Label format options – sandbox template
[edit]By default, the wikilink is build like this:
{{MY/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|MY ''Jairo Mora Sandoval'']]
, showing as:- MY Jairo Mora Sandoval.
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
The options are:
Value | Will show | Example | Wikilink [[targetpage|label]] | Shows |
---|---|---|---|---|
(default) | PREFIX name (ID) | {{MY/sandbox|Jairo Mora Sandoval|}} | [[MY Jairo Mora Sandoval|MY ''Jairo Mora Sandoval'']] | MY Jairo Mora Sandoval |
1 | ID | {{MY/sandbox|Jairo Mora Sandoval||1}} | [[MY Jairo Mora Sandoval|'''']] | Error: {{MY}} missing disambiguator (help) |
2 | name | {{MY/sandbox|Jairo Mora Sandoval||2}} | [[MY Jairo Mora Sandoval|''Jairo Mora Sandoval'']] | Jairo Mora Sandoval |
3 | name (ID) | {{MY/sandbox|Jairo Mora Sandoval||3}} | [[MY Jairo Mora Sandoval|''Jairo Mora Sandoval'']] | Error: {{MY}} missing disambiguator (help) |
4 | invalid | {{MY/sandbox|Jairo Mora Sandoval||4}} | — | Error: {{MY}} invalid control parameter: 4 (help) |
5 | PREFIX ID | {{MY/sandbox|Jairo Mora Sandoval||5}} | [[MY Jairo Mora Sandoval|MY '''']] | Error: {{MY}} missing disambiguator (help) |
6 | PREFIX name | {{MY/sandbox|Jairo Mora Sandoval||6}} | [[MY Jairo Mora Sandoval|MY ''Jairo Mora Sandoval'']] | MY Jairo Mora Sandoval |
- Note: options default (=blank), 2 and 6 are most often used.