Documentation icon Τεκμηρίωση προτύπου[προβολή] [επεξεργασία] [ιστορικό] [ανανέωση]

Χρήση Επεξεργασία

Αυτό το πρότυπο τυλίγει τα editnotice, τις σημειώσεις που εμφανίζονται πάνω από την περιοχή κειμένου σε σελίδες επεξεργασίας. Τα editnotice εφαρμόζονται ανά ονοματοχώρο ή ανά σελίδα.

Για να δημιουργήσετε νέο editnotice, παρακαλούμε ακολουθήστε τις οδηγίες στο WP:Editnotice. Δείτε επίσης τυποποιημένα πρότυπα editnotice στην Κατηγορία:Πρότυπα editnotice. Για σελίδα χρήστη χρησιμοποιήστε το πρότυπο {{Editnotice userpage}}.

Σύνταξη Επεξεργασία

{{editnotice
| expiry =
| id =
| header =
| headerstyle =
| text =
| textstyle =
| image =
| imagesize =
| style =
| class = 
}}

Σημείωση: όλες οι παράμετροι είναι προαιρετικές, εκτός του text.

Παράμετροι Επεξεργασία

  • |expiry=expiry date
  • |id=optional HTML id
  • |header=header text
  • |headerstyle=CSS for header style
  • |text=body text
  • |textstyle=CSS for text style
  • |image=image
  • |imagesize=size of image, e.g., 35px
  • |imageright=image on righthand side
  • |class=CSS class name for the entire editnotice
  • |style=CSS values for the entire editnotice
Χρησιμοποιήστε μόνο το όνομα του αρχείου εικόνας, δηλαδή αντί του "[[File:Wikipedia-logo-v2.svg]]", χρησιμοποιήστε "Wikipedia-logo-v2.svg" μετά το "image =".

Αν ένα editnotice κληρονομείται σε σελίδα που είναι ανακατεύθυνση, το editnotice κατηγοριοποιείται στην κατηγορία συντήρησης Κατηγορία:Editnotices whose targets are redirects}. Για να μη γίνει κατηγοριοποίηση δηλώστε ρητά |redirect=yes. Στις περισσότερες περιπτώσεις αυτό δεν είναι αναγκαίο.

Ημερομηνία λήξης Επεξεργασία

Η παράμετρος expiry μπορεί να χρησιμοποιηθεί για να καθορίσει πότε ένα editnotice δεν θα είναι πλέον ορατό σε μια σελίδα. Αυτό μπορεί να είναι χρήσιμο όταν ένα editnotice δημιουργείται για προσωρινή χρήση. Μπορούν να χρησιμοποιηθούν έγκυρες μορφές ημερομηνίας, όπως:

  • January 2012
  • 4 April 2009
  • 11:09 April 5 2013

Για να καθοριστεί ένα editnotice χωρίς ημερομηνία λήξης, μπορεί να χρησιμοποιηθεί το |expiry=indefinite.

Παραδείγματα Επεξεργασία

{{editnotice
| id = loremipsumedn
| header = Attention editors
| headerstyle = font-size: 150%;
| text = Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
| textstyle = font-size: 120%;
| image =
}}
{{editnotice
| id = faqedn
| header = Frequently asked questions
| headerstyle = font-size: 120%;
| text = Before editing, please consult the list of Frequently Asked Questions specific to this article. The FAQ includes questions on many issues that have been discussed.
| textstyle = background-color: #fee;
| image =
}}
{{editnotice
| id = engvaredn
| header =
| headerstyle =
| text = This article is written in '''[[British English]]''', which differs from [[American English]] in some ways. See [[American and British English differences]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]], this should not be changed without broad consensus.
| textstyle =
| image = Flag of the United Kingdom.svg
| imagesize = 50px
}}

Namespace key Επεξεργασία

0 – (Main)
1 – Talk:
2 – User: [note 1]
3 – User talk: [note 2]
4 – Wikipedia:
5 – Wikipedia talk:
6 – File:
7 – File talk:
8 – MediaWiki:
9 – MediaWiki talk:
10 – Template:
11 – Template talk:
12 – Help:
13 – Help talk:
14 – Category:
15 – Category talk:
100 – Portal:
101 – Portal talk:
108 – Book:
109 – Book talk:
118 – Draft:
119 – Draft talk:
710 – TimedText:
711 – TimedText talk:
828 – Module:
829 – Module talk:

  1. User edit notices are now implemented by creating a subpage on the user page named "/Editnotice". This allows non-admin users to edit their own notices. Display of the user edit notice is controlled by MediaWiki:Editnotice-2.
  2. User talk edit notices are now implemented by creating a subpage on the user talk page named "/Editnotice". This allows non-admin users to edit their own notices. Display of the user talk edit notice is controlled by MediaWiki:Editnotice-3.

Editnotices που έχουν μέχρι στιγμής δημιουργηθεί Επεξεργασία

Δείτε επίσης Επεξεργασία