Template:Version specific: Difference between revisions From Online Manual

Jump to: navigation, search
(A template for highlighting parts of a manual page that apply to only one version of SMF)
 
(Attempt to eliminate an extraneous line break after the yellow box.)
 
(36 intermediate revisions by 4 users not shown)
Line 1: Line 1:
<div style="border: 1pt solid gray; background-color: #d0e9e9">
<noinclude>{{Languages|width={{{width|80%}}}|dir={{{dir|ltr}}}}}
<div style="border: 1pt solid gray;">The following applies only to version X</div>
</noinclude><!--Begin version specific--><div style="border: 1px solid #e0e0c0; background-color: #ffffdc;">
This is a test
{{AOmbox
</div>
| small      = {{{small|}}}
|type=notice
|text= {{#if:{{{version|}}} | '''The following applies only to version {{{version}}}|{{#if:{{{versions|}}}| '''The following applies only to versions {{{versions}}}|{{#if:{{{versionright|}}}| '''This applies only to version {{{versionright}}}|{{#if:{{{versionsright|}}}| '''This applies only to versions {{{versionsright}}} | '''The following applies only to one version of SMF}}}}}}}}'''
}}
{{#if:{{{content|}}}|{{{content}}} }}
</div><!-- End version specific
--><noinclude>{{Documentation}}
 
{{ {{Localized|Add new template translation}} }}
 
[[Category:translatable templates]]
</noinclude>

Latest revision as of 01:07, 26 November 2013

Languages English  · Ελληνικά · español · français · italiano · Nederlands · русский · srpski (latinica)
[edit] [purge] Template documentation

{{Version specific
|version=1.1.x
|content=The parameters are set on the following page...
}}

The parameters are set on the following page...


{{Version specific
|versions=1.1, 2.0
|content=In version two, the choices are ...
}}

In version two, the choices are ...


{{Version specific
|small=yes
|versions=1.1, 2.0
|content=In version two, the choices are ...
}}

In version two, the choices are ...


{{Version specific
|small=left
|versions=1.1, 2.0
|content=In version two, the choices are ...
}}

In version two, the choices are ...


{{Version specific
|small=right
|versionright=1.1, 2.0
|content=In version two, the choices are ...
}}

In version two, the choices are ...


{{Version specific
|small=right
|versionsright=1.1, 2.0
|content=In version two, the choices are ...
}}

In version two, the choices are ...

How to translate this template

Please follow these instructions in order to create a new translation of this template.

1) Copy this code:

<noinclude>{{Languages|width={{{width|80%}}}|dir={{{dir|ltr}}}}}
</noinclude><div style="border: 1px solid #e0e0c0; background-color: #ffffdc;">
{{AOmbox
| small      = {{{small|}}}
|type=notice
|text= {{#if:{{{version|}}} | '''The following applies only to version {{{version}}}|{{#if:{{{versions|}}}| '''The following applies only to versions {{{versions}}}|{{#if:{{{versionright|}}}| '''This applies only to version {{{versionright}}}|{{#if:{{{versionsright|}}}| '''This applies only to versions {{{versionsright}}} | '''The following applies only to one version of SMF}}}}}}}}'''
}}
{{#if:{{{content|}}}|{{{content}}} }}
</div><noinclude>{{Documentation}}

{{ {{Localized|Add new template translation}} }}

[[Category:translatable templates]]
</noinclude>

2) Add to the link of this page a slash "/" and the code of the language you want to translate the template to (e.g. http://wiki.simplemachines.org/fr) and follow the resulting URL. Note: if the link already ends with a language code (e.g. .../fr, .../sr-el, .../nl, etc.) please replace that code with the one of the language you want to translate to.

3) If the new page is empty, select "Create" at the top of the page and paste the full text of the template (copied at step 1) and then translate only the parts that need translation (if you have any doubt feel free to ask on the forum). If the page already exists, just click on "Edit" at the top of the page in order to make changes.

NOTE: Complex templates will include instructions to tell you where to begin and end the translation (<!-- start translate -->) and the end (<!-- stop translate -->).

Please find here below few links ready to be created/edited:



Advertisement: