Předłoha:Ombox/Dokumentacija

z Kitakija

(rozdźěl mjez wersijomaj)
Dźi do: Nawigacija, Pytać
S (interwiki)
S (přełožk)
Rjadka 4: Rjadka 4:
To je {{tl|ombox}} abo (jendźelsce '''other pages message box''') meta-předłoha.
To je {{tl|ombox}} abo (jendźelsce '''other pages message box''') meta-předłoha.
-
It is used to build message box templates for pages of the types: User, Wikipedia, MediaWiki, Template, Help, Portal and any new future namespaces. That is, page types not covered by {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}} or {{tl|cmbox}}. Thus it should ''not'' be used for boxes for articles, talk pages, image pages or category pages.
+
Wužiwa so, zo by předłohi za zdźělenske kašćiki za strony sćěhowachych typow wutworił: Wužiwar, Wikipedija, MediaWiki, Předłoha, Pomoc<!--, Portal--> a někajki nowy mjenowy rum. To rěka, stronowe typy njejsu wobjednawane z jednu předłohow {{tl|ambox}}, {{tl|tmbox}}, {{tl|imbox}} abo {{tl|cmbox}}. Tuž ''nje''by  wužiwać měła za kašćiki za nastawki, diskusijne strony, wobrazowe strony abo kategorijowe strony.
-
This template works almost exactly like {{tl|ambox}} and uses the same parameters.
+
Tuta předłoha zwjetša eksaktnje kaž {{tl|ambox}} dźěła a wužiwa samsne parametry.
-
<!--
+
-
=== We are deploying! ===
+
-
After discussions on the [[Template talk:Ombox|talk page]] of this template and announcing it at several places for some time we are now deploying this template. Feel free to convert any message boxes used on "other pages" to use this meta-template. If you find any tricky cases then list them on the talk page of this template and you'll get help.
 
-
 
-
When this template is used to build other pages message boxes those boxes should contain explanatory texts just like before. (The same texts as before or new improved texts.) If there are more specific images in the boxes or you know a better image, then use them instead of the default images shown here.
 
-
-->
 
