https://bugzilla.wikimedia.org/show_bug.cgi?id=24182
Summary: Trimming or removing all whitespace from templates is
useful
Product: MediaWiki
Version: unspecified
Platform: All
OS/Version: All
Status: NEW
Severity: enhancement
Priority: Normal
Component: Templates
AssignedTo: [email protected]
ReportedBy: [email protected]
Created an attachment (id=7532)
--> (https://bugzilla.wikimedia.org/attachment.cgi?id=7532)
Diff between r68758 and my changes.
When you have a template that just sets some configuration or inserts a div,
for example, it is often nice to leave lots of whitespace in the wiki code for
readability. However, this will often affect the layout of the calling page.
Two new parser functions have been proposed to help deal with this issue
(although there could be many different ways to deal with it).
<!-- Trim the whitespace from before and after
the text returned by 'template' -->
{{#trim: {{template}} }}
<!-- Remove *all* the whitespace from within
the text returned by 'template' -->
{{#nospaces: {{template}} }}
Attached is a diff that adds these two parser functions to the cleverly named
ParserFunctions extension.
--
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 on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l