Template:image12: Difference between revisions
From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
Martin Braun (talk | contribs) No edit summary |
Martin Braun (talk | contribs) No edit summary |
||
(One intermediate revision by the same user not shown) | |||
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]] | |||
|link=none | |||
|?alphabet | |||
|template=image12 | |||
|format=list | |||
|limit=5 | |||
|searchlabel= | |||
}} | |||
</pre> | |||
will be displayed as | |||
{{#ask:[[Category:File]][[alphabet::Venetic alphabet]]|link=none|?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> |
Latest revision as of 07:53, 10 June 2020
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]] |link=none |?alphabet |template=image12 |format=list |limit=5 |searchlabel= }}
will be displayed as