User:FrozenPlum: Difference between revisions

m
no edit summary
imported>FrozenPlum
m (Add another reminder for when the CSS can be moved to Common.css for hlistattr, hitemattr, listattr, itemattr (this is necessary because its used on so many pages and examples).)
imported>FrozenPlum
mNo edit summary
Line 3:
==Self Reminders==
* '''VERY MUCH NEED''' (because the examples are horrible with them in-line) to move all css styles used in <code>{{DPL|hlistattr}}</code>, <code>hitemattr</code>, <code>listattr</code>, <code>itemattr</code> to MediaWiki:Common.css (with intuitive names, like orange box, blue box, pink box, white box, so they don't need extra explaining). Also, this needs to be in Common.css because it's used across multiple pages and examples (and really shouldn't be edited).
<pre>
* '''MAKE SURE''' when you do the above ^ you also fix the syntax example sections.
.orange-box {
background: #fff3e9;
border: 1px solid orange;
padding: 3px;
}
 
.pink-box {
background-color: #f9dfe3;
border: 1px solid #fe778f;
padding: 3px;
}
 
.blue-box {
background: #e5edf8;
border: 1px solid #6060fb;
padding: 3px;
}
 
.white-box {
background: white;
font-style: italic;
border: 1px solid black;
padding: 3px;
}
</pre>
 
For this:
 
{{#dpl:
|category = Countries in Africa¦Countries in Europe
|ordermethod = category,pagetouched
|headingmode = definition
|mode = ordered
|hlistattr = id="dl-example" style="background: #fff3e9; border: 1px solid orange; padding: 3px;"
|hitemattr = id="list-item-heading" style="background-color: #f9dfe3; border: 1px solid #fe778f; padding: 3px;"
|listattr = id="ol-example" style="background: #e5edf8; border: 1px solid #6060fb; padding: 3px;"
|itemattr = id="li-example" style="background: white; font-style: italic; border: 1px solid black; padding: 3px;"
|count = 3
}}
 
 
Which would also simplify the syntax examples accordingly:
* '''Self-reminder, MAKE SURE''' when you do the above ^ you also fix the syntax example sections.
 
<syntaxhighlight lang="html">
<dl id="dl-example" class="orange-box">
<dt>Category_1</dt>
<dd id="list-item-heading-attrubite" class="pink-box">
<ol id="ol-example" class="blue-box">
<li id="li-example" class="white-box">Page_1</li>
</ol>
</dd>
<dt>Category_2</dt>
<dd id="list-item-heading-attrubite" class="pink-box">
<ol id="ol-example" class="blue-box">
<li id="li-example" class="white-box">Page_2</li>
</ol>
</dd>
</dl>
</syntaxhighlight>
 
-------
 
* Still need to work though [[Special:WantedPages]] to fix or change any of these that should or should not be there.
* The pages for submitting a bug report, installing, getting extension (its MW page, github), giving feedback etc are not here yet and where this all goes might get juggled around depending on UO's feedback.
Anonymous user