Jump to content
Toggle menu
  • 8 articles
  • 75 files
  • 7 users
  • 37.8K edits
Neodyland Wiki
Toggle preferences menu
Toggle personal menu
Not logged in
Your IP address will be publicly visible if you make any edits.

Template:F/layout: Difference between revisions

Template page
m necessary diversification
m Protected "Template:F/layout": Widely used template ([Edit=Allow only template editors and administrators] (indefinite) [Move=Allow only template editors and administrators] (indefinite))
 
(13 intermediate revisions by 7 users not shown)
Line 4: Line 4:
-->|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
-->|x={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!--
-->|x={{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!--
-->|u={{#if:{{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!--
-->|u={{#if:{{Validextension|{{{1}}}|{{#invoke:File|woExtension|file={{{1}}}}}|ext}}<!--
Line 10: Line 12:
-->|g={{#ifeq:{{{2}}}|-<!--
-->|g={{#ifeq:{{{2}}}|-<!--
-->|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}}
-->|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}}
|1=<center>File:{{{1}}}</center><!-- {{F|filename|-|G|px}}      with centering -->
|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 18:
}}
}}
|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}}
|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}}
|1=<center>{{{2|}}}</center><!--  {{F|filename|caption|G|px}}  with centering -->
|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|}}}</center>}}<!--  {{F|filename|G|px}}        with centering 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}}<!--   default width
-->|heights={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|h}}|120}}
-->|heights={{#if:{{{4|}}}|{{#invoke:Galeria|converse|{{{4}}}|h}}|120}}
}}}}<!-- end 'g'  
}}}}<!-- end 'g'  
Line 29: Line 31:
-->|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 37:
   -->{{#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}}}}}<!--


Line 50: Line 52:
   -->[[:{{#if:{{{l|}}}|{{{l}}}:}}File:{{{1}}}<!--
   -->[[:{{#if:{{{l|}}}|{{{l}}}:}}File:{{{1}}}<!--
  -->|{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:}}<!--
  -->|{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:}}<!--
  -->{{#switch:{{{2|}}}|b|l|r|+|-|={{{1}}}|{{{2}}}}}]]<!--
  -->{{#switch:{{{2|}}}|b|l|n|r|u|+|-|={{{1}}}|{{{2}}}}}]]<!--
  -->{{#if:{{{l|}}}|</span>}} }}<!--fxus
  -->{{#if:{{{l|}}}|</span>}} }}<!--fxus
   -->|<span style="font-weight:900;background:#FF8;color:#F00"> ''no name<!--
   -->|<span style="font-weight:900;background:#FF8;color:#F00"> ''no name<!--
Line 57: Line 59:


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  
:performs display of the file name (2{{exp|nd}} name as given, without <small><tt>PAGENAME:</tt></small>)
:performs display of the file name (2{{exp|nd}} name as given, without <small><code>PAGENAME:</code></small>)
: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/sandbox|Template talk:F}}
{{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:Miscellaneous subtemplates]]
[[Category:Subtemplates]]
</noinclude>
</noinclude>
Cookies help us deliver our services. By using our services, you agree to our use of cookies.