Template:F/doc: Difference between revisions
Template page
More actions
m expansion |
m expansion |
||
| Line 2: | Line 2: | ||
{{TemplateBox | {{TemplateBox | ||
|1=1 | |1=1 | ||
|1d=file name: name of the file, with extension | |1d=file name: name of the file, without "File:", with extension | ||
|2=2 | |2=2 | ||
|2d=display name: any text. Default is the file name (par #1) | |2d=display name: any text. Default is the file name (par #1) | ||
| Line 10: | Line 10: | ||
|8d=language code (ISO 639), if the file is in another Wikipedia <ref name="a"/> | |8d=language code (ISO 639), if the file is in another Wikipedia <ref name="a"/> | ||
|4=4 | |4=4 | ||
|4d='''b'''<ref name="b">Any of these parameter values (b, l, n) can be passed in any sequence, each as an argument for one of the parameters either #4, #5 or # | |4d='''b'''<ref name="b">Any of these parameter values (b, l, n, s) can be passed in any sequence, each as an argument for one of the parameters either #4, #5, #6 or #7: <tt><nowiki>{{F|X.jpg||16|b|l|n|s}}</nowiki></tt> is equivalent to <tt><nowiki>{{F|X.jpg||16|l|s|n|b}}</nowiki></tt></ref> (lowercase B) ''to draw a '''''b'''order'' around the displayed picture'' | ||
|5=5 | |5=5 | ||
|5d={{0|.}}'''l'''<ref name="b"/> (lowercase L) ''to display the image'' '''l'''eft ''of the file name | |5d={{0|.}}'''l'''<ref name="b"/> (lowercase L) ''to display the image'' '''l'''eft ''of the file name | ||
|6=6 | |6=6 | ||
|6d='''n'''<ref name="b"/> (lowercase N) ''to display the name '''n'''ot-linking to the file'' | |6d='''n'''<ref name="b"/> (lowercase N) ''to display the name '''n'''ot-linking to the file'' | ||
|7= | |7=7 | ||
|7d= | |7d='''s'''<ref name="b"/> (lowercase S) ''to display the file's '''s'''ize'' | ||
|name=Template:F | |name=Template:F | ||
|desc=<big>Establishes a link to the file whose name is given in par #1 and displays the name without the prefix "File:".</big><br> | |desc=<big>Establishes a link to the file whose name is given in par #1 and displays the name without the prefix "File:".</big><br> | ||
| Line 23: | Line 23: | ||
*Instead of the file name, another name given in par #2 can be displayed. | *Instead of the file name, another name given in par #2 can be displayed. | ||
*It is possible to avoid the link and display only the name of par #1 (or par #2). | *It is possible to avoid the link and display only the name of par #1 (or par #2). | ||
*The file itself (the image) can be displayed | *The file itself (the image) can be displayed at any size inline after the name (or left of it). | ||
*The displayed image can be surrounded by a border. | *The displayed image can be surrounded by a border. | ||
*The size of the file can be displayed. | |||
|namespace=File | |namespace=File | ||
|usergroup=all | |usergroup=all | ||
| Line 45: | Line 46: | ||
{{F|Yes_check.svg||16|l}} left of name <small>(as in "other versions" of [[:File:Symbol unrelated.svg]].)</small> | {{F|Yes_check.svg||16|l}} left of name <small>(as in "other versions" of [[:File:Symbol unrelated.svg]].)</small> | ||
{{F|4=s}} | |||
== Notes == | == Notes == | ||