Template:image12: Difference between revisions

From Thesaurus Inscriptionum Raeticarum
Jump to navigationJump to search
No edit summary
 
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).]]


=== Usage ===
=== Parameters ===
*Use the image file name as parameter. The prefix (i.e. namespace) <code>File:</code> will be ignored.
#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).


=== Example ===
=== 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 08:53, 10 June 2020

This template serves to display images with the height of text lines (i.e. 12px).

Parameters

  1. Image file name. The prefix (i.e. namespace) File: will be ignored.
  2. Value for the title attribute (optional).
  3. A page to be linked to (optional).

Examples

  • {{image12|A.png}} will be displayed as A.png.
  • {{image12|File:A.png}} will be displayed as A.png.
  • {{image12|A.png|character A}} will be displayed as character A.
  • {{image12|A.png||A}} will be displayed as A.png.
  • {{image12|A.png|go to A|A}} will be displayed as go to A.

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

Venetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabetVenetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabetVenetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabetVenetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabetVenetic alphabet, Magrè alphabet, Sanzeno alphabet, Lugano alphabet