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

           Summary: Feature Request: Support CSS Annotations in HTML
           Product: MediaWiki extensions
           Version: any
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: enhancement
          Priority: Normal
         Component: Semantic MediaWiki
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


This is a request to include CSS markup in the HTML output of property-tagged
text.

The are many implementation possibilities. I propose the following.

Let's keep it simple and assume a 1:1 relationship between each property and
its resulting CSS class.

Introduce a flag on property pages to enable this functionality on a
property-by-property basis.

The following, for example, would appear on a property page called
"SomeProperty".
    CSS="p" [*]

SMW would process the following...
    [[SomeProperty::This text is tagged with the "SomeProperty" property.]]

And would output...
    <p class="SomeProperty">This text is tagged with the "SomeProperty"
property.</p>


----------- Another Example for Clarification -----------

On a property page titled "AnotherProperty"
    CSS="h1"

SMW would process the following...
    [[AnotherProperty::Important Heading Information]]

And would output...
    <h1 class="AnotherProperty">Important Heading Information</h1>

A user could then update the CSS appropriately and invoke style information as
desired on all SMW content.

[*] I realize some HTM/CSS purists may cringe at the nomenclature, but it is
succinct and the resulting HTML is clean.

Thanks!


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

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

Reply via email to