=== Wužiće ===
=== Wužiće ===
-
Simple usage example:
+
Jednory přikład:
<pre>
<pre>
Rjadka 25: Rjadka 19:
-
Complex example:
+
Kompleksny přikład:
<pre>
<pre>
Rjadka 33: Rjadka 27:
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
-
| text      = The message body text.
+
| text      = Wobłuk za zdźělenski tekst.
}}
}}
</pre>
</pre>
Rjadka 42: Rjadka 36:
| style    = width: 400px;  
| style    = width: 400px;  
| textstyle = color: red; font-weight: bold; font-style: italic;
| textstyle = color: red; font-weight: bold; font-style: italic;
-
| text      = The message body text.
+
| text      = Wobłuk za zdźělenski tekst.
}}
}}
-
=== Other pages message box types ===
+
=== Druhe typy zdźělenskich kašćikow ===
-
The following examples use different '''type''' parameters but use no image parameters thus they use the default images for each type.
+
Scéhowace přikłady wužiwaja rozdźělne '''type''' parametry ale njewužiwaja žadyn image parametry. Zuž wužiwaja normalne wobrazy za wšě typy.
{{ombox
{{ombox
| type = speedy
| type = speedy
-
| text = type=<u>speedy</u> – Speedy deletion templates.
+
| text = type=<u>speedy</u> – Spěšne wušmórnjenje, na př.
}}
}}
{{ombox
{{ombox
| type = delete
| type = delete
-
| text = type=<u>delete</u> – Deletion templates.
+
| text = type=<u>delete</u> – Namjety na wušmórnjenje, na př.
}}
}}
{{ombox
{{ombox
| type = content
| type = content
-
| text = type=<u>content</u> – Major warnings and problems, such as {{tl|high-use}}.
+
| text = type=<u>content</u> – Wobsahowe njedostatki, na př. {{tl|high-use}}.
}}
}}
{{ombox
{{ombox
| type = style
| type = style
-
| text = type=<u>style</u> – Minor warnings and problems. {{tl|intricate}} should perhaps use this type.
+
| text = type=<u>style</u> – Stilowe njedostatki, na př. {{tl|intricate}} <!--should perhaps use this type.-->
}}
}}
{{ombox
{{ombox
| type = notice
| type = notice
-
| text = type=<u>notice</u> – Notices and messages of any kind, both permanent and temporary. Such as {{tl|guideline}} and {{tl|how-to}}.
+
| text = type=<u>notice</u> – Notica abo pokiw, na př. {{tl|prawidło}} a {{tl|how-to}}.
}}
}}
{{ombox
{{ombox
| type = move
| type = move
-
| text = type=<u>move</u> – Merge, split, rename and transwiki messages and proposals.
+
| text = type=<u>move</u> – Namjety na zjednoćenje, rozdźělenje abo přesunjenje, na př.
}}
}}
{{ombox
{{ombox
| type = protection
| type = protection
-
| text = type=<u>protection</u> – Protection templates such as {{tl|pp-protected}} when shown on "other pages".
+
| text = type=<u>protection</u> – informacije wo škitanych nastawkach, na př. {{tl|pp-protected}} <!--when shown on "other pages".-->
}}
}}
-
=== Examples ===
+
=== Přikłady ===
-
Some examples using the "notice" style:
+
Někotre přikłady kotrež "notice" stil wužiwaja:
{{ombox
{{ombox
Rjadka 87: Rjadka 81:
| imageright = {{shortcut|WP:SHORT}}
| imageright = {{shortcut|WP:SHORT}}
| text      =  
| text      =  
-
'''This page documents an English Wikipedia [[Wikipedia:Policies and guidelines|guideline]].''' It is a generally accepted standard that editors should follow, though it should be treated with [[Wikipedia:Use common sense|common sense]] and the [[Wikipedia:Ignore all rules|occasional exception]]. When editing this page, please ensure that your revision reflects [[Wikipedia:Consensus|consensus]]. When in doubt, discuss on the [[{{TALKPAGENAME}}|talk page]].
+
'''Tuta strona dokumentuje [[Wikipedija:Prawidła|prawidła]] hornjoserbkseje Wikipedije.''' Wona je powšitkownje akceptowany standard, kotryž bychu wužiwarjo sćěhować měli, hačrunjež so by treated with [[Wikipedia:Use common sense|common sense]] and the [[Wikipedia:Ignore all rules|occasional exception]]. Jeli wobdźěłaš tutu stronu, prošu zawěsći zo twoje změny [[Wikipedija:Konsens|konsens]] wotpowěduja. Jeli maš dwěl, diskutuj na [[{{TALKPAGENAME}}|diskusijnej stronje]].
}}
}}
{{ombox
{{ombox
Rjadka 96: Rjadka 90:
}}
}}
-
=== Parameters ===
+
=== Parametry ===
-
List of all parameters:
+
Lisćina wšěch parametrow:
<pre>
<pre>
Rjadka 105: Rjadka 99:
| image = none / [[Image:Some image.svg|40px]]
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
-
| style = CSS value
+
| style = CSS hódnota
-
| textstyle = CSS value
+
| textstyle = CSS hódnota
-
| text  = The message body text.  
+
| text  = Wobłuk za zdźělenski tekst.
}}
}}
</pre>
</pre>
'''type'''
'''type'''
-
:If no '''type''' parameter is given the template defaults to type '''notice'''. That means it gets a gray border.
+
:Jeli žadyn '''type''' parameter njeje definowany, to předłohowe předskoki za typ '''notica'''. To woznamjeni zo dósta šěru kromu.
'''image'''
'''image'''
-
:'''No parameter''' = If no '''image''' parameter is given the template uses a default image. Which default image it uses depends on the '''type''' parameter.  
+
:'''Žadyn parameter''' = Jeli žadyn '''image''' parameter njeje definowany, to předłoha wužiwa standardny wobraz. Standardny wobraz wotwisuje wot parametra '''type'''.
-
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:  
+
:'''Někajki wobraz''' = Móžeš za wobraz normalnu wikijowu syntaksu wužiwać. 40px - 50px šěrokosć je zwjetša runje prawa wotwisujo wot proporcije mjez wysokosću wobraza a šěrokosću wobraza. Na př:
::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code>
::<code><nowiki>image = [[Image:Crystal package settings.png|40px]]</nowiki></code>
-
:'''none''' = Means that no image is used.
+
:'''none''' = Woznamjenja, zo so žadyn wobraz njewužiwa.
'''imageright'''
'''imageright'''
-
:'''No parameter''' = If no '''imageright''' parameter is given then no image is shown on the right side.
+
:'''Žadyn parameter''' = Jeli žadyn '''imageright''' parameter njeje definowany, to so žadyn wobraz na prawym boku pokaza.
-
:'''An image''' = Should be an image with usual wiki notation. 40px - 50px width are usually about right depending on the image height to width ratio. (But the message box can handle images of any size.) For example:  
+
:'''Někajki wobraz''' = Móžeš za wobraz normalnu wikijowu syntaksu wužiwać. 40px - 50px šěrokosć je zwjetša runje prawa, wotwisujo wot proporcije mjez wysokosću wobraza a šěrokosću wobraza. Na př.:
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code>
::<code><nowiki>imageright = [[Image:Nuvola apps bookcase.png|40px]]</nowiki></code>
-
:'''Anything''' = Any other object that you want to show on the right side.
+
:Něšto = Někotry druhi objekt, kotryž chceš na prawym boku pokazać.
'''style'''
'''style'''
-
:An optional [[Cascading Style Sheets|CSS]] value used by the entire message box table. Without quotation marks <code>" "</code>. For example:
+
:Opcionalny [[Cascading Style Sheets]] hódnota, kotraž so wužiwa přez nastawkowy zdźělenski kašćik wobsahujo [[HTML]] ({{ž|<nowiki><table style="{{{style|}}}" class="..."> ... </table></nowiki>}}) Na př.:
::<code>style = margin-bottom: 0.5em;</code>
::<code>style = margin-bottom: 0.5em;</code>
'''textstyle'''
'''textstyle'''
-
:An optional [[Cascading Style Sheets|CSS]] value used by the text cell. For example:
+
:Opcionalny  [[Cascading Style Sheets|CSS]] hódnota, kotraž so wužiwa za tekstowu celu. Na př.:
::<code>textstyle = text-align: center;</code>
::<code>textstyle = text-align: center;</code>
'''text'''
'''text'''
-
:The message body text.
+
:Zdźělenski tekst.
-
=== Technical details ===
+
=== Techniske detaile ===
-
If you need to use special characters in the text parameter then you need to escape them like this:  
+
Jeli dyrbiš wužiwać specialne znamješka w parametrje text, to dyrbiš je kaž slěduje maskěrować:  
<pre>
<pre>
{{ombox
{{ombox
| text  = <div>
| text  = <div>
-
Equal sign = and a start and end brace { } work fine as they are.  
+
Znak runosće = spočatkowe kaž tež kóncowe spinki { } funguja derje kaž su.  
-
But here is a pipe {{!}} and two end braces &lt;nowiki>}}&lt;/nowiki>.  
+
Ale tu je "pipe" {{!}} a dwójnej kóncowej spince &lt;nowiki>}}&lt;/nowiki>.  
-
And now a pipe and end braces &lt;nowiki>|}}&lt;/nowiki>.
+
A nětko "pipe" a kónčnej zhibowanej spince &lt;nowiki>|}}&lt;/nowiki>.
</div>
</div>
}}
}}
Rjadka 153: Rjadka 147:
{{ombox
{{ombox
| text  = <div>
| text  = <div>
-
Equal sign = and a start and end brace { } work fine as they are.  
+
Znak runosće = spočatkowe kaž tež kóncowe spinki { } funguja derje kaž su.  
-
But here is a pipe {{!}} and two end braces <nowiki>}}</nowiki>.  
+
Ale tu je pipe {{!}} a dwójnej kóncowej spince <nowiki>}}</nowiki>.  
-
And now a pipe and end braces <nowiki>|}}</nowiki>.
+
A nětko "pipe" a kónčnej zhibowanej spince <nowiki>|}}</nowiki>.
</div>
</div>
}}
}}
 +
