Vorlage:Infobox film/short description: Unterschied zwischen den Versionen

Aus skandinavien-wiki.net
(simplicity?)
(add secondary check to see if the "released" code and the "country" code actually return values in order to decided whether to capitalize "film" in the short description. It should be capitalized when it is on its own. This would probably work better in Lua.)
Zeile 1: Zeile 1:
{{#if:{{Has short description}}
{{#if:{{Has short description}}
|<!--Do nothing-->
|<!--Do nothing-->
|{{short description|1={{#if:{{{released|}}}|{{#invoke:String|match|{{{released}}}|%d%d%d%d?|match=1|nomatch=}}}} {{#if:{{{country|}}}|{{Country2nationality|{{#invoke:String2 |split |txt={{{country|}}} |sep=[<{;] |plain=false}}}}}} {{#if:{{{released|}}}{{{country|}}}|film|Film}} }}
|{{short description|1=<!--return year and nationality for most articles-->{{#if:{{{released|}}}|{{#invoke:String|match|{{{released}}}|%d%d%d%d?|match=1|nomatch=}}}} {{#if:{{{country|}}}|{{Country2nationality|{{#invoke:String2 |split |txt={{{country|}}} |sep=[<{;] |plain=false}}}}}} <!--Test to see if released returns a year and country returns a nationality to decide whether to capitalize "film"-->{{#if:{{#if:{{{released|}}}|{{#invoke:String|match|{{{released|}}}|%d%d%d%d?|match=1|nomatch=}}}}{{Country2nationality|{{#invoke:String2 |split |txt={{{country|}}} |sep=[<{;] |plain=false}}}}|film|Film}}  
}}<noinclude><!--
<!--close short description template-->}}
<!--close first if statement -->}}<noinclude><!--


Text above is essentially {{short description| <year> <country> film}}
Text above is essentially {{short description| <year> <country> film}}

Version vom 31. Januar 2022, 01:36 Uhr

Template-info.png Dokumentation für die Vorlage {{Infobox film/short description}}[Ansicht] [Bearbeiten] [Versionsgeschichte] [Aktualisieren]
Für die Vorlage {{Infobox film/short description}} gibt es noch keine Dokumentation. Du kannst sie aber anlegen.
Hinweise