「テンプレート:F/name」の版間の差分

提供:脳科学辞典
ナビゲーションに移動 検索に移動
(1版)
 
bsd>Sarang
(expansion)
5行目: 5行目:
-->|f={{Validextension|{{PAGENAME:{{{1}}}}}|{{#invoke:File|woExtension|file={{PAGENAME:{{{1}}}}}}}}}<!--
-->|f={{Validextension|{{PAGENAME:{{{1}}}}}|{{#invoke:File|woExtension|file={{PAGENAME:{{{1}}}}}}}}}<!--
-->|x={{Validextension|{{PAGENAME:{{{1}}}}}|{{#invoke:File|woExtension|file={{PAGENAME:{{{1}}}}}}}|ext}}<!--
-->|x={{Validextension|{{PAGENAME:{{{1}}}}}|{{#invoke:File|woExtension|file={{PAGENAME:{{{1}}}}}}}|ext}}<!--
-->|i={{#invoke:File|fileExists|file={{PAGENAME:{{{1}}}}}}}<!--
-->|u={{#if:{{Validextension|{{PAGENAME:{{{1}}}}}|{{#invoke:File|woExtension|file={{PAGENAME:{{{1}}}}}}}|ext}}<!--
-->|{{#invoke:File|csExtension|file={{PAGENAME:{{{1}}}}}}}|{{{2|png}}}}}<!--  return extension as-it-is, or "png"
 
 
-->|g={{#if:{{{4|}}}{{#switch:{{{2}}}|-|+=1}}|{{#tag:gallery<!--  more "gallery" parameters (with #tag:)
-->|{{#switch:{{{2}}}|-=|+=showfilename="1"|{{{2|}}}}}    <!--{{F|filename|G|+| | | }}
-->|{{#if:{{{4|}}}|mode="<!--
-->{{#ifeq:{{{4}}}|+|nolines|{{{4|}}}}}"}} <!--{{F|filename|G| |+| | }}
-->|{{#if:{{{5|}}}| caption="{{{5}}}"}}<!--
-->|{{#if:{{{6|}}}| perrow="{{{6}}}"}}><!--
  -->{{PAGENAME:{{{1}}}}}}}<!--
 
-->|{{#ifeq:{{{2}}}|-<!--
-->|{{#tag:gallery|{{{1}}}{{!}}{{#switch:{{{Y}}}
|1=<center>File:{{PAGENAME:{{{1}}}}}</center><!-- {{F|filename|-|G}}        with centering -->
|2=File:{{PAGENAME:{{{1}}}}}}}}}<!--              {{F|filename|G|-}}        without centering -->
|{{#tag:gallery|{{{1|n.n.}}}{{!}}{{#switch:{{{Y}}}
|1=<center>{{{2|}}}</center><!--                  {{F|filename|caption|G}}  with centering -->
|2={{{2|}}}<!--                                  {{F|filename|G|caption}}  without centering -->
|5=<center>{{PAGENAME:{{{1}}}}}</center><!--      {{F|filename|G}}          with centering -->
}}}}}}}}<!-- end 'g'
 
 
-->|i={{#invoke:File|fileExistsRelaxed|file={{PAGENAME:{{{1}}}}}}}<!--
-->|s={{#invoke:File|size|file={{PAGENAME:{{{1}}}}}}}<!--
-->|s={{#invoke:File|size|file={{PAGENAME:{{{1}}}}}}}<!--
-->|h={{#invoke:File|height|file={{PAGENAME:{{{1}}}}}}}<!--
-->|h={{#invoke:File|height|file={{PAGENAME:{{{1}}}}}}}<!--
-->|w={{#invoke:File|width|file={{PAGENAME:{{{1}}}}}}}<!--
-->|w={{#invoke:File|width|file={{PAGENAME:{{{1}}}}}}}<!--
-->|v=0<!--
-->|v={{#invoke:File|valid|file={{PAGENAME:{{{1}}}}}}}<!--
-->|p={{PAGESIZE:File:{{PAGENAME:{{{1}}}}}}}<!--
-->|p={{PAGESIZE:File:{{PAGENAME:{{{1}}}}}}}<!--
-->|n={{#switch:{{{2|}}}|n|b|l|={{#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}}}}}}}<!--


-->|{{#switch:n|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--  
-->|{{#switch:n|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--  no 'Y':
-->{{#switch:{{{2|}}}|n|b|l|={{#if:{{{1|}}}|{{PAGENAME:{{{1}}}}}<!--
  -->{{#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}}}}}<!--
  -->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}<!--
  -->|<span style="font-weight:900;background:#FF8"> no name </span>}}|{{{2}}}}}<!--


-->|{{#if:{{{1|}}}|{{#if:{{{l|}}}|<span style="border:1px dotted #FC0;padding:0 4px">}}<!--
-->|{{#if:{{{1|}}}|{{#if:{{{l|}}}|<span style="border:1px dotted #FC0;padding:0 4px">}}<!--
  -->[[:{{#if:{{{l|}}}|{{{l}}}:}}File:{{PAGENAME:{{{1}}}}}|{{#switch:{{{2|}}}|b|l|={{PAGENAME:{{{1}}}}}|{{{2}}}}}]]<!--
  -->{{#switch:-|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=<!--
  -->{{#if:{{{l|}}}|</span>}}<!--
  -->{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=|File:}}}}<!--
    -->{{#switch:{{{1}}}|F|X|U|S={{#switch:{{{1}}}<!--  NAMESPACENUMBER=6
      -->|F={{Validextension|{{PAGENAME}}|{{#invoke:File|woExtension|file={{PAGENAME}}}}}}<!--
      -->|X={{Validextension|{{PAGENAME}}|{{#invoke:File|woExtension|file={{PAGENAME}}}}|ext}}<!--
      -->|U={{#if:{{Validextension|{{PAGENAME}}|{{#invoke:File|woExtension|file={{PAGENAME}}}}|ext}}<!--
          -->|{{#invoke:File|csExtension|file={{PAGENAME}}}}|none}}<!--
      -->|S={{#invoke:File|size|file={{PAGENAME}}}}<!--
    -->}}|<!--
  -->[[:{{#if:{{{l|}}}|{{{l}}}:}}File:{{PAGENAME:{{{1}}}}}<!--
-->|{{#switch:+|{{{2}}}|{{{3}}}|{{{4}}}|{{{5}}}|{{{6}}}|{{{7}}}|{{{8|}}}=File:}}<!--
-->{{#switch:{{{2|}}}|b|l|r|+|-|={{PAGENAME:{{{1}}}}}|{{{2}}}}}]]<!--
  -->{{#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<!--
   -->{{#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>}}}}}}}}</includeonly><noinclude>
   --></span>}} }}}} }}</includeonly><noinclude>


Subtemplate to {{Tl|F}}, invoked from either of 5 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><tt>PAGENAME:</tt></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}}
Special function: just parameter 1 is F,X,U,S: like File Function Letter for <nowiki>{{PAGENAME}}</nowiki>
[[Category:Miscellaneous subtemplates]]
[[Category:Miscellaneous subtemplates]]
</noinclude>
</noinclude>

2019年11月16日 (土) 01:46時点における版


Subtemplate to {{F}}, invoked from either of 6 positions but only once

performs display of the file name (2テンプレート:Exp 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

テンプレート:Heavily used template/sandbox Special function: just parameter 1 is F,X,U,S: like File Function Letter for {{PAGENAME}}