===CSS-klasy===
 +
Tuta předłoha wužiwa ombox CSS klasy w [[MediaWiki:Common.css]] za jeje napohlad, tuž je połnje skinnable.
-
This template uses the ombox CSS classes in [[MediaWiki:Common.css]] for most of its looks, thus it is fully skinnable.
+
Klasy CSS so móža tež bjezposrědnje w tabelach wužiwać:
 +
<pre>
 +
{| class="ombox ombox-content"
 +
|-
 +
| class="ombox-image" | [[Wobraz:Emblem-important.svg|40px]]
 +
| Někotry tekst
 +
|}
 +
</pre>
 +
{| class="ombox ombox-content"
 +
|-
 +
| class="ombox-image" | [[Wobraz:Emblem-important.svg|40px]]
 +
| Někotry tekst
 +
|}
-
Internally this meta-template uses HTML markup instead of wiki markup for the table code. That is the usual way we make meta-templates since wiki markup has several drawbacks. For instance it makes it harder to use [[m:Help:ParserFunctions|parser functions]] and special characters in parameters.
 
 +
===Pokiw===
 +
Tuta předłoha profituje z kodowanja w HTML, a nic z wikiteksta. To je normalne wašnje, na kotrež  předłohi za předłohi činimy, dokelž wikitekst ma někotre njelěpšiny. Na přikład je ćežko při nim [[:m:Help:ParserFunctions|funkcije parsera]] a wosebite znamješka w parametrach wužiwać.
 +
