Template:Igen/emb

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search
 
 This file uses embedded text that can be easily translated using a text editor.
Template documentationview · edit · history · purge ]
This documentation is transcluded from Template:Igen/emb/doc.

  < Template: Igen/emb

Image generation subtemplate for Embedded Text
As long the template {{Translate}} does not have an optional parameter to create a short box this stub can be used, e.g. by {{Image generation}}, for a less-emphatic tag. Variation is possible by parameter .....; or p/P to create nonetheless the large box).

Usage

{{Igen |1= }}

Template parameters

ParameterDescriptionDefaultStatus
1emptyoptional

Additional information

The template is intended to be used in the following namespaces: no namespace specified

The template is intended to be used by the following user groups: no user group specified

See also

TextSVG, counterpart: Igen/ptx

Examples

The standard form displays
 
 This file uses embedded text that can be easily translated using a text editor.
;

A reduced form will often tell enough; with "%r" it displays

 
This file uses translateable embedded text.
[1]

When there is nothing to translate, the version "%v" displays more reduced text

 
This diagram uses embedded text.
[1]

or the version "%n" when only numbers are embedded

 
This diagram uses embedded text/digits.
[1]

or tag with "%u" when the embedded text is invisible

 
 This diagram uses invisible embedded text.

For structural formulas the stub may display

 
 This structural formula uses embedded text for its chemistry symbols.
 
 This chemical equation uses embedded text for its chemistry symbols.
To display the box in the same line, use %=vv or %=vf: ("vf" without categorization)
 
This SVG file uses embedded text.
[1]
0
  1. a b c d with thin space after logo

To suggest that the "switch" option might be better, use "%i" (or "I" for )

 
 This file uses embedded text that can be easily translated using a text editor (<switch> option recommended).

Use "%m" (or "M" for )

 
 This file uses embedded text that can be easily translated using a text editor.
... with "%a": Add languages
 
 You can contribute by adding more languages.

... with "%C": switch control
 
This drawing uses theswitchelement for variations.


... with "%w": Invisible text
 
SVG watermarked with invisible embedded text.

... with "%s", the option "switch=s":
 
 This file is translated using SVG switch elements: all translations are stored in the same file.

... with "%S", the option "switch=S" + Anti-Toolforge:

 
 This file is translated using SVG switch elements: all translations are stored in the same file.
 
 Please do not maintain the embedded languages with the buggy SVG translator


But the standard display is shown with %=p:

Translate this file This SVG file contains embedded text that can be translated into your language, using any capable SVG editor, text editor or the SVG Translate tool. For more information see: About translating SVG files.

or with switch %=P:

This file is translated using SVG <switch> elements. All translations are stored in the same file! Learn more.

For most Wikipedia projects, you can embed the file normally (without a lang parameter). The Wikipedia will use its language if the SVG file supports that language. For example, the German Wikipedia will use German if the SVG file has German. To embed this file in a particular language use the lang parameter with the appropriate language code, e.g. [[Template:Igen/emb|lang=en]] for the English version. Do not specify a lang parameter if it is not needed. The parameter may prevent the use of a subsequent translation.

To translate the text into your language, you can use the SVG Translate tool. Alternatively, you can download the file to your computer, add your translations using whatever software you're familiar with, and re-upload it with the same name. You will find help in Graphics Lab if you're not sure how to do this.