Template:F/layout: Difference between revisions
Template page
More actions
m expansion |
m Protected "Template:F/layout": Widely used template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite)) |
||
| (3 intermediate revisions by 2 users not shown) | |||
| Line 1: | Line 1: | ||
<includeonly | <includeonly>{{#switch:Z|{{{2}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!-- | ||
-->|{{#if:{{{Y|}}}|{{#switch:{{{3|}}}<!-- | -->|{{#if:{{{Y|}}}|{{#switch:{{{3|}}}<!-- | ||
-->|c={{#invoke:File|pageCount|file={{{1}}}}}<!-- | -->|c={{#invoke:File|pageCount|file={{{1}}}}}<!-- | ||
-->|d={{#invoke:File|dateWorkCreated|file={{{1}}}}}<!-- | -->|d={{#invoke:File|dateWorkCreated|file={{{1}}}}}<!-- | ||
-->|f={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}}}<!-- | -->|f={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}}}<!-- | ||
-->|i={{#ifexist:File:{{{1}}}|1}}<!-- | |||
-->|l=[[:File:{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}]]<!-- like "F" but linked | -->|l=[[:File:{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}]]<!-- like "F" but linked | ||
-->|x={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!-- | -->|x={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!-- | ||
| Line 57: | Line 56: | ||
-->|<span style="font-weight:900;background:#FF8;color:#F00"> ''no name<!-- | -->|<span style="font-weight:900;background:#FF8;color:#F00"> ''no name<!-- | ||
-->{{#ifeq:{{NAMESPACENUMBER}}|10||[[Category:Commons:Missing file name in template F|{{PAGENAME}}]] |.}}''<!-- | -->{{#ifeq:{{NAMESPACENUMBER}}|10||[[Category:Commons:Missing file name in template F|{{PAGENAME}}]] |.}}''<!-- | ||
--></span> | --></span>}} }}}} }}</includeonly><noinclude> | ||
Subtemplate to {{Tl|F}}, invoked from either of 6 positions but only once | Subtemplate to {{Tl|F}}, invoked from either of 6 positions but only once | ||
| Line 63: | Line 62: | ||
:Parameters: 1, 2, 3, 4, 5, 6, 7, 8; l; internal: Y | :Parameters: 1, 2, 3, 4, 5, 6, 7, 8; l; internal: Y | ||
:When parameter 1 is missing, categorizing to {{C|Commons:Missing file name in template F}} occurs | :When parameter 1 is missing, categorizing to {{C|Commons:Missing file name in template F}} occurs | ||
{{Heavily used template | {{Heavily used template|Template talk:F}} | ||
Special function: just parameter 1 is F,X,U,S: like File Function Letter for <nowiki>{{PAGENAME}}</nowiki> | Special function: just parameter 1 is F,X,U,S: like File Function Letter for <nowiki>{{PAGENAME}}</nowiki> | ||
[[Category:Subtemplates]] | [[Category:Subtemplates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 17:48, 28 August 2024
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}}