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

       Web browser: ---
             Bug #: 31995
           Summary: PPFrame::getTitle
           Product: MediaWiki
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Unprioritized
         Component: Parser
        AssignedTo: [email protected]
        ReportedBy: [email protected]
    Classification: Unclassified


Let us make frame title available through method getTitle. It allows parser
functions to access title of current frame. It makes possible magic words or
parser functions which know the name of current frame, like {{SRCNAME}}
(discussed in 24284). In turn, {{SRCNAME}} makes possible "template-scope"
variables, e. g. {{ #vardefine: {{SRCNAME}}:i }}, {{ #var: {{SRCNAME}}:i }}. It
also makes possible extensions which does the same even more gracefully: {{
#localdefine: i }}, {{ #local: i }}. (localdefine, local are parser function
which set/get "template-scope" variables; I wrote "template-scope" in
parentheses because these variables are available outside by using "full" name:
{{ #var: Templatename:i }}.)

-- 
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

Reply via email to