Template talk:Created with

From Wikimedia Commons, the free media repository
Jump to: navigation, search

Workflow:

  1. Created with ... templates‎ (there are templates for 65 different tools)
  2. Created with ... /lc templates (one for each tool and each language)
  3. Created with/lc templates (one for each language)
  4. Created with template

The first template is user visible, it gets all the parameters, but works also with none. See a short description.
The second template creates parts of the nationalized text for the box,
the third template completes it. This step can also be dropped, see {{Commonist}} for that exception
The fourth template at last displays the box (formatted with the parmeters width and style),
and now the categorization occurs (controlled by the parameters category, key, sub, err, w3c - because the categorisation is not done earlier all these parameters are to be passed through from the first to the last template).

It is the same workflow with the 34 Taken with ... templates. For the parameter passing see also #Chain and #Final dot.


Help[edit]

Hi I'm using this template via Template:Taken with Canon Digital Ixus 500. Is there a way to edit the teplate Template:Taken with Canon Digital Ixus 500 somehow, so that files placed into the more suitable category Category: Taken with Canon Digital IXUS 500?--TUBSMail-closed.svg 07:43, 8 June 2009 (UTC)

seems to work now. ✓ Done --TUBSMail-closed.svg 08:03, 8 June 2009 (UTC)

Width[edit]

Hi, is it possible to extend the width of the box to span the entire screen, like almost all other templates like Quality Image, Location, ... The current size doesn't fit optically with all the rest of the layout of an image page. -- H005 (talk) 07:00, 17 September 2009 (UTC)

Note, that these templates are usually within the gray summary box on the description page - unlike quality image etc.
See the images in Category:Uploaded with Commonist or this SVG.
Lipedia (talk) 19:20, 21 February 2010 (UTC)
It's even worse for {{Inkscape-hand}}. /129.215.149.99 13:34, 23 August 2010 (UTC)
Inkscape to text.svg
This vector image was created with Inkscape, and then manually edited.


I think making the width 100% would look bad on widescreen/hi-res monitors since the text only takes up a little part of it. Rocket000 (talk) 22:07, 23 August 2010 (UTC)

Design[edit]

I think the yellow is too eye-catching for an rather subsidiary information. I'd rather like to see it like this:

Commonist.svg

This file was uploaded with Commonist.

Inkscape logo 2.svg

This vector image was created with Inkscape.

Any thoughts? Greetings, Lipedia (talk) 18:57, 21 February 2010 (UTC)

Done. Lipedia (talk) 18:52, 26 February 2010 (UTC)
I kinda liked the old colors. It was distinct and easily recognizable... but I guess this is fine too. Let's just not make this bigger than it needs to be. I changed the dimensions back. Rocket000 (talk) 09:38, 27 February 2010 (UTC)

Well, you may do the same with Template:Taken with, so they'll look alike. Lipedia (talk) 22:32, 27 February 2010 (UTC)

Thanks, I forgot about that. Rocket000 (talk) 02:50, 28 February 2010 (UTC)

Design (part2)[edit]

I was wondering where those 'created with' based templates should be placed in the image? Inside the information description? outside of it? In the second case, would such rendering (with an optional syntax) possible?

Software used Inkscape logo 2.svg

This vector image was created with Inkscape.

Esby (talk) 00:41, 18 June 2011 (UTC)

Possible with {{Information|Other fields={{Information field|name=Software used|value={{Created with Inkscape|2=v}}}}}},
or shorter (for copying)   |Other fields={{InFi|Software used|{{Inkscape|v}}}}
or everywhere inside or outside the information description just   {{InFi|Software used|{{Inkscape|v}}}}

  sarang사랑

Remove width:100%[edit]

The width:100% is causing layout glitch when there is an object floating to left preceding this template as shown below:}

Left-floating object
{{Created with}} width=100 (was default)

This results in this template exceeding the browser's width and causing the horizontal scroll bar to appear which is visually disturbing. A common issue with {{SimplSVG}} when parameter {{{1}}} is properly applied. -- Sameboat - 同舟 (talk) 03:51, 2 April 2014 (UTC)

Width default is now 90%[edit]

The width, now defaulted with 90%, is individually adjustable with any value.

