https://bugzilla.wikimedia.org/show_bug.cgi?id=16332

           Summary: substr parser function
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: ParserFunctions
        AssignedTo: [email protected]
        ReportedBy: [EMAIL PROTECTED]


Created an attachment (id=5524)
 --> (https://bugzilla.wikimedia.org/attachment.cgi?id=5524)
an extra parser function

In some templates, it is useful to be able to do some basic reading of the
string. For example, the cite book template needs to be able to read at least
the last letter of the strings it is passed, so that it can fix output by not
putting a period after a period-ended string (this does appear on several
real-world wiki articles), and the 'best practices' solution is to keep the
period with the citation to be semantically correct, and fix this in the
formatting stages in the template.

Now, if there is a way to do this, I have not yet found it (nor have the cite
book authors), so my patch may be the wrong way/place to do this, but it is a
simple, harmless, generic function that can be trivially wrapped in a template
to do odd little useful things like in the cite book example.


-- 
Configure bugmail: https://bugzilla.wikimedia.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
You are watching all bug changes.

_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to