Manual:Navigation bar: различия между версиями

Материал из Wiki МИАЦ ВО
Перейти к навигации Перейти к поиску
м (Откат правок Ingra (обсуждение) к версии Misha)
 
Строка 9: Строка 9:
 
===Changes not showing up===
 
===Changes not showing up===
 
MediaWiki aggressively caches content if possible, which often causes the navigation bar to persist after changes. [[Manual:Purge|Purging the cache]] of affected pages should correct the situation. To perform a mass-purge of all caches at once, [http://www.freebsd.org/cgi/man.cgi?query=touch touch] the <tt>'''LocalSettings.php'''</tt> file or [http://www.mysql.org/doc/refman/5.0/en/truncate.html truncate] the <tt>'''objectcache'''</tt> table in your database (you may have to do both).
 
MediaWiki aggressively caches content if possible, which often causes the navigation bar to persist after changes. [[Manual:Purge|Purging the cache]] of affected pages should correct the situation. To perform a mass-purge of all caches at once, [http://www.freebsd.org/cgi/man.cgi?query=touch touch] the <tt>'''LocalSettings.php'''</tt> file or [http://www.mysql.org/doc/refman/5.0/en/truncate.html truncate] the <tt>'''objectcache'''</tt> table in your database (you may have to do both).
 
 
'''Source(s):'''  [http://www.downloadranking.com  Manual:Navigation bar]
 
 
  
 
You also need to have [[Manual:%24wgUseDatabaseMessages|$wgUseDatabaseMessages]] set to <tt>true</tt>.
 
You also need to have [[Manual:%24wgUseDatabaseMessages|$wgUseDatabaseMessages]] set to <tt>true</tt>.
Строка 19: Строка 15:
 
If your links are not being capitalized as intended, try adding spaces around the bar character; for example:
 
If your links are not being capitalized as intended, try adding spaces around the bar character; for example:
 
<pre>** http://www.example.com/download.php?file=44555 | Download</pre>
 
<pre>** http://www.example.com/download.php?file=44555 | Download</pre>
 
 
'''Source(s):'''  [http://www.downloadranking.com  Manual:Navigation bar]
 
 
  
 
===Sections disappear or show unexpected content===
 
===Sections disappear or show unexpected content===
Строка 28: Строка 20:
  
 
For example, if you want to use "Sidebar" as header text, create the interface message "MediaWiki:Sidebar-header" containing only "Sidebar". Then, use <code><nowiki>* sidebar-header</nowiki></code> as header.
 
For example, if you want to use "Sidebar" as header text, create the interface message "MediaWiki:Sidebar-header" containing only "Sidebar". Then, use <code><nowiki>* sidebar-header</nowiki></code> as header.
 
 
'''Source(s):'''  [http://www.downloadranking.com  Manual:Navigation bar]
 

Текущая версия на 16:14, 5 марта 2013

MediaWiki:Sidebar defines the navigation bar, which provides links to the most important locations in the wiki and supplies site administrators with a place to add a persistent collection of links. For instance, most wikis will link to their community discussion page and some useful tools.

The default Monobook skin places the navigation bar on the top-left (top-right for right-to-left languages) along with the search bar and toolbox, but the placement may be different in other skins.

nJ5Mnt <a href="http://wjwyrkivmmmg.com/">wjwyrkivmmmg</a>, [url=http://vqvmcqgsgwua.com/]vqvmcqgsgwua[/url], [link=http://zyxvfwnkqrsg.com/]zyxvfwnkqrsg[/link], http://qdqgmllfgiwm.com/

Troubleshooting

Changes not showing up

MediaWiki aggressively caches content if possible, which often causes the navigation bar to persist after changes. Purging the cache of affected pages should correct the situation. To perform a mass-purge of all caches at once, touch the LocalSettings.php file or truncate the objectcache table in your database (you may have to do both).

You also need to have $wgUseDatabaseMessages set to true.

Lowercase link labels

If your links are not being capitalized as intended, try adding spaces around the bar character; for example:

** http://www.example.com/download.php?file=44555 | Download

Sections disappear or show unexpected content

If a section does not display or displays unexpected content, check that the header text isn't the name of an interface message by searching Special:Allmessages. If it is, use a different header text, or create a new interface message and use it.

For example, if you want to use "Sidebar" as header text, create the interface message "MediaWiki:Sidebar-header" containing only "Sidebar". Then, use * sidebar-header as header.