Elwiki:Editor Community: Difference between revisions
no edit summary
mNo edit summary |
IceSoulMOG (talk | contribs) No edit summary |
||
(10 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
Any topics regarding editing elwiki goes in here. | __TOC__ | ||
'''Any topics regarding editing elwiki goes in here.''' | |||
==Side Bar and Slow Loading | {{Section | ||
| hStyles=font-size: 1.25em; | |||
| Color0=orange | |||
| Title0=Side Bar and Slow Loading | |||
| Content0= | |||
I'm sure most of you have noticed this by now, but sometimes loading pages when logged in can be painfully slow. Also when submitting pages take ages to load. | I'm sure most of you have noticed this by now, but sometimes loading pages when logged in can be painfully slow. Also when submitting pages take ages to load. | ||
Line 24: | Line 28: | ||
</code> | </code> | ||
Why is this so important? Because switch statements has to be handled on one line and cannot be separated into many. See here for more info ( | Why is this so important? Because switch statements has to be handled on one line and cannot be separated into many. See here for more info ([[MediaWikiWiki:Manual:Interface/Sidebar#Parser_functions_in_sidebar]]) | ||
'''As a result, everytime a page is loaded or saved, all these lines need to be ran each time and therefore can cause slowdowns. The reason why its fast for people not logged in is because it is cached.''' | '''As a result, everytime a page is loaded or saved, all these lines need to be ran each time and therefore can cause slowdowns. The reason why its fast for people not logged in is because it is cached.''' | ||
Line 31: | Line 35: | ||
'''- Kenny''' | '''- Kenny''' | ||
}} | |||
{{Section | {{Section | ||
| | | hStyles=font-size: 1.25em; | ||
| Color0=purple | | Color0=purple | ||
| Title0= | | Title0=Variable and Loop Parser Functions (Extensions) Requirement | ||
| Content0= | | Content0= | ||
I think Variable and Loop parser functions should be added to elwiki. Sometimes, loop and variable define makes benefits when making templates. | I think Variable and Loop parser functions should be added to elwiki. Sometimes, loop and variable define makes benefits when making templates. | ||
Line 52: | Line 55: | ||
Now, no matter what village, their corresponding theme color are set to variable '''Color''', then what you need to do is to pass '''''<nowiki>{{#var:Color}}</nowiki>''''' to the template with Color Settings (such as '''''Section'''''). And, if you what to change color, just change the '''''switch''''' part, and you do not need to change the '''''<nowiki>{{{Village|}}}</nowiki>''''' parameters in every page. | Now, no matter what village, their corresponding theme color are set to variable '''Color''', then what you need to do is to pass '''''<nowiki>{{#var:Color}}</nowiki>''''' to the template with Color Settings (such as '''''Section'''''). And, if you what to change color, just change the '''''switch''''' part, and you do not need to change the '''''<nowiki>{{{Village|}}}</nowiki>''''' parameters in every page. | ||
'''Thank you if anyone can notice this.''' | '''Thank you if anyone can notice this.''' | ||
'''-[[User:boxsnake|boxsnake]]''' '''''([[User_talk:Boxsnake|Talk]])''''' | |||
}} | |||
{{Section | |||
| hStyles=font-size: 1.25em; | |||
| Color0=red | |||
| Title0=Tabber Template (Not Extension) is slower than Tabs | |||
| Content0= | |||
Today, I tried to make an extension-like template tabber ([[Template:Tabber|'''See here''']]), but when I test, I found the contents load slower than similar template "tabs" ([[Template:Tabs|'''See Here''']]). I got confused, and if there is anyone knows why, please tell me or try to solve it. Thank you. <font color="lightblue">-- ''From <span class="rainbow-text">'''Boxsnake</span> ([[User talk:Boxsnake|<span style="color: orange;" class="">talk</span>]])'''''</font> 13:23, 15 October 2014 (EDT) | |||
}} | }} |