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

       Web browser: ---
             Bug #: 32657
           Summary: SemanticMediaWiki: ol/ul and map print formats:
                    Inconsistent template arguments
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: Unprioritized
         Component: Semantic MediaWiki
        AssignedTo: [email protected]
        ReportedBy: [email protected]
                CC: [email protected], [email protected]
    Classification: Unclassified


Actual problem in SemanticMaps, but decision should be made on
SemanticMediaWiki level; so I am setting `Component' to `SemanticMediaWiki'.
Later we can change it to `SemanticMaps'.

> {{ #ask: ...
> | mainlabel = -
> | ?Waypoint id
> | ?Location no      
> | ?Location title   
> | ?Coordinates
> | ?Description
> | format     = ol (or `ul' or `template')
> | template   = test
> }}

Template `test' receives arguments:

1 = Waypoint id
2 = Location no
3 = Location title
4 = Coordinates
5 = Description

If I change format to `map', template `test' receives arguments:

1 = Location no
2 = Location title
3 = Description

This makes switching between different type of representation quite hard. I
strongly believe template should receive the exactly same list of positional
arguments regardless of used format. I know that `map' printer handles
Coordinates and passes to template two named arguments `latitude' and
`longitude' -- that's completely ok; but I do not see reason for changing
positional arguments.

If you agree with idea that template should receive the same list of positional
arguments regardless of format, I will try to prepare a patch.

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