साचा:AdvancedSiteNotices
Note: The contents from this page will be displayed over the whole Wiki kindly read the documentation properly before modifying this template. Central Notices shall be requested at Meta wiki.
Due to the huge impact of modifying this notice, please send a request on the talk page before adding a new notice, and the administrator/experienced editor will add it after discussion.
विकिपीडिया मिशन ६६,६६६ सुरू झाले आहे!
मराठी विकिपीडियावर नवीन लेख तयार करण्यास सहकार्य करा.कोव्हिड-१९चा प्रादुर्भाव रोखण्यासाठी हातभार लावा!
सध्या भारत व जगभर पसरत असलेल्या कोव्हिड-१९ (कोरोना व्हायरस)चा संसर्ग एकमेकांना होऊ न देण्यासाठी काळजी घ्या.१. दोन व्यक्तीमध्ये २ मीटर अंतर राखून व्यवहार करा. २. आपली थुंकी हवेत उडू देऊ नका ३. रस्त्यात किंवा इतर ठिकाणी थुंकू नका. ४. स्थानिक सरकारकडून घालून दिलेल्या सगळ्या नियम
व कायद्यांचे काटेकोर पालन करा- याशिवाय अधिक काळजी घेण्यासाठीचे इतर उपाय येथे वाचा.
- मराठी विकिपीडियावर वर आलेल्या सर्व नवीन सदस्यांचे आम्ही मराठी विकिपीडिया परिवारातर्फे सहर्ष स्वागत आहे
नवीन खाते तयार करण्यासाठी इथे क्लिक करा
वापर
[संपादन]When adding a notice, please fill in the notice in the {{AdvancedSiteNotices/core}} template in the source code . If the source code before modification is:
{{AdvancedSiteNotices / core | {{AdvancedSiteNotices / item | Welcome to Wikipedia}} }}
The modified source code will be similar to the following code:
{{AdvancedSiteNotices/core | {{AdvancedSiteNotices/item | Welcome to Wikipedia}} {{AdvancedSiteNotices / item | Hello, world}} }}
Parameters of
[संपादन]{{AdvancedSiteNotices/item}} has two anonymous parameters and one named parameter: {{{1}}} is a required parameter, fill in the actual content of the notice; {{{2}}} and {{{criteria}}} In order to fill in the parameters, you can define the target group for the announcement:
{{AdvancedSiteNotices / item | {{{1}}} | {{{2}}} | criteria = {{{criteria}}} }}
The parameter {{{criteria}}} should be a valid JavaScript expression that provides the following test functions during execution. When not filled in, the parameter {{{2}}} will be used .
*in_country -test user country or region *in_region -the main administrative region where the test user is located *in_city -test user city *in_group -the user group where the test user is
The parameter {{{2}}} has multiple modes, which can be mixed and separated by spaces:
*only_sysop -only show to administrator *only_logged -only displayed to logged in users *only_anon -only display to anonymous users *only_zh_cn -only displayed to mainland users *only_zh_hk -Only displayed to users in Hong Kong and Macau *only_zh_sg -only displayed to users in Singapore and Malaysia *only_zh_tw -only displayed to users in Taiwan
Actual use case:
{{AdvancedSiteNotices / item | [[Wikipedia: Party / 2010 Taiwan Autumn Gathering | "'2010 Taiwan Wikiman Autumn Gathering" "]] and [[Wikipedia_talk: Party / 2010 Shanghai Summer Gathering |' '' 2010 Shanghai Wikiman Xia Ju '' ']] ended successfully. | criteria = in_country ('TW') {{!}} {{!}} in_country ('CN') && in_city ('Shanghai')}} {{AdvancedSiteNotices / item | The Wikimedia Foundation has launched Good children know the function ". | criteria = in_group ('rollbacker') {{!}} {{!}} in_group ('patroller') {{!}} {{!}} in_group ('sysop') {{!}} {{!} } in_group ('autoreviewer')}}
Precautions
[संपादन]- To check the display nature of the current announcement, please go to {{Template: AdvancedSiteNotices/viewer}}.
- This page is currently fully protected-users who need to add content to the announcement should go to Template_talk: AdvancedSiteNotices to make a request, and the administrator will join on behalf of it.