J u m p t o c o n t e n t
M a i n m e n u
M a i n m e n u
N a v i g a t i o n
● M a i n p a g e
● C o n t e n t s
● C u r r e n t e v e n t s
● R a n d o m a r t i c l e
● A b o u t W i k i p e d i a
● C o n t a c t u s
● D o n a t e
C o n t r i b u t e
● H e l p
● L e a r n t o e d i t
● C o m m u n i t y p o r t a l
● R e c e n t c h a n g e s
● U p l o a d f i l e
S e a r c h
Search
A p p e a r a n c e
● C r e a t e a c c o u n t
● L o g i n
P e r s o n a l t o o l s
● C r e a t e a c c o u n t
● L o g i n
P a g e s f o r l o g g e d o u t e d i t o r s l e a r n m o r e
● C o n t r i b u t i o n s
● T a l k
( T o p )
1
P u r p o s e
2
E x a m p l e s
3
T e m p l a t e D a t a
T o g g l e t h e t a b l e o f c o n t e n t s
T e m p l a t e : P u r g e
1 9 6 l a n g u a g e s
● A c è h
● А д ы г а б з э
● A f r i k a a n s
● a k : N h w ɛ s o d e : P u r g e
● А л т а й т и л
● አ ማ ር ኛ
● A n a r â š k i e l â
● А ԥ с ш ә а
● ا ل ع ر ب ي ة
● ܐ ܪ ܡ ܝ ܐ
● Ա ր ե ւ մ տ ա հ ա յ ե ր է ն
● A r p e t a n
● অ স ম ী য ় া
● A s t u r i a n u
● А в а р
● A z ə r b a y c a n c a
● ت ۆ ر ک ج ه
● ব া ং ল া
● 閩 南 語 / B â n - l â m - g ú
● B a s a B a n y u m a s a n
● Б а ш ҡ о р т с а
● Б е л а р у с к а я
● Б е л а р у с к а я ( т а р а ш к е в і ц а )
● भ ो ज प ु र ी
● B i s l a m a
● Б ъ л г а р с к и
● B o a r i s c h
● བ ོ ད ་ ཡ ི ག
● B o s a n s k i
● Б у р я а д
● C a t a l à
● C e b u a n o
● Č e š t i n a
● C h i - C h e w a
● C o r s u
● C y m r a e g
● D a n s k
● ا ل د ا ر ج ة
● D a v v i s á m e g i e l l a
● D e u t s c h
● ދ ި ވ ެ ހ ި ބ ަ ސ ް
● ड ो ट े ल ी
● E e s t i
● Ε λ λ η ν ι κ ά
● E s p a ñ o l
● E u s k a r a
● ف ا ر س ی
● F i j i H i n d i
● F ø r o y s k t
● F r a n ç a i s
● G a e l g
● G à i d h l i g
● G a l e g o
● Г Ӏ а л г Ӏ а й
● ગ ુ જ ર ા ત ી
● ग ो ं य च ी क ो ं क ण ी / G õ y c h i K o n k n n i
● G u n g b e
● 客 家 語 / H a k - k â - n g î
● Х а л ь м г
● 한 국 어
● H a u s a
● Հ ա յ ե ր ե ն
● ह ि न ् द ी
● H r v a t s k i
● I l o k a n o
● B a h a s a I n d o n e s i a
● I n t e r l i n g u a
● И р о н
● I s i Z u l u
● Í s l e n s k a
● I t a l i a n o
● ע ב ר י ת
● J a w a
● K a l a a l l i s u t
● ಕ ನ ್ ನ ಡ
● K a p a m p a n g a n
● ქ ა რ თ უ ლ ი
● K a s z ë b s c z i
● Қ а з а қ ш а
● K i s w a h i l i
● K r e y ò l a y i s y e n
● K u r d î
● К ы р г ы з ч а
● L a d i n o
● ລ າ ວ
● L a t i n a
● L a t v i e š u
● Л е з г и
● L i e t u v i ų
● L i g u r e
● L i n g á l a
● L i v v i n k a r j a l a
● L a . l o j b a n .
● L u g a n d a
● M a g y a r
● म ै थ ि ल ी
● М а к е д о н с к и
● മ ല യ ാ ള ം
● M a l t i
● म र ा ठ ी
● მ ა რ გ ა ლ უ რ ი
● م ص ر ى
● ဘ ာ သ ာ မ န ်
● م ا ز ِ ر و ن ی
● 閩 東 語 / M ì n g - d ĕ ̤ n g - n g ṳ ̄
● M i r a n d é s
● М о к ш е н ь
● М о н г о л
● မ ြ န ် မ ာ ဘ ာ သ ာ
● N ā h u a t l
● N e d e r l a n d s
● N e d e r s a k s i e s
● N ē h i y a w ē w i n / ᓀ ᐦ ᐃ ᔭ ᐍ ᐏ ᐣ
● न े प ा ल ी
● न े प ा ल भ ा ष ा
● 日 本 語
● Н о х ч и й н
● N o r d f r i i s k
● N o r f u k / P i t k e r n
● N o r s k b o k m å l
● N o r s k n y n o r s k
● O c c i t a n
● ଓ ଡ ଼ ି ଆ
● O r o m o o
● O ʻ z b e k c h a / ў з б е к ч а
● ਪ ੰ ਜ ਾ ਬ ੀ
● P ä l z i s c h
● P a n g a s i n a n
● پ ن ج ا ب ی
● ပ အ ိ ု ဝ ် ႏ ဘ ာ ႏ သ ာ ႏ
● P a p i a m e n t u
● پ ښ ت و
● ភ ា ស ា ខ ្ ម ែ រ
● P i c a r d
● P i e m o n t è i s
● P o l s k i
● P o r t u g u ê s
● Q a r a q a l p a q s h a
● R e o t a h i t i
● R o m â n ă
● R u n a S i m i
● Р у с и н ь с к ы й
● Р у с с к и й
● С а х а т ы л а
● S a k i z a y a
● G a g a n a S a m o a
● स ं स ् क ृ त म ्
● S c o t s
● S e t s w a n a
● S h q i p
● ස ි ං හ ල
● S i m p l e E n g l i s h
● س ن ڌ ي
● S l o v e n č i n a
● S l o v e n š č i n a
● S o o m a a l i g a
● ک و ر د ی
● S r a n a n t o n g o
● С р п с к и / s r p s k i
● S r p s k o h r v a t s k i / с р п с к о х р в а т с к и
● S u n d a
● S u o m i
● S v e n s k a
● T a g a l o g
● த ம ி ழ ்
● T a q b a y l i t
● Т а т а р ч а / t a t a r ç a
● ၽ ႃ ႇ သ ႃ ႇ တ ႆ း
● త ె ల ు గ ు
● ไ ท ย
● ት ግ ር ኛ
● Т о ҷ и к ӣ
● Ꮳ Ꮃ Ꭹ
● T s e t s ê h e s t â h e s e
● ತ ು ಳ ು
● T ü r k ç e
● B a s a U g i
● У к р а ї н с ь к а
● ا ر د و
● ئ ۇ ي غ ۇ ر چ ە / U y g h u r c h e
● V è n e t o
● V e p s ä n k e l ’
● T i ế n g V i ệ t
● V o l a p ü k
● W a l o n
● 文 言
● W i n a r a y
● 吴 语
● X i t s o n g a
● י י ִ ד י ש
● Y o r ù b á
● 粵 語
● Z a z a k i
● 中 文
● B a t a k T o b a
● B e t a w i
E d i t l i n k s
● T e m p l a t e
● T a l k
E n g l i s h
● R e a d
● V i e w s o u r c e
● V i e w h i s t o r y
T o o l s
T o o l s
A c t i o n s
● R e a d
● V i e w s o u r c e
● V i e w h i s t o r y
G e n e r a l
● W h a t l i n k s h e r e
● R e l a t e d c h a n g e s
● U p l o a d f i l e
● S p e c i a l p a g e s
● P e r m a n e n t l i n k
● P a g e i n f o r m a t i o n
● G e t s h o r t e n e d U R L
● D o w n l o a d Q R c o d e
● W i k i d a t a i t e m
P r i n t / e x p o r t
● D o w n l o a d a s P D F
● P r i n t a b l e v e r s i o n
I n o t h e r p r o j e c t s
● W i k i m e d i a C o m m o n s
● M e d i a W i k i
● M e t a - W i k i
● W i k i s p e c i e s
● W i k i d a t a
● W i k i f u n c t i o n s
● W i k i n e w s
● W i k i q u o t e
● W i k i s o u r c e
● W i k i v e r s i t y
● W i k i v o y a g e
● W i k t i o n a r y
A p p e a r a n c e
F r o m W i k i p e d i a , t h e f r e e e n c y c l o p e d i a
This template uses Lua :
{{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
Template parameters[ Edit template data ]
Parameter Description Type Status Label 1
The label of the purge link
Default
Purge
String optional Page page
The page to purge
Page name optional Anchor anchor
An anchor to jump to after the page is purged
Line optional
t
e
Purge Pages
General purge templates
About Purge on Wikipedia
R e t r i e v e d f r o m " https://en.wikipedia.org/w/index.php?title=Template:Purge&oldid=772120883 "
C a t e g o r i e s :
● L u a - b a s e d t e m p l a t e s
● I n t e r n a l l i n k t e m p l a t e s
● W i k i p e d i a u t i l i t y t e m p l a t e s
H i d d e n c a t e g o r i e s :
● W i k i p e d i a t e m p l a t e - p r o t e c t e d t e m p l a t e s
● T e m p l a t e s u s i n g T e m p l a t e D a t a
● T h i s p a g e w a s l a s t e d i t e d o n 2 5 M a r c h 2 0 1 7 , a t 1 2 : 3 8 ( U T C ) .
● T e x t i s a v a i l a b l e u n d e r t h e C r e a t i v e C o m m o n s A t t r i b u t i o n - S h a r e A l i k e L i c e n s e 4 . 0 ;
a d d i t i o n a l t e r m s m a y a p p l y . B y u s i n g t h i s s i t e , y o u a g r e e t o t h e T e r m s o f U s e a n d P r i v a c y P o l i c y . W i k i p e d i a ® i s a r e g i s t e r e d t r a d e m a r k o f t h e W i k i m e d i a F o u n d a t i o n , I n c . , a n o n - p r o f i t o r g a n i z a t i o n .
● P r i v a c y p o l i c y
● A b o u t W i k i p e d i a
● D i s c l a i m e r s
● C o n t a c t W i k i p e d i a
● C o d e o f C o n d u c t
● D e v e l o p e r s
● S t a t i s t i c s
● C o o k i e s t a t e m e n t
● M o b i l e v i e w