Template:Sandbox/vva
Template page
More actions
Complete source codings for templates
for copy/paste the 3 protected templates
<includeonly>{{Autotranslate
|1={{#invoke:File|woExtension|file={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}|{{PAGENAME}}}}}}.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}}</includeonly><noinclude>
{{Documentation}}
</noinclude>
{{Vector version available/en}}
{{Vector version available/layout
|1={{{1}}}
|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. One of these
}} 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''}}.
|moreInfo=For more information, see [[Help:SVG]].
|svgImageLabel=New SVG image
|lang=en
}}<noinclude>
[[Category:Layout templates|{{PAGENAME}}]]
</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|}}}|{{#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}}
----
<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" |<div style="{{box-shadow|1px|3px|5px|#888}}" >{{ImageNoteControl
|img=<div class="com-checker">{{PLURAL:{{{n|1}}}
|[[File:{{{1}}}|{{{svgImageLabel}}}|150x150px]]
|[[File:{{{1}}}|{{{svgImageLabel}}}|80x80px]]<br/>[[File:{{{2}}}|{{{svgImageLabel}}}|80x80px]]{{#ifeq:{{{n}}}|3|<br/>[[File:{{{3}}}|{{{svgImageLabel}}}|80x80px]]}}
}}</div>
|notes=none}}</div>
|}
{{LayoutTemplateArgs|template=Vector version available|args=
{{urlencode: 1={{{1|}}} }}
}}
</div>