Update talkpage notice template

Exact date is not necessary and end could be ommited if of the same
month

Related Task: [https://fs.golderweb.de/index.php?do=details&task_id=93 FS#93]
This commit is contained in:
2016-08-30 12:07:11 +02:00
parent c19f642d11
commit 8c56125a7b

View File

@@ -554,12 +554,13 @@ class RedFamWorker( RedFam ):
param_cnt += 1 param_cnt += 1
# Add begin # Add begin
template.add( "Beginn", self._mysql.data[ 'beginning' ].strftime( begin = self._mysql.data[ 'beginning' ].strftime( "%B %Y" )
"%d. %B %Y").lstrip("0"), True ) template.add( "Beginn", begin, True )
# Add end # Add end (if not same as begin)
template.add( "Ende", self._mysql.data[ 'ending' ].strftime( end = self._mysql.data[ 'ending' ].strftime( "%B %Y" )
"%d. %B %Y").lstrip("0"), True ) if not end == begin:
template.add( "Ende", end, True )
# Add link to related reddisc # Add link to related reddisc
template.add( "Diskussion", self.get_disc_link(), True ) template.add( "Diskussion", self.get_disc_link(), True )