Template:Trans: Difference between revisions

add optional `subpage` parameter
(typo)
(add optional `subpage` parameter)
Line 1:
<includeonly><div class="examplemeta translation">'''Translation of''': {{#if:{{{subpage|}}}|[[../{{{1}}}|{{{1}}}]]|[[#{{{1}}}|{{{1}}}]]}}{{#if:{{{2|}}}|&nbsp;&ndash;&nbsp;{{{2}}} }}</div></includeonly><noinclude>
 
This template marks a programming example as a translation of another one on the same task page.
Line 13:
; Second argument ''(optional):
: Summary of changes.
; Named arguments ''(optional):
:{|
|-
| <code>subpage</code>&nbsp;&mdash;&nbsp; || Set to 1 if the examples for this task are on subpages (i.e. pages named ''Taskname/Langname''), so that the link can be adjusted accordingly.
|}
 
{| class="wikitable"
Line 22 ⟶ 27:
| {{trans|Python}}
|-
| <tt><nowiki>{{trans|Python|without the extraerror credits parthandling}}</nowiki></tt>
| {{trans|Python|without the extra credits part}}
|-
| <tt><nowiki>{{trans|Python|subpage=1}}</nowiki></tt>
| {{trans|Python}}
|}
 
Anonymous user