<!--
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.
The default images for this meta-template are in png format instead of svg format. The main reason is that some older web browsers have trouble with the transparent background that MediaWiki renders for svg images. The png images here have hand optimised transparent background colour so they look good in all browsers. Note that svg icons only look somewhat bad in the old browsers, thus such hand optimisation is only worth the trouble for very widely used icons.
For more technical details see the [[Template talk:Ombox|talk page]]. Since this template works almost exactly like {{tl|imbox}}, {{tl|ambox}} and {{tl|cmbox}} their talk pages and related pages might also contain more details.
For more technical details see the [[Template talk:Ombox|talk page]]. Since this template works almost exactly like {{tl|imbox}}, {{tl|ambox}} and {{tl|cmbox}} their talk pages and related pages might also contain more details.
 +
-->
 +
=== Hlej tež ===
-
=== See also ===
+
Eksistuja rodźělne meta-předłohi w mbox swójbje:
-
 
+
* {{tl|ambox}} – (za nastawkowe zdźělenske kašćiki)
-
There are several meta-templates in the mbox family:
+
* {{tl|tmbox}} – (za zdźělenki we mjenowym rumje <code>Diskusija:</code> (jendźelsce ''discussion message box''))
-
* {{tl|ambox}} – For article message boxes.
+
* {{tl|imbox}} – (za zdźělenki we mjenowym rumje <code>Wobraz</code> (jendźelsce ''image message box''))
-
* {{tl|tmbox}} – For talk page message boxes.
+
* {{tl|cmbox}} – (za zdźělenki we mjenowym rumje <code>Kategorija</code> (jendźelsce ''category message box''))
-
* {{tl|imbox}} – For image page message boxes.
+
* {{tl|ombox}} – (za zdźělenki na dalšich stronach)
-
* {{tl|cmbox}} – For category message boxes.
+
* {{tl|mbox}} – <!--Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.-->
-
* {{tl|ombox}} – For other pages message boxes.
+
-
* {{tl|mbox}} – Has namespace detection, for message boxes that are used on several types of pages and thus need to change style depending on what page they are used on.
+
<includeonly>
<includeonly>

Wersija z 13:16, 28. dec 2008

To je {{ombox}} abo (jendźelsce other pages message box) meta-předłoha.

Wužiwa so, zo by předłohi za zdźělenske kašćiki za strony sćěhowachych typow wutworił: Wužiwar, Wikipedija, MediaWiki, Předłoha, Pomoc a někajki nowy mjenowy rum. To rěka, stronowe typy njejsu wobjednawane z jednu předłohow {{ambox}}, {{tmbox}}, {{imbox}} abo {{cmbox}}. Tuž njeby wužiwać měła za kašćiki za nastawki, diskusijne strony, wobrazowe strony abo kategorijowe strony.

Tuta předłoha zwjetša eksaktnje kaž {{ambox}} dźěła a wužiwa samsne parametry.

Wobsah

Wužiće

Jednory přikład:

{{ombox | text = Někajki tekst.}}


Kompleksny přikład:

{{ombox
| type      = style
| image     = [[Image:Emblem-question-yellow.svg|40px]]
| style     = width: 400px; 
| textstyle = color: red; font-weight: bold; font-style: italic;
| text      = Wobłuk za zdźělenski tekst.
}}

Druhe typy zdźělenskich kašćikow

Scéhowace přikłady wužiwaja rozdźělne type parametry ale njewužiwaja žadyn image parametry. Zuž wužiwaja normalne wobrazy za wšě typy.

Přikłady

Někotre přikłady kotrež "notice" stil wužiwaja:

Parametry

Lisćina wšěch parametrow:

{{ombox
| type  = speedy / delete / content / style / notice / move / protection
| image = none / [[Image:Some image.svg|40px]]
| imageright = [[Image:Some image.svg|40px]]
| style = CSS hódnota
| textstyle = CSS hódnota
| text  = Wobłuk za zdźělenski tekst.
}}

type

Jeli žadyn type parameter njeje definowany, to předłohowe předskoki za typ notica. To woznamjeni zo dósta šěru kromu.

image

Žadyn parameter = Jeli žadyn image parameter njeje definowany, to předłoha wužiwa standardny wobraz. Standardny wobraz wotwisuje wot parametra type.
Někajki wobraz = Móžeš za wobraz normalnu wikijowu syntaksu wužiwać. 40px - 50px šěrokosć je zwjetša runje prawa wotwisujo wot proporcije mjez wysokosću wobraza a šěrokosću wobraza. Na př:
image = [[Image:Crystal package settings.png|40px]]
none = Woznamjenja, zo so žadyn wobraz njewužiwa.

imageright

Žadyn parameter = Jeli žadyn imageright parameter njeje definowany, to so žadyn wobraz na prawym boku pokaza.
Někajki wobraz = Móžeš za wobraz normalnu wikijowu syntaksu wužiwać. 40px - 50px šěrokosć je zwjetša runje prawa, wotwisujo wot proporcije mjez wysokosću wobraza a šěrokosću wobraza. Na př.:
imageright = [[Image:Nuvola apps bookcase.png|40px]]
Něšto = Někotry druhi objekt, kotryž chceš na prawym boku pokazać.

style

Opcionalny Cascading Style Sheets hódnota, kotraž so wužiwa přez nastawkowy zdźělenski kašćik wobsahujo HTML (<table style="{{{style|}}}" class="..."> ... </table>) Na př.:
style = margin-bottom: 0.5em;

textstyle

Opcionalny CSS hódnota, kotraž so wužiwa za tekstowu celu. Na př.:
textstyle = text-align: center;

text

Zdźělenski tekst.

Techniske detaile

Jeli dyrbiš wužiwać specialne znamješka w parametrje text, to dyrbiš je kaž slěduje maskěrować:

{{ombox
| text  = <div>
Znak runosće = spočatkowe kaž tež kóncowe spinki { } funguja derje kaž su. 
Ale tu je "pipe" {{!}} a dwójnej kóncowej spince <nowiki>}}</nowiki>. 
A nětko "pipe" a kónčnej zhibowanej spince <nowiki>|}}</nowiki>.
</div>
}}

CSS-klasy

Tuta předłoha wužiwa ombox CSS klasy w MediaWiki:Common.css za jeje napohlad, tuž je połnje skinnable.

Klasy CSS so móža tež bjezposrědnje w tabelach wužiwać:

{| class="ombox ombox-content"
|-
| class="ombox-image" | [[Wobraz:Emblem-important.svg|40px]]
| Někotry tekst
|}
Dataja:Emblem-important.svg Někotry tekst


Pokiw

Tuta předłoha profituje z kodowanja w HTML, a nic z wikiteksta. To je normalne wašnje, na kotrež předłohi za předłohi činimy, dokelž wikitekst ma někotre njelěpšiny. Na přikład je ćežko při nim funkcije parsera a wosebite znamješka w parametrach wužiwać.

Hlej tež

Eksistuja rodźělne meta-předłohi w mbox swójbje:

  • {{ambox}} – (za nastawkowe zdźělenske kašćiki)
  • {{tmbox}} – (za zdźělenki we mjenowym rumje Diskusija: (jendźelsce discussion message box))
  • {{imbox}} – (za zdźělenki we mjenowym rumje Wobraz (jendźelsce image message box))
  • {{cmbox}} – (za zdźělenki we mjenowym rumje Kategorija (jendźelsce category message box))
  • {{ombox}} – (za zdźělenki na dalšich stronach)
  • {{mbox}}