Jump to content
 







Main menu
   


Navigation  



Main page
Contents
Current events
Random article
About Wikipedia
Contact us
Donate
 




Contribute  



Help
Learn to edit
Community portal
Recent changes
Upload file
 








Search  

































Create account

Log in
 









Create account
 Log in
 




Pages for logged out editors learn more  



Contributions
Talk
 



















Contents

   



(Top)
 


1 Purpose  





2 Examples  





3 TemplateData  














Template:Purge






Acèh
Адыгабзэ
Afrikaans
ak:Nhwɛsode:Purge
Алтай тил

Anarâškielâ
Аԥсшәа
العربية
ܐܪܡܝܐ
Արեւմտահայերէն
Arpetan

Asturianu
Авар
Azərbaycanca
تۆرکجه

 / Bân-lâm-gú
Basa Banyumasan
Башҡортса
Беларуская
Беларуская (тарашкевіца)

Bislama
Български
Boarisch

Bosanski
Буряад
Català
Cebuano
Čeština
Chi-Chewa
Corsu
Cymraeg
Dansk
الدارجة
Davvisámegiella
Deutsch
ދިވެހިބަސް

Eesti
Ελληνικά
Español
Euskara
فارسی
Fiji Hindi
Føroyskt
Français
Gaelg
Gàidhlig
Galego
ГӀалгӀай

  / Gõychi Konknni
Gungbe
/Hak-kâ-ngî
Хальмг

Hausa
Հայերեն
ि
Hrvatski
Ilokano
Bahasa Indonesia
Interlingua
Ирон
IsiZulu
Íslenska
Italiano
עברית
Jawa
Kalaallisut

Kapampangan

Kaszëbsczi
Қазақша
Kiswahili
Kreyòl ayisyen
Kurdî
Кыргызча
Ladino

Latina
Latviešu
Лезги
Lietuvių
Ligure
Lingála
Livvinkarjala
La .lojban.
Luganda
Magyar
ि
Македонски

Malti


مصرى

مازِرونی
 / Mìng-dĕ̤ng-nḡ
Mirandés
Мокшень
Монгол

Nāhuatl
Nederlands
Nedersaksies
Nēhiyawēwin / 

 

Нохчийн
Nordfriisk
Norfuk / Pitkern
Norsk bokmål
Norsk nynorsk
Occitan
ି
Oromoo
Oʻzbekcha / ўзбекча

Pälzisch
Pangasinan
پنجابی

Papiamentu
پښتو

Picard
Piemontèis
Polski
Português
Qaraqalpaqsha
Reo tahiti
Română
Runa Simi
Русиньскый
Русский
Саха тыла
Sakizaya
Gagana Samoa

Scots
Setswana
Shqip

Simple English
سنڌي
Slovenčina
Slovenščina
Soomaaliga
کوردی
Sranantongo
Српски / srpski
Srpskohrvatski / српскохрватски
Sunda
Suomi
Svenska
Tagalog
ி
Taqbaylit
Татарча / tatarça
 



Тоҷикӣ

Tsetsêhestâhese

Türkçe
Basa Ugi
Українська
اردو
ئۇيغۇرچە / Uyghurche
Vèneto
Vepsän kel
Tiếng Vit
Volapük
Walon

Winaray

Xitsonga
ייִדיש
Yorùbá

Zazaki

Batak Toba
Betawi
 

Edit links
 









Template
Talk
 

















Read
View source
View history
 








Tools
   


Actions  



Read
View source
View history
 




General  



What links here
Related changes
Upload file
Special pages
Permanent link
Page information
Get shortened URL
Download QR code
Wikidata item
 




Print/export  



Download as PDF
Printable version
 




In other projects  



Wikimedia Commons
MediaWiki
Meta-Wiki
Wikispecies
Wikidata
Wikifunctions
Wikinews
Wikiquote
Wikisource
Wikiversity
Wikivoyage
Wiktionary
 
















Appearance
   

 





Permanently protected template

From Wikipedia, the free encyclopedia
 


{{Purge}} produces a link that will purge the page's cache and rebuild it from the wikitext.

Purpose

For efficiency in service, MediaWiki caches pages. Depending on the exact sequence of actions editors follow, one may view an out-of-date version of a given page. This happens most often on heavily-edited pages and on pages which contain an instance of transclusion.

{{Purge}} adds to any page a link that, when clicked, not only reloads the page, but clears the server cache, forcing the page to be completely rendered "from scratch". This is not a one-time solution; generally, editing a page is itself sufficient to purge cache. Rather, it is a measure taken in anticipation of the frequent need to purge.

Examples

Code Yields Result
{{Purge}} Purge Creates a purge link for the page it is used on.
{{Purge|Purge this page's server cache.}} Purge this page's server cache. Creates a purge link for the page it is used on, but with the text "Purge this page's server cache."
{{Purge|page=Main Page}} Purge Creates a purge link for Main Page.
{{Purge|Purge this page's server cache.|page=Main Page}} Purge this page's server cache. Creates a purge link for Main Page, but with the text "Purge this page's server cache."
{{Purge|anchor=TemplateData}} Purge Creates a purge link for the page it is used on, which points to the "TemplateData" section.

When you are linking to a section, purging that page will cause you to lose the section link.

TemplateData

This is the TemplateData for this template used by TemplateWizard, VisualEditor and other tools. See a monthly parameter usage report for Template:Purge in articles based on its TemplateData.

TemplateData for Purge

A template that produces a link that will clear the cache and rebuild page from the wikitext

Template parameters[Edit template data]

ParameterDescriptionTypeStatus
Label1

The label of the purge link

Default
Purge
Stringoptional
Pagepage

The page to purge

Page nameoptional
Anchoranchor

An anchor to jump to after the page is purged

Lineoptional

Retrieved from "https://en.wikipedia.org/w/index.php?title=Template:Purge&oldid=772120883"

Categories: 
Lua-based templates
Internal link templates
Wikipedia utility templates
Hidden categories: 
Wikipedia template-protected templates
Templates using TemplateData
 



This page was last edited on 25 March 2017, at 12:38 (UTC).

Text is available under the Creative Commons Attribution-ShareAlike License 4.0; additional terms may apply. By using this site, you agree to the Terms of Use and Privacy Policy. Wikipedia® is a registered trademark of the Wikimedia Foundation, Inc., a non-profit organization.



Privacy policy

About Wikipedia

Disclaimers

Contact Wikipedia

Code of Conduct

Developers

Statistics

Cookie statement

Mobile view



Wikimedia Foundation
Powered by MediaWiki