Template:image12: Difference between revisions
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
Line 1: | Line 1: | ||
<noinclude>[[description::This template serves to display images with the height of text lines (i.e. 12px).]] | <noinclude>[[description::This template serves to display images with the height of text lines (i.e. 12px).]] | ||
=== | === Parameters === | ||
#Image file name. The prefix (i.e. namespace) <code>File:</code> will be ignored. | |||
#Value for the title attribute (optional). | |||
#A page to be linked to (optional). | |||
=== | === Examples === | ||
*<code><nowiki>{{image12|A.png}}</nowiki></code> will be displayed as {{image12|File:A.png}}. | *<code><nowiki>{{image12|A.png}}</nowiki></code> will be displayed as {{image12|A.png}}. | ||
*<code><nowiki>{{image12|File:A.png}}</nowiki></code> will be displayed as {{image12|File:A.png}}. | |||
*<code><nowiki>{{image12|A.png|character A}}</nowiki></code> will be displayed as {{image12|A.png|character A}}. | |||
*<code><nowiki>{{image12|A.png||A}}</nowiki></code> will be displayed as {{image12|A.png||A}}. | |||
*<code><nowiki>{{image12|A.png|go to A|A}}</nowiki></code> will be displayed as {{image12|A.png|go to A|A}}. | |||
When used as printout table of inline queries: | |||
<pre> | |||
{{#ask: | |||
[[Category:File]] | |||
[[alphabet::Venetic alphabet]] | |||
|mainlabel=- | |||
|?# | |||
|?alphabet | |||
|template=image12 | |||
|format=list | |||
|limit=5 | |||
|searchlabel= | |||
}} | |||
</pre> | |||
will be displayed as | |||
{{#ask:[[Category:File]][[alphabet::Venetic alphabet]]|mainlabel=-|?#|?alphabet|template=image12|format=list|limit=5|searchlabel=}} | |||
[[Category:Text Module]] | [[Category:Text Module]] | ||
</noinclude><includeonly>{{#vardefine: file|{{#replace: {{{1|}}}|File:|}} }}[[Image:{{#var: file}}|x12px|baseline|{{#var: file}}]]</includeonly> | </noinclude><includeonly>{{#vardefine: file|{{#replace: {{{1|}}}|File:|}} }}[[Image:{{#var: file}}|x12px|baseline|{{#var: file}}|{{{2|}}}|link={{{3|}}}]]</includeonly> |
Revision as of 21:27, 17 May 2016
This template serves to display images with the height of text lines (i.e. 12px).
Parameters
- Image file name. The prefix (i.e. namespace)
File:
will be ignored. - Value for the title attribute (optional).
- A page to be linked to (optional).
Examples
{{image12|A.png}}
will be displayed as .{{image12|File:A.png}}
will be displayed as .{{image12|A.png|character A}}
will be displayed as .{{image12|A.png||A}}
will be displayed as .{{image12|A.png|go to A|A}}
will be displayed as .
When used as printout table of inline queries:
{{#ask: [[Category:File]] [[alphabet::Venetic alphabet]] |mainlabel=- |?# |?alphabet |template=image12 |format=list |limit=5 |searchlabel= }}
will be displayed as
[[Image:A.png|frameless|border|text-top||x12px|baseline|A.png|frameless|border|text-top||Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet|link=]][[Image:A2.png|frameless|border|text-top||x12px|baseline|A2.png|frameless|border|text-top||Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet|link=]][[Image:A2d.png|frameless|border|text-top||x12px|baseline|A2d.png|frameless|border|text-top||Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet|link=]][[Image:A3.png|frameless|border|text-top||x12px|baseline|A3.png|frameless|border|text-top||Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet|link=]][[Image:A3d.png|frameless|border|text-top||x12px|baseline|A3d.png|frameless|border|text-top||Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet|link=]]