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:F: Difference between revisions

Template page
m expansion
m expansion
Line 1: Line 1:
<includeonly>{{#ifeq:{{{5|}}}|x|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}|[[:{{#if:{{{lang|}}}|{{{lang}}}:}}File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}]]}}{{#if:{{{3|}}}|&nbsp;{{#if:{{{lang|}}}|<small>Can't {{Tl|F|display}} {{{lang}}}:{{{1}}} </small>|[[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px{{#ifeq:{{{4|}}}|b|{{!}}border}}]]}}}}</includeonly><noinclude>
<includeonly>{{#if:{{{3|}}}|{{#switch:l|{{{4}}}|{{{5}}}|{{{6}}}={{#if:{{{lang|}}}|<small>Can't [[Template:F|display]] {{{lang}}}:{{{1}}} </small>|[[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px{{#switch:b|{{{4}}}|{{{5}}}|{{{6}}}={{!}}border}}]]&emsp;}}}}}}{{#switch:x|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}={{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}|[[:{{#if:{{{lang|}}}|{{{lang}}}:}}File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}|{{#if:{{{2|}}}|{{{2}}}|{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}}}]]}}{{#if:{{{3|}}}|{{#switch:l|{{{4}}}|{{{5}}}|{{{6}}}=|&nbsp;{{#if:{{{lang|}}}|<small>''Can't [[Template:F|display]]'' "{{{lang}}}:{{{1}}}" </small>|[[File:{{#if:{{{1|}}}|{{{1}}}|Sample.svg}}{{!}}{{{3}}}px{{#switch:b|{{{4}}}|{{{5}}}|{{{6}}}={{!}}border}}]]}}}}}}</includeonly><noinclude>
<u>Usage:</u> <nowiki>{{</nowiki>F|''file name''}}
<u>Usage:</u> <nowiki>{{</nowiki>F|''file name''}}


Line 5: Line 5:
<small>Because of the ''empty parameter bug'' it does not use the 'pipe trick' but a work-around against that bug.</small>
<small>Because of the ''empty parameter bug'' it does not use the 'pipe trick' but a work-around against that bug.</small>
*If a second parameter is specified, this name is displayed instead of the file name.  
*If a second parameter is specified, this name is displayed instead of the file name.  
*If a third parameter is declared it specifies the px-size, and the file will be displayed inline following the file name<ref name="a">It is not possible to display pictures from other Wikipedias.</ref>
*If a third parameter is declared it specifies the px-size, and the file will be displayed inline following or preceding the file name<ref name="a">It is not possible to display pictures from other Wikipedias.</ref>
*If a fourth parameter is declared with the value "b", the picture is bordered (see 2{{exp|nd}} example).
**If another unnamed parameter is declared with the value "l", the picture is displayed <u>l</u>eft of the name
*If a fifth parameter is declared with the value "x", no link will be generated <small>(as in "other versions" of [[:File:Arrow-C.svg]].)</small>  
**If another unnamed parameter is declared with the value "b", the picture is <u>b</u>ordered (see 2{{exp|nd}} example).
*If an unnamed 3{{exp|rd}} to 6{{exp|th}} parameter is declared with the value "x", no link will be generated <small>(as in "other versions" of [[:File:Arrow-C.svg]].)</small>  
*With the named parameter “lang” any language code can be defined, it establishes interwiki access to a local file<ref name="a"/><references/>
*With the named parameter “lang” any language code can be defined, it establishes interwiki access to a local file<ref name="a"/><references/>


   
   
::Example: {{F|Buddhist flag.svg|''Buddhist flag:''|3=48}} &nbsp;-&nbsp; {{F|Buddhist rainbow flag.svg|''Buddhist flag:''|3=48|4=b}} (bordered)
::Example: {{F|Buddhist flag.svg|''Buddhist flag:''|3=48}} &nbsp;-&nbsp; {{F|Buddhist rainbow flag.svg|''Buddhist flag:''|3=48|4=b|6=l}} (bordered)





Revision as of 12:21, 21 June 2012

Usage: {{F|file name}}

Establishes a link to the file name and displays the file name without the prefix "File:".
Because of the empty parameter bug it does not use the 'pipe trick' but a work-around against that bug.

  • If a second parameter is specified, this name is displayed instead of the file name.
  • If a third parameter is declared it specifies the px-size, and the file will be displayed inline following or preceding the file name[1]
    • If another unnamed parameter is declared with the value "l", the picture is displayed left of the name
    • If another unnamed parameter is declared with the value "b", the picture is bordered (see 2nd example).
  • If an unnamed 3rd to 6th parameter is declared with the value "x", no link will be generated (as in "other versions" of File:Arrow-C.svg.)
  • With the named parameter “lang” any language code can be defined, it establishes interwiki access to a local file[1]
  • 1.0 1.1 It is not possible to display pictures from other Wikipedias.

  • Example: Buddhist flag:   -  Buddhist flag: (bordered)
    Cookies help us deliver our services. By using our services, you agree to our use of cookies.