Some examples for now possible widths:
Left-floating object
{{Created with}} width=90% (now default) ... seems to fit enough in most cases
Left-floating object
{{Created with|width=88%}} width=88%
Left-floating object
{{Created with|width=80%}} width=80%
Left-floating object
{{Created with|width=60%}} width=60%
Left-floating object
{{Created with|width=4%0}} width=40%
Left-floating object
{{Created with|width=22.75px}} width=22.75px   (will need 3 lines)
Left-floating object
{{Created with|width=200%}} width=200% to show a very very long box
Width example (a)
{{Created with|width=auto}} width=auto
Width example (b)
{{Created with|width=}} width=

It will work properly as soon as all the templates using {{Created with}} pass the width value through to the final sub-template. It will need an admins help because most of the templates are blocked. sarang사랑 07:49, 4 April 2014 (UTC)

Please edit all sub-templates like {{Created with/en}} as well. -- Sameboat - 同舟 (talk) 08:05, 4 April 2014 (UTC)
OK now. -- Sameboat - 同舟 (talk) 23:11, 5 April 2014 (UTC)

Current situation[edit]

() Because the change in the protected template was from width=100%; to width={{{width|90}}}%; and not to the suggested width={{{width|90%}}}; it is only possible to overwrite the 90 from outside; the other possibilities for width: auto (which is the default, if not inherited), a length specification (with e.g. px, em, mm), initial or inherit cannot be used. As a fact, any invalid value for the percentage, e.g. non-numeric values, change to the default which is auto. This is demonstrated in the above "Width example (a)" where the final setting is not width=auto but the wrong width=auto%. The second try "Width example (b)" should set to width= (the default) but sets to width=% which is invalid and sets therefore also to the auto default.

In {{Created with/en}} the setting is currently |width= instead of |width=, that means that the parameter settings cannot be passed through: no matter what is done outside, the final width is always auto. This is not the intended option.

I think we can live with the situation in {{Created with}}; but the change in the {{Created with/en}}/{{Created with/it}} needs correction to accept the settings. Best would be:

  • width={{{width|90%}}}; or
  • width={{{width|}}}; (gives "auto" if not overwritten)
  • the possibility to overwrite the default value in the templates using "Created with"
The chain is e.g.
  1. {{Created with Inkscape}}, width can be set   {{Autotranslate}} gets it with |5={{{width|}}}
  2. {{Created with Inkscape/en}}, width is passed   from {{Autotranslate}} via |width={{{5|}}}
  3. {{Created with/en}}, width is passed   with |width={{{width|}}}
  4. {{Created with}}: if any width is passed it is used   with |width={{{width|}}}, automatically the default is taken

Currently {{Created with/en}} does not pass any value but sets to auto, which gives finally the invalid width=% in {{Created with}}.

Required situation[edit]

Once again:

Because the mentioned 6 templates are protected only an admin can edit them. Other templates using "Created with" are maintainable by unprivileged editors. sarang사랑 08:46, 5 April 2014 (UTC)

Hmm... you mean such a thing? -- SERGIO (aka the Blackcat) 22:53, 5 April 2014 (UTC)
Yes, this looks fine. I tried to explain better what should be altered in each of the protected templates. If you like it more, I can provide at another place the complete sources for the different templates, then you can just copy&past the whole content, and do not need to check all the details. How about that? sarang사랑 07:09, 6 April 2014 (UTC)

✓ Done

Expansion needed[edit]

For {{Gnuplot}} we need the code part

  • {{#switch:{{{w3c}}}|I=Invalid SVG c|V=Valid SVG c|C}}

expanded to

  • {{#switch:{{{w3c}}}|I=Invalid SVG c|N=PNG c|V=Valid SVG c|C}}

sarang사랑 09:11, 12 July 2014 (UTC)

{{Edit request|technical}} User: Perhelion06:11, 13 July 2014 (UTC) ✓ Done Rillke

Final dot[edit]

It is possible to add some more text to the generated localized output text. To do this, the additional text is passed with the parameter more= from the first to the last template.
To have the possibility to add this text string before the final dot (the full stop or period), the solution is a bit complicated.

1: Parameter more= can get any value, default is the simple dot ".", and is passed as parameter 4.
If the more= option is used, the output of the dot is suppressed, and it can be added with the more= text string:
Normally it starts with a separator to the preceeding text, and ends with the final dot;
A continuation to the generated text can be like " (case 1)." or "-case 2" or ". See xyz."
2: The second template can add some more text inbetween, as is done in {{Created with Inkscape/lc}}, and passes it.
3: {{Created with/lc}} generates the final text without dot, and closes it with the value of more (just the default "." or any more complicated layout - ending with the dot)
4: {{Created with}} performs the output of this text.

The more-text can be as well localized (nationalized). sarang사랑