Template:Sandbox/vva
Jump to navigation
Jump to search
Complete source codings for templates
[edit]for copy/paste the 3 protected templates
{{#invoke:Autotranslate|autotranslate |1={{#invoke:StripFilename|main|{{#if:{{{1<includeonly>|</includeonly>}}}|{{{1|Example}}}|{{PAGENAME}}}}}}.svg |2={{#if:{{{2|}}}|{{#invoke:StripFilename|main|{{{2}}}}}.svg}} |3={{#if:{{{3|}}}|{{#invoke:StripFilename|main|{{{3}}}}}.svg}} |4={{#expr:1+{{#if:{{{2|}}}|1|0}}+{{#if:{{{3|}}}|1|0}}}} |5={{#if:{{{2|}}}{{{3|}}}||{{#switch:{{{quality}}}|s|superior=s|i|inferior=i}}}} |6={{{reason|}}} |base=Vector version available}}<noinclude> {{Documentation}} </noinclude>
{{Vector version available/en}}
{{Vector version available/layout |1={{{1<noinclude>|Example.svg</noinclude>}}} |2={{{2|}}} |3={{{3|}}} |5={{{5|}}} |6={{{6|}}} |imageExists={{PLURAL:{{{4|1}}}|[[:File:{{{1}}}]] is a vector version of this file|Several vector versions of this file are available}}. |imageNeutral={{PLURAL:{{{4|1}}}|It|These}} should be used in place of this raster image when not inferior. |imageSuperior=It should be used in place of this raster image. |imageInferior=It has been marked as inferior to this raster image. |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 |reason=reason |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;border-spacing:8px;{{#switch:{{{5}}} |s=background:#f7fff8;border:2px solid #55b480 |i=background:#fffaed;border:2px solid #b48055 |background:#f7f8ff;border:2px solid #5580b4}}" | [[File:Gnome-x-office-drawing.svg|70px|link=]] |{{lang|{{{lang|}}}|{{{imageExists}}} <!-- -->{{#ifeq:{{#ifexist:File:{{{1|<noinclude>Example.svg</noinclude>}}}|1|0}}{{#if:{{{2|}}}|{{#ifexist:File:{{{2}}}|1|0}}|1}}{{#if:{{{3|}}}|{{#ifexist:File:{{{3}}}|1|0}}|1}}|111<!-- -->|{{#switch:{{{5}}} |s={{{imageSuperior|}}}{{#ifeq:{{NAMESPACE}}|File|[[Category:Superior vector version available]]}} |i={{{imageInferior|This file was marked as inferior.}}}{{#ifeq:{{NAMESPACE}}|File|[[Category:Inferior vector version available]]}} |{{{imageNeutral|}}}{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available]]}} }} {{#if:{{{6|}}}|({{{reason|reason}}}: ''{{{6}}}'')}}<!-- -->|<p class="error">{{{imageDoesNotExist|Image does not exist}}}{{#ifeq:{{NAMESPACE}}|File|[[Category:Vector version available/error]]}}</p>}}<!-- -->}}{{Clr}} ---- <div style="margin-left:auto;margin-right:auto;text-align:center;font-size:90%">File:{{PAGENAME}} [[File:Go-green.svg|link=|12px|middle]] {{#if:{{{2|}}}{{{3|}}}| <div style="display:inline-block;vertical-align:middle">[[:File:{{{1}}}]]{{#if:{{{2|}}}|<br/>[[:File:{{{2}}}]]}}{{#if:{{{3|}}}|<br/>[[:File:{{{3}}}]]}}</div> |[[:File:{{{1}}}]]}}</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={{#if:{{{2|}}}{{{3|}}}<!-- -->|{{Version image/display|{{{1}}}|label={{{svgImageLabel}}}|br=}}<!-- -->{{Version image/display|{{{2|}}}|label={{{svgImageLabel}}}}}<!-- -->{{Version image/display|{{{3|}}}|label={{{svgImageLabel}}}}}<!-- -->|{{Version image/display|{{{1}}}|label={{{svgImageLabel}}}|size=150x150px|br=}} }}|notes=none}} |} {{LayoutTemplateArgs|template=Vector version available|args= {{urlencode: 1={{{1|}}} }} {{urlencode: 2={{{2|}}} }} {{urlencode: 3={{{3|}}} }} }} </div><noinclude> [[Category:Marker templates]] </noinclude>