Template:F/layout: Difference between revisions
Template page
More actions
m typo |
obs tag |
||
| Line 10: | Line 10: | ||
-->|g={{#ifeq:{{{2}}}|-<!-- | -->|g={{#ifeq:{{{2}}}|-<!-- | ||
-->|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}} | -->|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}} | ||
|1=<center>File:{{{1}}}</ | |1=<div class="center">File:{{{1}}}</div><!-- {{F|filename|-|G|px}} with centering --> | ||
|2=File:{{{1}}}}}<!-- {{F|filename|G|-|px}} without centering --> | |2=File:{{{1}}}}}<!-- {{F|filename|G|-|px}} without centering --> | ||
|widths={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|w}}|120}}<!-- | |widths={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|w}}|120}}<!-- | ||
| Line 16: | Line 16: | ||
}} | }} | ||
|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}} | |{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}} | ||
|1=<center>{{{2|}}}</ | |1=<div class="center">{{{2|}}}</div><!-- {{F|filename|caption|G|px}} with centering --> | ||
|2={{{2|}}}<!-- {{F|filename|G|caption|px}} without centering --> | |2={{{2|}}}<!-- {{F|filename|G|caption|px}} without centering --> | ||
|5=<center>{{{5|}}}</ | |5=<div class="center">{{{5|}}}</div>}}<!-- {{F|filename|G|px}} with centering 5 --> | ||
|widths={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|w}}|120}}<!-- | |widths={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|w}}|120}}<!-- | ||
-->|heights={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|h}}|120}} | -->|heights={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|h}}|120}} | ||
Revision as of 06:22, 11 June 2021
Subtemplate to {{F}}, invoked from either of 6 positions but only once
- performs display of the file name (2nd name as given, without PAGENAME:)
- Parameters: 1, 2, 3, 4, 5, 6, 7, 8; l; internal: Y
- When parameter 1 is missing, categorizing to Commons:Missing file name in template F occurs
Special function: just parameter 1 is F,X,U,S: like File Function Letter for {{PAGENAME}}