Template talk:Videos from country by year

From Wikimedia Commons, the free media repository
Jump to navigation Jump to search

Could use Module:String to get rid of all parameters

[edit]
{{{1}}} = {{subst:#invoke:String|sub|{{subst:PAGENAME}}|21|{{subst:#expr:{{subst:#invoke:String|len|{{subst:PAGENAME}}}}}}}}

{{{2}}} = {{subst:#invoke:String|sub|{{subst:PAGENAME}}|11|13}}

{{{3}}} = {{subst:#invoke:String|pos|{{subst:PAGENAME}}|14}}

@Gone Postal: would you prefer this? :)--RZuo (talk) 17:42, 28 August 2020 (UTC)[reply]

  • The probem is that we would be doing that again and again, won't we? I did try doing recursion before: If 1st parameter is empty call the same template but with the params from the name, but Commons does not allow such an approach. ℺ Gone Postal ( ) 17:47, 28 August 2020 (UTC)[reply]
ahh you're right. it's gonna call the same function tens of times because of the multilingual descriptions we put in. not a good idea. maybe writing a module for this would be better...--RZuo (talk) 18:06, 28 August 2020 (UTC)[reply]
@Gone Postal: i found a solution to this problem, by putting the original template at Template:Videos from country by year/layout and calling this template in the main one, so the module is only invoked once at the main and fed to the layout template. :) RZuo (talk) 12:28, 20 October 2022 (UTC)[reply]

Re-code for flag display

[edit]

the current design has a problem. many countries have changed their flags some point in history. some countries underwent political changes, so it's wrong to use the current flag for historical states/periods. RZuo (talk) 12:34, 9 May 2022 (UTC)[reply]