Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:Sandbox/vva: Difference between revisions

Template page
m +cat
Update
Line 5: Line 5:
{{Tl|Vector version available}}
{{Tl|Vector version available}}
<pre>
<pre>
<includeonly>{{Autotranslate
{{Autotranslate|1={{#invoke:File|woExtension|file={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|<includeonly>{{PAGENAME}}</includeonly><noinclude>Example</noinclude>}}}}.svg|2={{#invoke:File|woExtension|file={{PAGENAME:{{{2}}}}}}}.svg|3={{#invoke:File|woExtension|file={{PAGENAME:{{{3}}}}}}}.svg|4={{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}|base=Vector version available/sandbox}}<noinclude>
|1={{#invoke:File|woExtension|file={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}}}}.svg
{{Documentation|Template:Vector version available/doc}}
|2={{#invoke:File|woExtension|file={{PAGENAME:{{{2}}}}}}}.svg
|3={{#invoke:File|woExtension|file={{PAGENAME:{{{3}}}}}}}.svg
|4={{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}
|base=Vector version available}}</includeonly><noinclude>
{{Documentation}}
</noinclude>
</noinclude>
</pre>
</pre>
Line 20: Line 15:
<pre>
<pre>
{{Vector version available/layout
{{Vector version available/layout
|1={{{1}}}
|1={{{1<noinclude>|Example.svg</noinclude>}}}
|2={{{2|}}}
|2={{{2|}}}
|3={{{3|}}}
|3={{{3|}}}
Line 26: Line 21:
|imageExists={{PLURAL:{{{4|1}}}
|imageExists={{PLURAL:{{{4|1}}}
|[[:File:{{{1}}}]] is a vector version of this file. It
|[[:File:{{{1}}}]] is a vector version of this file. It
|Several vector versions of this file are available. One of these
|Several vector versions of this file are available. These
}} should be used in place of this raster image when not inferior.
}} should be used in place of this raster image when not inferior.
|imageDoesNotExist=Error: No SVG image by that name exists. Please make sure to use the correct format: {{tlp|Vector version available|''new image name''}}.
|imageDoesNotExist=Error: {{PLURAL:{{{4|1}}}
|No SVG image by that name exists.
|Not all of these images exist.
}} Please make sure to use the correct format: {{tlp|Vector version available|''new image name''}}.
|moreInfo=For more information, see [[Help:SVG]].
|moreInfo=For more information, see [[Help:SVG]].
|svgImageLabel=New SVG image
|svgImageLabel=New SVG image
Line 43: Line 41:
{| style="width:100%;clear:both;margin:0.5em auto;background:#f7f8ff;border:2px solid #5580B4;border-spacing:8px"
{| style="width:100%;clear:both;margin:0.5em auto;background:#f7f8ff;border:2px solid #5580B4;border-spacing:8px"
| [[File:Gnome-x-office-drawing.svg|70px|link=]]
| [[File:Gnome-x-office-drawing.svg|70px|link=]]
|{{lang|{{{lang|}}}|{{#if:{{#iferror:{{#invoke:File|fileExists|file=File:{{{1}}}}}}}|{{{imageExists}}}{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available]]}}|<span class="error">{{{imageDoesNotExist|Image does not exist}}}</span>{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available/error]]}}}}}}{{Clr}}
|{{lang|{{{lang|}}}|{{{imageExists}}}<includeonly>{{#ifeq:{{#iferror:{{#invoke:File|fileExists|file=File:{{{1}}}}}}}{{#iferror:{{#invoke:File|fileExists|file=File:{{{2}}}}}}}{{#iferror:{{#invoke:File|fileExists|file=File:{{{3}}}}}}}|{{#invoke:string|rep|true|{{{n}}}}}|{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available]]}}|<p><span class="error">{{{imageDoesNotExist|Image does not exist}}}</span>{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available/error]]}}</p>}}</includeonly>}}{{Clr}}
----
----
<div style="margin-left:auto;margin-right:auto;text-align:center;font-size:90%">File:{{PAGENAME}} [[File:Gnome-go-next.svg|link=|12px|middle]] {{PLURAL:{{{n|1}}}
<div style="margin-left:auto;margin-right:auto;text-align:center;font-size:90%">File:{{PAGENAME}} [[File:Gnome-go-next.svg|link=|12px|middle]] {{PLURAL:{{{n|1}}}
Line 53: Line 51:
----
----
{{Vector version available/lang}}
{{Vector version available/lang}}
|style="background:transparent;text-align:center;vertical-align:middle" |<div style="{{box-shadow|1px|3px|5px|#888}}" >{{ImageNoteControl
|style="background:transparent;text-align:center;vertical-align:middle" |{{ImageNoteControl
|img=<div class="com-checker">{{PLURAL:{{{n|1}}}
|img={{PLURAL:{{{n|1}}}
|[[File:{{{1}}}|{{{svgImageLabel}}}|150x150px]]
|{{Vector version available/more|{{{1}}}|label={{{svgImageLabel}}}|size=150x150px|br=}}
|[[File:{{{1}}}|{{{svgImageLabel}}}|80x80px]]<br/>[[File:{{{2}}}|{{{svgImageLabel}}}|80x80px]]{{#ifeq:{{{n}}}|3|<br/>[[File:{{{3}}}|{{{svgImageLabel}}}|80x80px]]}}
|{{Vector version available/more|{{{1}}}|label={{{svgImageLabel}}}|br=}}{{Vector version available/more|{{{2}}}|label={{{svgImageLabel}}}}}{{#ifeq:{{{n}}}|3|{{Vector version available/more|{{{3}}}|label={{{svgImageLabel}}}}}}}
}}</div>
}}
|notes=none}}</div>
|notes=none}}
|}
|}
{{LayoutTemplateArgs|template=Vector version available|args=
{{LayoutTemplateArgs|template=Vector version available|args=

Revision as of 13:21, 20 February 2015

Complete source codings for templates

for copy/paste the 3 protected templates


{{Vector version available}}

{{Autotranslate|1={{#invoke:File|woExtension|file={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|<includeonly>{{PAGENAME}}</includeonly><noinclude>Example</noinclude>}}}}.svg|2={{#invoke:File|woExtension|file={{PAGENAME:{{{2}}}}}}}.svg|3={{#invoke:File|woExtension|file={{PAGENAME:{{{3}}}}}}}.svg|4={{#if:{{{3|}}}|3|{{#if:{{{2|}}}|2|1}}}}|base=Vector version available/sandbox}}<noinclude>
{{Documentation|Template:Vector version available/doc}}
</noinclude>


{{Vector version available/en}}

{{Vector version available/layout
|1={{{1<noinclude>|Example.svg</noinclude>}}}
|2={{{2|}}}
|3={{{3|}}}
|n={{{4|1}}}
|imageExists={{PLURAL:{{{4|1}}}
|[[:File:{{{1}}}]] is a vector version of this file. It
|Several vector versions of this file are available. These
}} should be used in place of this raster image when not inferior.
|imageDoesNotExist=Error: {{PLURAL:{{{4|1}}}
|No SVG image by that name exists.
|Not all of these images exist.
}} Please make sure to use the correct format: {{tlp|Vector version available|''new image name''}}.
|moreInfo=For more information, see [[Help:SVG]].
|svgImageLabel=New SVG image
|lang=en
}}<noinclude>
{{translated tag|marker}}
</noinclude>


{{Vector version available/layout}}

<div class="layouttemplate" style="direction: {{Dir|{{{lang|}}}}}">
{| style="width:100%;clear:both;margin:0.5em auto;background:#f7f8ff;border:2px solid #5580B4;border-spacing:8px"
| [[File:Gnome-x-office-drawing.svg|70px|link=]]
|{{lang|{{{lang|}}}|{{{imageExists}}}<includeonly>{{#ifeq:{{#iferror:{{#invoke:File|fileExists|file=File:{{{1}}}}}}}{{#iferror:{{#invoke:File|fileExists|file=File:{{{2}}}}}}}{{#iferror:{{#invoke:File|fileExists|file=File:{{{3}}}}}}}|{{#invoke:string|rep|true|{{{n}}}}}|{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available]]}}|<p><span class="error">{{{imageDoesNotExist|Image does not exist}}}</span>{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available/error]]}}</p>}}</includeonly>}}{{Clr}}
----
<div style="margin-left:auto;margin-right:auto;text-align:center;font-size:90%">File:{{PAGENAME}} [[File:Gnome-go-next.svg|link=|12px|middle]] {{PLURAL:{{{n|1}}}
|[[:File:{{{1}}}]]
|<div style="display:inline-block;vertical-align:middle;">[[:File:{{{1}}}]]<br/>[[:File:{{{2}}}]]{{#ifeq:{{{n}}}|3|<br/>[[:File:{{{3}}}]]}}</div>
}}</div>
----
<span style="font-size:90%">{{lang|{{{lang|}}}|{{{moreInfo}}}}}</span>
----
{{Vector version available/lang}}
|style="background:transparent;text-align:center;vertical-align:middle" |{{ImageNoteControl
|img={{PLURAL:{{{n|1}}}
|{{Vector version available/more|{{{1}}}|label={{{svgImageLabel}}}|size=150x150px|br=}}
|{{Vector version available/more|{{{1}}}|label={{{svgImageLabel}}}|br=}}{{Vector version available/more|{{{2}}}|label={{{svgImageLabel}}}}}{{#ifeq:{{{n}}}|3|{{Vector version available/more|{{{3}}}|label={{{svgImageLabel}}}}}}}
}}
|notes=none}}
|}
{{LayoutTemplateArgs|template=Vector version available|args=
{{urlencode: 1={{{1|}}} }}
}}
</div><noinclude>
[[Category:Layout templates|{{PAGENAME}}]]
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.