User talk:Mathglot/sandbox/Templates/view count

Latest comment: 1 month ago by Mathglot in topic Pretty print

Pretty print

edit

This is working, but should it ever need adjustment, this pretty-printed version may help. Note that although some parts of this reindentation could be implemented in the code with careful addition of <-- comment delimiters -->, some of the pattern replacement stuff cannot.

Indented code
{{Array|count
  |{{str rep
     |1=
       {{#invoke:String|replace
         |source=
           {{#invoke:String|replace
             |source={{{{{1|<noinclude>Talk:Liberation of France/pageviews</noinclude>}}}}}
             |pattern=^Date,"[^"]+"
             |replace=
             |plain=false
           }}
         |pattern=.?202%d%-%d%d%-%d%d
         |replace=
         |plain=false
       }}
     |2=,
     |3=
   }}
  |,
}}

Mathglot (talk) 04:32, 13 September 2024 (UTC)Reply