Template:F/layout: Difference between revisions
Template page
More actions
m necessary diversification |
m typo |
||
| Line 29: | Line 29: | ||
-->|v={{#invoke:File|valid|file={{{1}}}}}<!-- | -->|v={{#invoke:File|valid|file={{{1}}}}}<!-- | ||
-->|p={{PAGESIZE:File:{{{1}}}}}<!-- | -->|p={{PAGESIZE:File:{{{1}}}}}<!-- | ||
-->|n={{#switch:{{{2|}}}|n|b|l|r|+|-|={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}<!-- | -->|n={{#switch:{{{2|}}}|n|b|l|r|+|-|={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}<!-- | ||
-->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}}}<!-- | -->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}}}<!-- | ||
| Line 35: | Line 35: | ||
-->{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:<!-- | -->{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:<!-- | ||
-->|{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:}}}}<!-- | -->|{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:}}}}<!-- | ||
-->{{#switch:{{{2|}}}|n|b|l|r|+|-|={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}<!-- | -->{{#switch:{{{2|}}}|n|b|l|r|+|-|={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}<!-- | ||
-->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}<!-- | -->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}<!-- | ||
Revision as of 17:05, 7 February 2020
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}}