సహాయము:Variable
వికీపీడియా నుండి
మూస:H:h
వికీటెక్స్ట్లో వాడే చరాల (variables) జాబితా ఇది. వాటి విలువలు ప్రాజెక్టు పైన, వాడిన సమయమూ, పేజీ పైన ఆధారపడి ఉంటాయి.
చరాళు ఎడమ వైపున, ఈ సమయంలో, తెలుగు వికీపీడియాలో, ఈ పేజీలో వాటి విలువలు కుడి వైపున ఉన్నాయి.
విషయ సూచిక |
[మార్చు] స్థిరాలు, ప్రాజెక్టు పైన మాత్రమే ఆధారపడి ఉండేవి
{{ns:-2}} or {{ns:Media}} | మీడియా |
{{ns:-1}} or {{ns:Special}} | ప్రత్యేక |
{{ns:1}} or {{ns:Talk}} | చర్చ |
{{ns:2}} or {{ns:User}} | సభ్యుడు |
{{ns:3}} or {{ns:User_talk}} | సభ్యులపై_చర్చ |
{{ns:4}} or {{ns:Project}} | Wikipedia |
{{ns:5}} or {{ns:Project_talk}} | Wikipedia_చర్చ |
{{ns:6}} or {{ns:Image}} | బొమ్మ |
{{ns:7}} or {{ns:Image_talk}} | బొమ్మపై_చర్చ |
{{ns:8}} or {{ns:MediaWiki}} | మీడియావికీ |
{{ns:9}} or {{ns:MediaWiki_talk}} | మీడియావికీ_చర్చ |
{{ns:10}} or {{ns:Template}} | మూస |
{{ns:11}} or {{ns:Template_talk}} | మూస_చర్చ |
{{ns:12}} or {{ns:Help}} | సహాయము |
{{ns:13}} or {{ns:Help_talk}} | సహాయము_చర్చ |
{{ns:14}} or {{ns:Category}} | వర్గం |
{{ns:15}} or {{ns:Category_talk}} | వర్గం_చర్చ |
depending on custom namespaces: {{ns:100}} - {{ns:121}} |
- |
{{SITENAME}} | Wikipedia |
{{SERVER}} | http://te.wikipedia.org |
{{localurl:pagename}} | ../../../p/a/g/Pagename.html |
{{localurl:pagename|query string}} | ../../../p/a/g/Pagename.html |
{{int:fromwikipedia}} | వికిపీడియా నుంచి |
"INT:" is used to get text from wfMsg, such as messages in the LanguageXx.php file (see example over). It is short for "internal".
[మార్చు] సమయాన్ని అనుసరించి మారేవి
{{CURRENTMONTH}} | 12 |
{{CURRENTMONTHNAME}} | డిసెంబర్ |
{{CURRENTMONTHABBREV}} | డిసెంబర్ |
{{CURRENTMONTHNAMEGEN}} | December |
{{CURRENTWEEK}} | 51 |
{{CURRENTDAY}} | 23 |
{{CURRENTDAYNAME}} | శనివారము |
{{CURRENTDOW}} | 6 |
{{CURRENTYEAR}} | 2006 |
{{CURRENTTIME}} | 06:16 |
{{NUMBEROFARTICLES}} | 25,048 |
NUMBEROFARTICLES: ప్రధాన నేంస్పేసులో లింకు ఉన్న పేజీల సంఖ్య. దారిమార్పు పేజీలు ఈ సంఖ్యలోకి రావు. అంటే, వ్యాసాలు, మొలకలు, అయోమయ నివృత్తి పేజీల సంఖ్య అన్నమాట.
CURRENTWEEK ఇదివరకటి మీడియావికీ కూర్పులలో లేదు. దీని విలువ 1, 54 మధ్య ఉంటుంది.
CURRENTDOW అంటే వారంలో ఎన్నో రోజు అని. సోమవారం=1,.. అలాగ.
[మార్చు] పేజీని బట్టి
{{NAMESPACE}} | సహాయము |
{{PAGENAME}} | Variable |
{{PAGENAMEE}} | Variable |
PAGENAMEE పేజీ పేరును ఖాళీలు లేకుండా, స్పెషలు కారక్టర్లు లేకూండా చూపిస్తుంది. ఉదాహరణకు "కొత్త పేజీ" అనే పేజీ పేరును PAGENAMEE ఇలా చూపిస్తుంది: "కొత్త_'పేజీ".
ఏదైనా మూస లో వాడినపుడు, ఈ మూడు చరాలు కూడా ఆ మూసను వాడిన పేజీని సూచిస్తాయి కాని, ఆ మూస పేజీని కాదు.
[మార్చు] కూర్పును అనుసరించి
{{REVISIONID}} 11867
Would be available in 1.5/2.0 and give out the actual revision of the text (aka the old_id from used in 1.4). Useful for citation in newspaper, scholar works ... It can not be made available in 1.4 or previous.
Reference: bugzilla #1739
[మార్చు] Examples of combinations
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}|action=edit}} | http://te.wikipedia.org../../../v/a/r/%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%AE%E0%B1%81%7EVariable_f504.html |
{{SERVER}}{{localurl:Special:Whatlinkshere|target={{NAMESPACE}}:{{PAGENAME}}}} | http://te.wikipedia.org../../../w/h/a/%E0%B0%AA%E0%B1%8D%E0%B0%B0%E0%B0%A4%E0%B1%8D%E0%B0%AF%E0%B1%87%E0%B0%95%7EWhatlinkshere_636c.html |
[[{{NAMESPACE}}:{{PAGENAME}}_1]] | సహాయము:Variable_1 |
{{SERVER}}{{localurl:{{NAMESPACE}}:{{PAGENAME}}_1}} | http://te.wikipedia.org../../../v/a/r/%E0%B0%B8%E0%B0%B9%E0%B0%BE%E0%B0%AF%E0%B0%AE%E0%B1%81%7EVariable_1_5ff1.html |
Note that PAGENAME with single E has to be used within localurl, otherwise it does not work with special characters. For example, for a page named É we get {{localurl:É}}, which correctly gives ../../../%C3%A9/_/_/%C3%89.html (with {{SERVER}} in front http://te.wikipedia.org../../../%C3%A9/_/_/%C3%89.html, linking to the page É), while {{PAGENAMEE}} gives %C9, and {{localurl:%C9}} gives ../../../_/_/_/.html, i.e. it is rendered unchanged, the function localurl is not applied. With {{SERVER}} in front it gives http://te.wikipedia.org../../../_/_/_/.html, which is a dead link reported by the browser, the server is not even reached.
See also m:Template:UTC.
In a template, for a link to a page which depends on a template parameter, the external link style is used even for internal links, to avoid that the system links to the edit page even if the page exists. To construct the external link, variables can also be useful.
[మార్చు] లింకుల్లో చరాలు
చరాలు లింకుల్లో కూడా పనిచేస్తాయి:
- [[a{{NAMESPACE}}b|c{{PAGENAME}}d]] ఇలా చూపిస్తుంది: cVariabled
[మార్చు] ఇంకా చూడండి
- Images in templates.
- Help:Template#subst - on applying "subst" to a variable or to a template using a variable
మూస:H:f