Predloga:Testcases side by side/dok
Videz
To je dokumentacijska podstran za glavno stran Predloga:Testcases side by side. Namenjena je shranjevanju navodil, kategorizaciji in drugi vsebini, ki ni del glavne strani. |
This template is designed to provide side-by-side comparisons of template and sandbox code on the /testcases
sub-page for a given template.
Usage
[uredi kodo]{{ testcases side by side | {{template 1|parameter1|parameter2|etc}} | {{template 1/peskovnik|parameter1|parameter2|etc}} }}
Parameters
[uredi kodo]The template accepts three unnamed parameters, the first two of which should be the full code of the templates to be compared. The third allows for the comparison table to be centrally aligned: simply pass "center" as the third attribute.
Named parameters are:
- t1: title for template 1, formatted as a template using {{tl}}; defaults to [BASEPAGE]
- t2: title for template 2, formatted as a template using {{tl}}; defaults to [BASEPAGE/peskovnik]
- t3: title for template 1, completely overrides t1; set
|t3=
with no value for no title - t4: title for template 2, completely overrides t2; set
|t4=
with no value for no title - box=y: sets table width to 90% and adds dashes to the template cells
- title: sets table title, defaults to Side by side comparison; set
|title=
with no value for no title
Examples:
Most defaults, comparing template and sandbox version
{{ testcases side by side|t1=cite episode|t2=Navedi epizodo/peskovnik |{{cite episode |title=Mission to the Unknown |episodelink=Mission to the Unknown |series=Doctor Who |credits=Writer [[Terry Nation]], Producer [[Verity Lambert]] |network=BBC |station=BBC One |city=London |airdate=9 October 1965}} |{{cite episode/peskovnik |title=Mission to the Unknown |episodelink=Mission to the Unknown |series=Doctor Who |credits=Writer [[Terry Nation]], Producer [[Verity Lambert]] |network=BBC |station=BBC One |city=London |airdate=9 October 1965}} }}
{{cite episode}} | {{Navedi epizodo/peskovnik}} |
---|---|
Writer Terry Nation, Producer Verity Lambert (9 October 1965). "Mission to the Unknown". Doctor Who. BBC. BBC One. | Writer Terry Nation, Producer Verity Lambert (9 October 1965). "Mission to the Unknown". Doctor Who. BBC. BBC One. |
With boxes and no title
{{testcases side by side|t1=cite episode|t2=Navedi epizodo/peskovnik|box=y|title= |{{cite episode |title=Mission to the Unknown |episodelink=Mission to the Unknown |series=Doctor Who |credits=Writer [[Terry Nation]], Producer [[Verity Lambert]] |network=BBC |station=BBC One |city=London |airdate=9 October 1965}} |{{Navedi epizodo/peskovnik|title=Mission to the Unknown |episodelink=Mission to the Unknown |series=Doctor Who |credits=Writer [[Terry Nation]], Producer [[Verity Lambert]] |network=BBC |station=BBC One |city=London |airdate=9 October 1965}}
{{cite episode}} | {{Navedi epizodo/peskovnik}} |
---|---|
Writer Terry Nation, Producer Verity Lambert (9 October 1965). "Mission to the Unknown". Doctor Who. BBC. BBC One. | Writer Terry Nation, Producer Verity Lambert (9 October 1965). "Mission to the Unknown". Doctor Who. BBC. BBC One. |
With template titles and using <wiki> to show markup
Markup | Renders as |
---|---|
{{cite episode |title=Mission to the Unknown |episodelink=Mission to the Unknown |series=Doctor Who |credits=Writer [[Terry Nation]], Producer [[Verity Lambert]] |network=BBC |station=BBC One |city=London |airdate=9 October 1965}}} | Writer Terry Nation, Producer Verity Lambert (9 October 1965). "Mission to the Unknown". Doctor Who. BBC. BBC One. |
See also
[uredi kodo]- {{Testcases side by side by side}} for 3 templates