Toggle menu
Toggle preferences menu
Toggle personal menu
Not logged in
Please sign up or log in to edit the wiki.

View source for Module:Mw.html extension/doc

From the Star Citizen Wiki, the fidelity™ encyclopedia

You do not have permission to edit this page, for the following reason:

The action you have requested is limited to users in one of the groups: Users.
Sign up or Log in to edit a page.
The Star Citizen Wiki is made by people like you! Anyone can edit and improve any pages.

You can view and copy the source of this page.

{{Documentation}}
{{Helper module
|name = Mw.html extension

|fname1 = addClassIf(cond, class)
|ftype1 = boolean, string
|fuse1 = If <code>cond</code> = <code>true</code> it behaves the same as the normal <code>addClass</code> function, otherwise it's a no-op. Ex.: <code>mw.html.create('div'):addClassIf(true, 'align-left-1')</code>

|fname2 = attrIf(cond, name, value)
|ftype2 = boolean, string/table, string/nil
|fuse2 = Similar to <code>addClassIf</code>

|fname3 = cssIf(cond, name, value)
|ftype3 = boolean, string/table, string/nil
|fuse3 = Similar to <code>addClassIf</code>

|fname4 = doneIf(cond)
|ftype4 = boolean
|fuse4 = Similar to <code>addClassIf</code>

|fname5 = tagIf(cond, tag)
|ftype5 = boolean, string
|fuse5 = Similar to <code>addClassIf</code>

Return to Module:Mw.html extension/doc.