Template:Created with Inkscape: Difference between revisions
Jump to navigation
Jump to search
Content deleted Content added
m topic |
m corr |
||
(7 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
<noinclude> |
|||
{{Mbox|type=stop|imageright={{F|Gnome-emblem-important.svg|Z|32}}|text='''Never''' use the template {{Tl|Inkscape}} or {{Tl|Created with Inkscape|link=n}} without the obliged parameters !<br>By using the [[Template:Image generation#Script support|script]] it will automatically be embedded into {{Tl|Image generation}} in a correct manner.|style=border:4px solid #b22222;background:#FEE;}}</noinclude> |
|||
{{SVGvalid|{{{1|}}}|{{{2|}}}|{{{err|{{{errors|{{{errnum|}}}}}}}}}|{{{vs|{{{vstyle|{{{style|}}}}}}}}}|<!-- |
{{SVGvalid|{{{1|}}}|{{{2|}}}|{{{err|{{{errors|{{{errnum|}}}}}}}}}|{{{vs|{{{vstyle|{{{style|}}}}}}}}}|<!-- |
||
-->{{{vw|{{{vwidth|{{{width|}}}}}}}}}|{{{vt|{{{vtxt|{{{vtext|.}}}}}}}}}|{{{vo|{{{vopt|{{{opt|}}}}}}}}}}}<!-- |
-->{{{vw|{{{vwidth|{{{width|}}}}}}}}}|{{{vt|{{{vtxt|{{{vtext|.}}}}}}}}}|{{{vo|{{{vopt|{{{opt|}}}}}}}}}}}<!-- |
||
Line 4: | Line 6: | ||
-->{{Autotranslate |
-->{{Autotranslate |
||
|1={{#if:{{{2|}}}|{{{1|}}}|{{#switch:{{{1}}}|v|s|n|p|/|=|#default={{{1|}}}}}}} |
|1={{#if:{{{2|}}}|{{{1|}}}|{{#switch:{{{1}}}|v|s|n|p|/|=|#default={{{1|}}}}}}} |
||
|2={{{logo|{{#if:{{{err|{{{errors|{{{errnum|}}}}}}}}}|{{# |
|2={{#if:{{{logo|}}}|{{{logo}}}|{{#if:{{{err|{{{errors|{{{errnum|}}}}}}}}}|{{#switch:{{{err|{{{errors|{{{errnum|}}}}}}}}}<!-- |
||
-->|0 |
-->|0=Inkscape-yes.svg|-1=Inkscape-un.svg|Inkscape-no.svg}}<!-- valid / uncheckable / invalid |
||
-->|{{#switch:v|{{{2}}}|{{{1}}}=Inkscape-yes.svg|<!-- valid |
-->|{{#switch:v|{{{2}}}|{{{1}}}=Inkscape-yes.svg|<!-- specified valid |
||
-->|{{#ifeq:{{#invoke: |
-->|{{#ifeq:{{#invoke:Igenmod|extcode}}|s|Inkscape-ws.svg|Inkscape Logo.svg}}}}}}}} |
||
|3=Inkscape |
|3=Inkscape |
||
|4={{# |
|4={{#switch:{{padleft:|1|{{{more}}}}}|,|;|:|.|=| }}{{{more|.}}}<!-- |
||
|#default={{Igen/cat|{{{cni}}}}}}}}}{{#ifeq:{{{more|.}}}|.|| }}{{{more|.}}} |
|||
-->{{#switch:{{{err|{{{errors|{{{errnum|}}}}}}}}}|={{#switch:{{{2|{{{1}}}}}}|v|/=<!-- |
|||
⚫ | |||
-->|{{#ifeq:{{NAMESPACE}}|File|{{#ifeq:{{#invoke:Igenmod|extcode}}|s|{{#invoke:Igenmod|inkscape}}}}}}}}}}<!-- only for SVG files --> |
|||
|5={{{width|}}} |
|5={{{width|}}} |
||
|6={{{style|}}} |
|6={{{style|}}} |
||
|7={{{cat|{{{category|}}}}}} |
|7={{#if:{{{cat|{{{category|}}}}}}|{{{cat|{{{category|}}}}}}}} |
||
|8=<!-- {{{IMPORTANT|}}} |
|8=<!-- {{{IMPORTANT|}}} |
||
-->{{#if:{{{IMPORTANT|}}}|[[Help:Inkscape#Inkscape_SVG_vs._Plain_SVG|{{I18n/important}}]]<!-- (was italic from Igen) |
|||
⚫ | |||
-->|-=<!-- suppress "cat:important" with "cni=-" |
|||
-->|={{#switch:{{{cat|{{{category|}}}}}}|-|n|no|none=|{{#ifeq:{{#invoke:Igenmod|extcode}}|s<!-- |
|||
⚫ | |||
-->|#default={{Igen/cat|{{{cni}}}}}}}}}<!-- |
|||
-->{{#ifeq:{{{Optimized}}}|yes|…[[Help:Inkscape#Inkscape_SVG_vs._Plain_SVG|optimized]]}} |
|||
|9={{{sort|{{{key|{{{sortkey|}}}}}}}}} |
|9={{{sort|{{{key|{{{sortkey|}}}}}}}}} |
||
|10= |
|10={{#if:{{{sub|{{{subcat|{{{subcategory|}}}}}}}}}|{{{sub|{{{subcat|{{{subcategory}}}}}}}}}<!-- |
||
-->| |
-->|{{#if:{{{topic|}}}|{{Igen/sub|{{{topic}}}}}}}}} |
||
|11={{{err|{{{errors|{{{errnum|}}}}}}}}} |
|11={{{err|{{{errors|{{{errnum|}}}}}}}}} |
||
|12={{#if:{{{err|{{{errors|{{{errnum|}}}}}}}}}<!-- |
|12={{#if:{{{err|{{{errors|{{{errnum|}}}}}}}}}|{{#ifeq:{{{err|{{{errors|{{{errnum|}}}}}}}}}|0|V|I}}<!-- |
||
-->|{{# |
-->|{{#if:{{{2|}}}|{{#switch:{{{2}}}|v=V|n=N|s=S}}|{{#switch:{{{1}}}|v=V|n=N|s=S<!-- |
||
-->|{{#ifeq:{{NAMESPACE}}|File|{{#invoke:Igenmod|extcode}}}}}}}}}}<!-- s(SVG) or n(PNG) --> |
|||
|13={{#if:{{{vo|{{{vopt|{{{opt|}}}}}}}}}|{{{vo|{{{vopt|{{{opt|}}}}}}}}}}} |
|||
⚫ | |||
|14={{#if:{{{topic|}}}|{{{topic}}}}} |
|||
-->|{{#ifeq:{{#invoke:File|extension|file={{PAGENAME}}}}|svg|s|n}}}}}}}}<!-- SVG or PNG --> |
|||
| |
|17={{#if:{{{iconsize|}}}|{{{iconsize|}}}}} |
||
| |
|18={{#if:{{{c_text|}}}|{{{c_text|}}}}} |
||
|17={{{iconsize|}}} |
|||
|base=Created with ...}}<noinclude> |
|base=Created with ...}}<noinclude> |
||
{{SVG created with/doc|shorthand=Inkscape|n=y|I=IMPORTANT|igen=I|sandbox=y|vopttext=un|shortmore=may be used <!-- as default --> for "Inkscape",<br> |
{{SVG created with/doc|shorthand=Inkscape|n=y|I=IMPORTANT|igen=I|sandbox=y|vopttext=un|?shortmore=may be used <!-- as default --> for "Inkscape",<br> |
||
:::::::: or the abbreviation "Im" for "Inkscape{{!}}IMPORTANT= |
:::::::: or the abbreviation "Im" for "Inkscape{{!}}IMPORTANT=[[Category:SVG created with Inkscape:Important|yes]]".|code=}} |
||
</noinclude> |
</noinclude> |
Latest revision as of 07:44, 30 June 2023
This image was created with Inkscape .
This documentation is transcluded from the unified template {{SVG created with/doc}}
English: Used to mark files created with Inkscape.
The template automatically sets the following categories:
- Created with Inkscape (6 C, 10 F) (MetaCat)
- SVG created with Inkscape (10 C, 22 F) (MetaCat)
- Valid SVG created with Inkscape (5 C, 14,553 F)
- Invalid SVG created with Inkscape (8 C, 1,679 F)
- PNG created with Inkscape (2 C, 1,503 F)
- category names can be suffixed with
subcategory
if diffusion is required
Usage
{{Created with Inkscape |err= |topic= }}
Template parameters
Parameter | Description | Default | Status | |
---|---|---|---|---|
1 | name of user or author (for display); may as well be a link coded e.g. with {{U}}, {{Uc}}, {{Ud}}, {{Ut}}, {{Ult}} or otherwise. | empty | optional | |
2 | Depending on file type, either:
| empty | optional | |
err errors errnum | number of errors from W3C validator, generates {{InvalidSVG}} Mutually exclusive with "v"; should be a numeric value err=0 is equivalent to 2=v | empty | optional | |
more | optional additional text | . | optional | |
width | to set another width for the grey box | auto | optional | |
style | to set or overwrite other style attributes for the box | empty | optional | |
cat category | name of category/categories: complete with the brackets, or without them; replaces the category "Category:Created with Inkscape" set by default suppress categorizing with cat=- | empty | optional | |
sub subcat subcategory | for category diffusion: specify a suffix to the category name Select the best fitting subcategory, or create an appropriate new one To insert an inbetween space, use understroke _ or and not <nowiki/> | empty | optional | |
key sort sortkey | Sortkey option within the category default value is the file name, will be preceded by the | empty | optional | |
topic | to specify the short code (e.g. "f" for "flag, "i" for "icon", "m" for map) of a topic | empty | optional | |
vwidth vw | to set another width for the box of ValidSVG/InvalidSVG | width | optional | |
vstyle vs | to set or overwrite other style attributes for the box of ValidSVG/InvalidSVG e.g. vstyle=float:left or short vs=fl | style | optional | |
vtext vtxt vt | optional additional text for ValidSVG/InvalidSVG | . | optional | |
vopt vo opt | to set or overwrite the display source option for ValidSVG/InvalidSVG Suppress the display of the validation box with vopt=none (abbr: vo=n )or set vo=> when files are too large to display the SVG source code | empty | optional | |
c_t c_text | category text, e.g. "drawn with", "plotted using", "taken with" | created with | optional |
Additional information
The template is intended to be used in the following namespaces: the File namespace
The template is intended to be used by the following user groups: all users
Relies on:
The parameter IMPORTANT
may be used
(set to any value, e.g. |1=
or |yes=
or <nowiki/>
) if the image was saved in "Inkscape SVG" format (and not in "Plain SVG")
See also
Help:Inkscape#Tagging Inkscape files for overview.
Internationalisation
Examples
{{ Created with Inkscape }} |
This image was created with Inkscape . |
{{ Created with Inkscape | n }} | |
{{ Created with Inkscape | topic = l }} |
This logo was created with Inkscape . |
{{ Image generation | I }} |
Some topics variations (validation not shown) | |
{{ Igen | I | s = c }} | This coat of arms was created with Inkscape. |
{{ Igen | I | s = d }} | This diagram was created with Inkscape. |
{{ Igen | I | s = eq }} | This chemical equation was created with Inkscape. |
{{ Igen | I | n | s = f }} | This flag was created with Inkscape. |
{{ Igen | I | n | s = i | U = Example }} | |
{{ Igen | I | > | & | s = m }} | |
{{ Igen | I | 1 | s = v }} | This W3C-invalid sign was created with Inkscape. |
{{ Igen | I | 2 | > | s = y }} | This oversized W3C-invalid symbol was created with Inkscape. |
{{ Igen | I | -1 | > | s = sig }} |