Template:Trans: Difference between revisions

From Rosetta Code
Content added Content deleted
m (Change to a cleaner display name)
(link to Trans subpage)
Line 5: Line 5:
'''Usage''':
'''Usage''':


<nowiki>{{trans|language}}</nowiki>
<nowiki>{{trans|</nowiki>''language''<nowiki>}}</nowiki>


Language should be the exact spelling of the other language on the same task page. This link will take them to that example.
''language'' should be the exact spelling of the other language on the same task page. This link will take them to that example.

If the examples of the given task are on subpages (i.e. pages named ''Taskname''/''Langname'') then use [[Template:Trans subpage]] instead.


{{template}}</noinclude>
{{template}}</noinclude>

Revision as of 20:18, 1 December 2009

Translation of: [[Trans#{{{1}}}|{{{1}}}]]

Sometimes examples are translated directly from other examples by multi-lingual users. This is a template to help people see where examples came from when they were translated directly from other languages. Of course the idea of RC is that all of the examples on a page do exactly the same thing in the same way, but this is not always possible. Examples that differ in this way may still be able to be translated back and forth. Some examples need to use fundamentally different methods to do things where certain things aren't available in a language (GUIs, data structures, etc.) or languages aren't similar in a way that relates to the task. These examples probably cannot be translated between each other.

Usage:

{{trans|language}}

language should be the exact spelling of the other language on the same task page. This link will take them to that example.

If the examples of the given task are on subpages (i.e. pages named Taskname/Langname) then use Template:Trans subpage instead.



This is a template. There are many others. See Category:RCTemplates for a complete list of templates.