Διαφορά μεταξύ των αναθεωρήσεων του "Πρότυπο:Imbox"
Από Γνωσιακή Βάση Υπηρεσιών και Διαδικασιών του Δημοσίου Τομέα
μ (Changed protection level of Template:Imbox: Highly visible template: allow template editors to edit ([Edit=Protected template] (indefinite) [Move=Protected template] (indefinite))) |
Dkalo (Συζήτηση | συνεισφορές) μ (Εισήχθη 1 αναθεώρηση) |
||
(2 ενδιάμεσες εκδόσεις από 2 χρήστες δεν εμφανίζονται) | |||
Γραμμή 1: | Γραμμή 1: | ||
− | {{# | + | <table class="{{#if:{{yesno|{{{plainlinks|yes}}}}}|plainlinks}} imbox |
+ | {{#switch:{{{type|}}} | ||
+ | | speedy = imbox-speedy | ||
+ | | delete = imbox-delete | ||
+ | | content = imbox-content | ||
+ | | style = imbox-style | ||
+ | | move = imbox-move | ||
+ | | protection = imbox-protection | ||
+ | | license = imbox-license | ||
+ | | featured = imbox-featured | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = imbox-notice | ||
+ | }} {{{class|}}}" style="margin: 4px 10%; border-collapse: collapse; border: 3px solid #1e90ff; background: #fbfbfb; | ||
+ | {{#switch:{{{type|}}} | ||
+ | | speedy = border: 3px solid #b22222; background: #fee; | ||
+ | | delete = border: 3px solid #b22222; | ||
+ | | content = border: 3px solid #f28500; | ||
+ | | style = border: 3px solid #f4c430; | ||
+ | | move = border: 3px solid #9932cc; | ||
+ | | protection = border: 3px solid #bba; | ||
+ | | license = border: 3px solid #88a; background: #f7f8ff; | ||
+ | | featured = border: 3px solid #cba135; | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = border: 3px solid #1e90ff; | ||
+ | }} {{{style|}}}"> | ||
+ | <tr> | ||
+ | {{#ifeq:{{{image|}}}|none | ||
+ | | <!-- No image. Cell with some width or padding necessary for text cell to have 100% width. --><td class="mbox-empty-cell"></td> | ||
+ | | <td class="mbox-image" style="border: none; padding: 2px 0 2px 0.9em; text-align: center;"> | ||
+ | {{#if:{{{image|}}} | ||
+ | | {{{image}}} | ||
+ | | {{#switch:{{{type|}}} | ||
+ | | speedy = [[Image:Imbox speedy deletion.png|40x40px|alt=|link=]] | ||
+ | | delete = [[Image:Imbox deletion.png|40x40px|alt=|link=]] | ||
+ | | content = [[Image:Imbox content.png|40x40px|alt=|link=]] | ||
+ | | style = [[Image:Edit-clear.svg|40x40px|link=|alt=]] | ||
+ | | move = [[Image:Imbox move.png|40x40px|alt=|link=]] | ||
+ | | protection = [[Image:Imbox protection.png|40x40px|alt=|link=]] | ||
+ | | license = [[Image:Imbox license.png|40x40px|alt=|link=]] | ||
+ | | featured = [[Image:Imbox featured.png|40x40px]] | ||
+ | | notice <!-- notice = default --> | ||
+ | | #default = [[Image:Imbox notice.png|40x40px|alt=|link=]] | ||
+ | }} | ||
+ | }}</td> | ||
+ | }} | ||
+ | <td class="mbox-text" style="padding: 0.25em 0.9em; border: none; width: 100%; {{{textstyle|}}}"> {{{text}}} </td> | ||
+ | {{#if:{{{imageright|}}} | ||
+ | | <td class="mbox-imageright" style="padding: 2px 0.9em 2px 0; border: none; text-align: center;''> {{{imageright}}} </td> | ||
+ | }} | ||
+ | </tr> | ||
+ | {{#if:{{{below|}}} | ||
+ | | <tr><td colspan={{#if:{{{imageright|}}}|3|2}} class="mbox-text" style="padding: 0.25em 0.9em; border: none; width: 100%; {{{textstyle|}}}"> {{{below}}} </td></tr> | ||
+ | }} | ||
+ | </table><!-- Detect and report usage with faulty "type" parameter: | ||
+ | -->{{#switch:{{{type|}}} | ||
+ | | <!-- No type fed, is also valid input --> | ||
+ | | speedy | ||
+ | | delete | ||
+ | | content | ||
+ | | style | ||
+ | | move | ||
+ | | protection | ||
+ | | license | ||
+ | | featured | ||
+ | | notice = <!-- Do nothing, valid "type" --> | ||
+ | | #default = <div style="text-align: center;">This message box is using an invalid "type={{{type|}}}" parameter and needs fixing.</div>[[Κατηγορία:Wikipedia message box parameter needs fixing|{{main other|Main:}}{{FULLPAGENAME}}]]<!-- Sort on namespace --> | ||
+ | }}<!-- | ||
+ | |||
+ | --><includeonly>{{#ifeq:{{BASEPAGENAME}}|{{SUBPAGENAME}}|{{#ifeq:{{NAMESPACE}}|Template|[[Κατηγορία:File message boxes]]}}}}</includeonly><!-- | ||
+ | |||
+ | --><noinclude> | ||
+ | |||
{{documentation}} | {{documentation}} | ||
− | <!-- | + | <!-- Add categories and interwikis to the /doc subpage, not here! --> |
+ | [[Κατηγορία:Πρότυπα Βικιπαίδειας|{{PAGENAME}}]] | ||
</noinclude> | </noinclude> |
Τελευταία αναθεώρηση της 16:27, 11 Ιουνίου 2015
40x40px | {{{text}}} |
Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |