დახმარება:ჯადოსნური სიტყვები

რედაქტირება
ახალი გვერდის შექმნა
Page name

Referencing
Links
Piped links
Interwiki linking
Footnotes (References)

ფორმატირება
Wikitext
სიები და ცხრილები
Image & file uploads
Formulae

Organising
Sections
Categories
Redirects (forward)
Namespaces
Moving a page
Page size

Fixing mistakes
Reverting edits
წინასწარ გადახედვა

Saving effort
Editing shortcuts
Edit toolbar
ჯადოსნური სიტყვები
Templates
ცვლადები
Calculation

Communicating
რეზიუმეს ველი
Talk page
რედაქტირების კონფლიქტი
მცირე შესწორება

Other
Characters
სავარჯიშო

ეს არის მედიავიკიში ჯადოსნური სიტყვების ორგანიზებული სარჩევი.

"ჯადოსნური სიტყვა" არის სიმბოლო, რომელსაც მედიავიკის პროგრამა იგებს და, რომელსაც ეს პროგრამა გვერდის ტექსტში დანახვისას უბიძგებს შეასრულოს რაღაც ბრძანება ამ სიმბოლოს გამოტანის ნაცვლად. ჯადოსნური სიტყვა შეიძლება იყოს:

  • ლათინური მთავრულით დაწერილი სიტყვა, რომელსაც თავში და ბოლოში ორმაგი ხაზგასმა აქვს, მაგ. __NOTOC__
  • XML ობიექტი, კოდირებული HTML-ის მსგავსად, რომელსაც წინ უძღვის "<" (ხოლო დაბოლოებისთვის "/") და სრულდება ">", როგორც მაგ. <nowiki>...</nowiki>
  • რაიმე პარსერფუნქცია: თარგის მსგავსად, რაიმე სიტყვა წინ უძღვის სიმბოლოებს "{{" და მოსდევს "}}", და ასევე არააუცილებელი პარამეტრი განსაზღვრისთვის ვერტიკალურ ხაზებს შორის, მაგ. {{ns:3}} და {{#ifexpr:{{{1}}}>3|large|small}}
  • ცვლადი: მსგავსია თარგისა პარამეტრების გარეშე, სიტყვა, რომელსაც წინ უძღვის სიმბოლოები "{{" და მოსდევს "}}", იმ განსხვავებით, რომ სიტყვა მასში ლათინური ასომთავრულით არის, მაგ. {{CURRENTDAY}}
  • თარგის მოდიფაიერი
  • სურათის მოდიფაიერი

If a page in the template namespace has the same name as a magic word, the magic word will be invoked instead. If you discover you absolutely have to define a template with the same name as a magic word, prefix the name of the template with "msg:" or the name of the template namespace ("Template:"). See below for further details if you need this feature.

Tags which are used on this page such as "[MW1.5+]" indicate the version that first supported the magic word. "XYZ" indicates user input, which is used in the example.

ჯადოსნური სიტყვები ორმაგი ხაზგასმით

სარჩევი

დეტალური ინფორმაციისთვის იხილეთ: Help:Section
სიტყვა განსაზღვრა
__NOTOC__ დამალავს სარჩევს მიმდინარე გვერდზე.
__FORCETOC__ ძალდატანებით გამოაჩენს სარჩევს მოცემულ გვერდზე.
__TOC__ ჩასვამს სარჩევს აქ (წინ დასმული __NOTOC__-ის მიუხედავად).


სხვა

სიტყვა განსაზღვრა
__NOEDITSECTION__ დამალავს რედაქტირების ბმულებს სათაურების გვერდით.
__NEWSECTIONLINK__ [MW1.7+] იძლევა "+"-ბმულს რედაქტირების ყუის გვერდით ახალი სექციის გასახსნელად განხილვის გვერდზე.
__NOCONTENTCONVERT__
__NOCC__
Don't perform the content language conversion (character and phase) in article display; for example, Chinese zh with zh_cn, zh_tw, zh_sg, zh_hk.
__NOGALLERY__ [MW1.7+] This magic word allows images in category pages to be displayed as inline links instead of gallery.
__NOTITLECONVERT__
__NOTC__
Like __NOCC__ but affecting article title only.
__END__ Allows for trailing whitespace to be included in the page save (does not seem to work anymore).
__START__ This magic word has no effect but an ID in MagicWord.php (MAG_START).


XML-სტილის ბრძანებები

nowiki: <nowiki>...</nowiki>, disables expansion/interpretation of templates, link syntax, formatting syntax, etc.: <nowiki>'''[[{{tc}}]]'''</nowiki> gives '''[[{{tc}}]]'''

pre: <pre>...</pre>, ditto, also for multiple lines; it is rendered with a new paragraph at the start and end: a<pre>'''[[{{tc}}]]'''</pre>b gives a

'''[[{{tc}}]]'''

b

math: <math>...</math>, e.g. <math>\sqrt{a^2+b^2}</math> gives  ; see Displaying a formula

hiero: <hiero>...</hiero>, e.g. <hiero>A1</hiero> gives:

A1

იხ. ასევე: Extending wiki markup.

ცვლადები

დეტალური ინფორმაციისთვის იხილეთ: დახმარება:ცვლადები

დრო

The time in UTC. Note that if the page was displayed by the same user and has not changed (has not been edited) since the last time it was displayed, it is possible that the page may be cached (by the user's browser) and the displayed time or date may not change. Also, if a heavily used page, rather than freshly rendered by the software each time it is generated, is instead being retrieved from a caching system (such as the main page on Wikipedia) the date or time may not change from the last time the page was originally retrieved by the caching hardware or software.

სიტყვა ნიმუში განსაზღვრა
{{CURRENTDAY}} 28 Displays the current day in numeric form.
{{CURRENTDAY2}} 28 [MW1.6+] Same as {{CURRENTDAY}}, but with leading zero (01 .. 31).
{{CURRENTDAYNAME}} ხუთშაბათი Name of the day in the language of the project or English.
{{CURRENTDOW}} 4 Same as {{CURRENTDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{CURRENTMONTH}} 03 The number 01 .. 12 of the month.
{{CURRENTMONTHABBREV}} მარ [MW1.5+] Same as {{CURRENTMONTH}}, but in abbreviated form as Jan .. Dec.
{{CURRENTMONTHNAME}} მარტი Same as {{CURRENTMONTH}}, but in named form January .. December.
{{CURRENTTIME}} 16:29 The current time (00:00 .. 23:59).
{{CURRENTHOUR}} 16 The current hour (00 .. 23).
{{CURRENTMINUTE}} 29 The current minute (00 .. 59).
{{CURRENTWEEK}} 13 Number of the current week (1-53) according to ISO 8601 with no leading zero.
{{CURRENTYEAR}} 2024 Returns the current year.
{{CURRENTTIMESTAMP}} 20240328162926 [MW1.7+] ISO 8601 time stamp.


ადგილობრივი დრო

The time depending on the local timezone of the wiki (not depending on the timezone in the user's preference settings). (All words [MW1.8+] )

Word Example Explanation
{{LOCALDAY}} 28 Displays the local day of the month in numeric form.
{{LOCALDAY2}} 28 Same as {{LOCALDAY}}, but with a leading zero (01 .. 31).
{{LOCALDAYNAME}} ხუთშაბათი Name of the day in the language of the project or English.
{{LOCALDOW}} 4 Same as {{LOCALDAYNAME}}, but as a number (0=Sunday, 1=Monday...).
{{LOCALMONTH}} 03 The number 01 .. 12 of the month.
{{LOCALMONTHABBREV}} მარ Same as {{LOCALMONTH}}, but in abbreviated form as Jan .. Dec.
{{LOCALMONTHNAME}} მარტი Same as {{LOCALMONTH}}, but in named form as January .. December.
{{LOCALTIME}} 16:29 The local time (00:00 .. 23:59).
{{LOCALHOUR}} 16 The local hour (00 .. 23).
{{LOCALWEEK}} 13 Number of the local week (1-53) according to ISO 8601 with no leading zero.
{{LOCALYEAR}} 2024 Returns the local year.
{{LOCALTIMESTAMP}} 20240328162926 ISO 8601 time stamp.


სტატისტიკა

Statistics variables give thousands separators unless ":R" for "raw" is added (actually, these versions are parser functions).

Word Example Explanation
{{CURRENTVERSION}} 1.42.0-wmf.23 (768fd92) [MW1.7+] თარგი:H:mwg [1]
{{NUMBEROFEDITS}}
{{NUMBEROFEDITS:R}}
4 627 423
4627423
[MW1.10+ (r21319)] Returns the total number of page edits since MediaWiki, the software that runs this site, was installed.
{{NUMBEROFARTICLES}}
{{NUMBEROFARTICLES:R}}
171 725
171725
A variable which returns the total number of articles on the Wiki.
{{NUMBEROFPAGES}}
{{NUMBEROFPAGES:R}}
483 092
483092
[MW1.7+] Returns the total number of pages. [2]
{{NUMBEROFFILES}}
{{NUMBEROFFILES:R}}
15 761
15761
[MW1.5+] Returns the number of uploaded files (rows in the image table).
{{NUMBEROFUSERS}}
{{NUMBEROFUSERS:R}}
159 058
159058
[MW1.7+] Returns the number of registered users (rows in the user table).
{{NUMBEROFADMINS}}
{{NUMBEROFADMINS:R}}
6
6
[MW1.7+] Returns the number of administrators (sysop, bureaucrat, steward and checkuser).
{{PAGESINNAMESPACE}}  disabled here Longer alias of PAGESINNS
{{PAGESINNS:ns}}
{{PAGESINNS:ns:R}}
{{PAGESINNS:2}} 
{{PAGESINNS:2:R}} 
disabled here
[MW1.7+] Returns the number of pages in the given namespace. Disabled by default, enable with თარგი:H:mwg.


გვერდების სახელები და დაკავშირებული ინფო

H:Page name variables

პარსერფუნქციები

დეტალური ინფორმაციისთვის იხილეთ: Help:Parser function.

Not working at the position of the page where the tag is located but on the page header, and throughout the page, respectively (see below):

  • DISPLAYTITLE: allow the page header to be different from the page name.
  • DEFAULTSORT: Sets a default category sort key for the page.

სახელთა სივრცეები და URL-ები

Word Example Explanation
{{ns:}} {{ns:4}} = ვიკიპედია
{{ns:project}} = ვიკიპედია
Returns the name of a given namespace number.
{{localurl:x y @}}
{{localurle:x y @}}
{{localurl:a|b=c}}
{{localurl:Wikipedia:Category}}
/wiki/X_y_@
/wiki/X_y_@
/w/index.php?title=A&b=c
/wiki/%E1%83%95%E1%83%98%E1%83%99%E1%83%98%E1%83%9E%E1%83%94%E1%83%93%E1%83%98%E1%83%90:Category
Returns the local URL of a page (might not exist). Optional query parameter, see დახმარება:ცვლადები.
{{urlencode:x y @}} x+y+%40 [MW1.7+] Encodes variable values for use in external links. [3]
{{anchorencode:x #y @}} x_#y_@ [MW1.8+] Encodes variable values for use in section anchors. [4]
{{fullurl:x y @}}
{{fullurle:x y @}}
{{fullurl:m:a|b=c}}
//ka.wikipedia.org/wiki/X_y_@
//ka.wikipedia.org/wiki/X_y_@
https://meta.wikimedia.org/wiki/a?b=c
[MW1.5+] Returns the full URL of a given page. Optional query parameter as for localurl:.


ფორმატირება

Word Example Explanation
{{#language:}} {{#language:da}} = dansk [MW1.7+] Native name of language code.
{{lc:}} {{lc:AbC dEf}} = abc def [MW1.5+] LowerCase
{{lcfirst:}} {{lcfirst:Ab Cd}} = ab Cd [MW1.5+] LC first char.
{{uc:}} {{uc:aBc DeF}} = ABC DEF [MW1.5+] UpperCase
{{ucfirst:}} {{ucfirst:aB cD}} = AB cD [MW1.5+] UC first char.
{{formatnum:}} {{formatnum:-299792458.56789}} = −299 792 458,56789 [MW1.7+] Add decimal separators according to the wiki's default locale. Leading minus and plus are recognized.
{{padleft:}}




{{padright:}}

{{padleft:7|3|0}} = 007

{{padleft:bcd|6|a}} = aaabcd
{{padleft:café|8|-}} = ----café(<==Bug effect)
{{padleft:cafe|8|-}} = ----cafe

{{padleft:bcd|6|{{!}}}} = |||bcd

{{padright:bcd|6|a}} = bcdaaa


First case is, for example, applicable to years in a category... giving an ordered year to sort by pipetricks order, or any such ordering where left extended zeros allow a proper sorting.

[MW1.8+] Pads a string with a character to the specified width. Note that there's a little bug that interprets non-US-ASCII characters as two, instead of one character (see the difference in café and cafe in the examples.)

It does not seem possible to use padleft and padright for padding with characters with a multi-character code, such as &nbsp;, which would be useful with padleft for sorting tables with Javascript.


თარგების მოდიფაიერები

Usage Explanation
{{:xyz}} A bare colon is not a template modifier, it's the prefix for the main namespace. Test e.g. article {{:UTC}} vs. template {{UTC}}.
Using this syntax you include the text of the main namespace article xyz in another article.
{{int:xyz}} Shorthand for {{MediaWiki:xyz}}, rendered as ⧼xyz⧽ if MediaWiki:xyz doesn't exist. See also Help:System message.
{{msg:xyz}} Even if there is a magic word named "xyz", use template:xyz unless the template doesn't exist (equivalent to {{template:xyz}}). Normally, magic words have priority when there is a conflict.
{{msgnw:xyz}} The unevaluated wikitext is rendered. See msgnw.
{{raw:xyz}} [MW1.6+] Equivalent to {{msg:xyz}} above[1].
{{subst:xyz}} In the wikitext, the tag is substituted by the content (single-level evaluation only), see Help:Substitution.


სურათის მოდიფაიერები

დეტალური ინფორმაციისთვის იხილეთ: w:en:Wikipedia:Extended image syntax.

These are image modifiers used in [[სურათი:title.ext|modifier|...|modifier]] links. Some are mutually exclusive, and then the last specified wins.

ზომა

The last unrecognized modifier is used as caption for framed images or together with thumbnails. It's also used as description alt=text.

Word Usage Explanation
framed
frame
enframed
[[სურათი:Mediawiki.png|framed]] Places an image in a frame with a description. Uses original size and stubbornly ignores width parameter if given.
In general, far better to use thumb, as is only suitable for small images.
thumbnail
thumb
[[სურათი:Mediawiki.png|thumbnail]] Modifies image size, sets it to dependant on user's favourite thumbnail size in their preferences, or on the given width parameter (see below).
thumb=xyz [[სურათი:Mediawiki.png|thumb=Wiki.png]] Manualthumb: instead of displaying an automatically-sized thumbnail for Mediawiki.png, display the image Wiki.png.
width px
100x200px
[[სურათი:Mediawiki.png|40px]]
[[სურათი:Mediawiki.png|100x200px]]
Scales image to given width  in pixels
Scales image to no more than 100 pixels wide and no more than 200 high, but image scaled to retain it's true aspect ratio within the boundary specified.


მდებარეობა

დეტალური ინფორმაციისთვის იხილეთ: Help:Images_and_other_uploaded_files

The positions are mutually exclusive; the last specified wins. Template:- can stop floating. For inline images only modifier px (see above) is supported.

Word Usage Explanation
right [[სურათი:Mediawiki.png|right]] Modifies position, floats the image to the right.
left [[სურათი:Mediawiki.png|left]] Modifies position, floats the image to the left.
none [[სურათი:Mediawiki.png|none]] Explicitly states that the image should not float.
center
centre
[[სურათი:Mediawiki.png|center]] Modifies position, like none but centered.


სხვადასხვა

Word Example Explanation
{{DISPLAYTITLE:xyz}} default disabled [MW 1.7+] Set the page's title [5], see თარგი:H:mwg.
{{DIRMARK}}
{{DIRECTIONMARK}}

[MW1.7+] u+200E left to right or u+200D right to left mark
{{CONTENTLANGUAGE}} ka [MW1.7+] code of the site's default interface language (თარგი:H:mwg)
{{DEFAULTSORT:xyz}} {{DEFAULTSORT:xyz}} [MW1.10+] Sets a default category sort key for the whole current page (also applying for category tags before this tag)[2].
#REDIRECT #REDIRECT [[target]]
at top of source page
Creates a redirect to another page.


ენაზე დამოკიდებული სიტყვის მოდიფიცირება

Word Example Explanation
{{ CURRENTMONTHNAMEGEN }} მარტის Genitive form of month name used for Czech, Polish, Ukrainian[6]
{{grammar:case | word }} {{grammar:7sg|Wikipedie}}
on cs: is Wikipedií.
Derived word forms in inflected languages like Czech [7]
{{plural:count |form1 |form2 }}
{{plural:count |1st | 2nd | 3rd }}
{{plural: 2 | is | are }}
outputs are
{{plural: 0 | this | these }}
outputs these
count 1 yields form1 (singular), plural transformations are used for languages like Russian [8] based on "count mod 10".


"Grammar" and "Plural" are language-dependent functions, defined in [9], [10], etc. (note that in PHP, the modulo operator is the percent sign).

"Grammar" can either be applied to predefined words only, or to arbitrary words, depending on whether the definition is just a 2D array, or involves string manipulations. See also cs:Šablona:Wikivar/GRAMMAR.

"Plural" is a site-language-dependent switch function, controlled by function convertPlural in Language.php (which distinguishes between 1 and "not 1"), for some languages overridden in Languagexx.php, e.g. for French (which distinguishes between <=1 and >1) and Russian (oddly, first option is 1, 21, 31,.., 91, 101, 121, .., second is 2, 3, 4, 22, 23, 24, 31, 32, 33, 41,.., 94, 102, 103, 104,.., 122, 123,.., and else the third).

As opposed to ParserFunctions, "plural" accepts points and commas in numbers and interprets them in a site-language-specific way (depending on $separatorTransformTable in Messagesxx.php); on this site:

  • {{plural:1.000|a|b|c}} gives a
  • {{plural:1,000|a|b|c}} gives b

(on e.g. the German and the Dutch sites reversed w.r.t. the result on English sites).

"Plural" is used in various system messages, e.g. თარგი:Msg, where it uses interface language instead of site language.

იხ. ასევე

სქოლიო

  1. Wikimedia SVN revision 12925
  2. "Technology report", en-Wikipedia Signpost, January 2007

თარგი:H:f