వికీవ్యాఖ్య tewikiquote https://te.wikiquote.org/wiki/%E0%B0%AE%E0%B1%8A%E0%B0%A6%E0%B0%9F%E0%B0%BF_%E0%B0%AA%E0%B1%87%E0%B0%9C%E0%B1%80 MediaWiki 1.48.0-wmf.1 first-letter మీడియా ప్రత్యేక చర్చ వాడుకరి వాడుకరి చర్చ వికీవ్యాఖ్య వికీవ్యాఖ్య చర్చ దస్త్రం దస్త్రంపై చర్చ మీడియావికీ మీడియావికీ చర్చ మూస మూస చర్చ సహాయం సహాయం చర్చ వర్గం వర్గం చర్చ TimedText TimedText talk మాడ్యూల్ మాడ్యూల్ చర్చ Event Event talk వికీవ్యాఖ్య:Quick index 4 1802 26597 26424 2026-11-03T09:33:32Z Vjsuseela 2290 26597 wikitext text/x-wiki ఈ '''అక్షరానుసార సూచీ''' నేరుగా ఆయా అక్షరముతో మొదలయ్య వ్యాసముల జాబితాకు తీసుకు వెళుతుంది == అక్షరానుసార సూచీ == {| |- align=center |'''[[Special:Allpages/అ|అ]]''' |'''[[Special:Allpages/ఆ|ఆ]]''' |'''[[Special:Allpages/ఇ|ఇ]]''' |'''[[Special:Allpages/ఈ|ఈ]]''' |'''[[Special:Allpages/ఉ|ఉ]]''' |'''[[Special:Allpages/ఊ|ఊ]]''' |'''[[Special:Allpages/ఋ|ఋ]]''' |'''[[Special:Allpages/ౠ|ౠ]]''' |'''[[Special:Allpages/ఎ|ఎ]]''' |'''[[Special:Allpages/ఏ|ఏ]]''' |'''[[Special:Allpages/ఐ|ఐ]]''' |'''[[Special:Allpages/ఒ|ఒ]]''' |'''[[Special:Allpages/ఓ|ఓ]]''' |'''[[Special:Allpages/ఔ|ఔ]]''' |'''[[Special:Allpages/అఁ|అఁ]]''' |'''[[Special:Allpages/అం|అం]]''' |'''[[Special:Allpages/అః|అః]]''' |- |'''[[Special:Allpages/క|క]]''' |[[Special:Allpages/కా|కా]] |[[Special:Allpages/కి|కి]] |[[Special:Allpages/కీ|కీ]] |[[Special:Allpages/కు|కు]] |[[Special:Allpages/కూ|కూ]] |[[Special:Allpages/కృ|కృ]] |[[Special:Allpages/కౄ|కౄ]] |[[Special:Allpages/కె|కె]] |[[Special:Allpages/కే|కే]] |[[Special:Allpages/కై|కై]] |[[Special:Allpages/కొ|కొ]] |[[Special:Allpages/కో|కో]] |[[Special:Allpages/కౌ|కౌ]] |[[Special:Allpages/కఁ|కఁ]] |[[Special:Allpages/కం|కం]] |[[Special:Allpages/కః|కః]] |[[Special:Allpages/క్|క్]] |- |'''[[Special:Allpages/ఖ|ఖ]]''' |[[Special:Allpages/ఖా|ఖా]] |[[Special:Allpages/ఖి|ఖి]] |[[Special:Allpages/ఖీ|ఖీ]] |[[Special:Allpages/ఖు|ఖు]] |[[Special:Allpages/ఖూ|ఖూ]] |[[Special:Allpages/ఖృ|ఖృ]] |[[Special:Allpages/ఖౄ|ఖౄ]] |[[Special:Allpages/ఖె|ఖె]] |[[Special:Allpages/ఖే|ఖే]] |[[Special:Allpages/ఖై|ఖై]] |[[Special:Allpages/ఖొ|ఖొ]] |[[Special:Allpages/ఖో|ఖో]] |[[Special:Allpages/ఖౌ|ఖౌ]] |[[Special:Allpages/ఖఁ|ఖఁ]] |[[Special:Allpages/ఖం|ఖం]] |[[Special:Allpages/ఖః|ఖః]] |[[Special:Allpages/ఖ్|ఖ్]] |- |'''[[Special:Allpages/గ|గ]]''' |[[Special:Allpages/గా|గా]] |[[Special:Allpages/గి|గి]] |[[Special:Allpages/గీ|గీ]] |[[Special:Allpages/గు|గు]] |[[Special:Allpages/గూ|గూ]] |[[Special:Allpages/గృ|గృ]] |[[Special:Allpages/గౄ|గౄ]] |[[Special:Allpages/గె|గె]] |[[Special:Allpages/గే|గే]] |[[Special:Allpages/గై|గై]] |[[Special:Allpages/గొ|గొ]] |[[Special:Allpages/గో|గో]] |[[Special:Allpages/గౌ|గౌ]] |[[Special:Allpages/గఁ|గఁ]] |[[Special:Allpages/గం|గం]] |[[Special:Allpages/గః|గః]] |[[Special:Allpages/గ్|గ్]] |- |'''[[Special:Allpages/ఘ|ఘ]]''' |[[Special:Allpages/ఘా|ఘా]] |[[Special:Allpages/ఘి|ఘి]] |[[Special:Allpages/ఘీ|ఘీ]] |[[Special:Allpages/ఘు|ఘు]] |[[Special:Allpages/ఘూ|ఘూ]] |[[Special:Allpages/ఘృ|ఘృ]] |[[Special:Allpages/ఘౄ|ఘౄ]] |[[Special:Allpages/ఘె|ఘె]] |[[Special:Allpages/ఘే|ఘే]] |[[Special:Allpages/ఘై|ఘై]] |[[Special:Allpages/ఘొ|ఘొ]] |[[Special:Allpages/ఘో|ఘో]] |[[Special:Allpages/ఘౌ|ఘౌ]] |[[Special:Allpages/ఘఁ|ఘఁ]] |[[Special:Allpages/ఘం|ఘం]] |[[Special:Allpages/ఘః|ఘః]] |[[Special:Allpages/ఘ్|ఘ్]] |- |'''[[Special:Allpages/చ|చ]]''' |[[Special:Allpages/చా|చా]] |[[Special:Allpages/చి|చి]] |[[Special:Allpages/చీ|చీ]] |[[Special:Allpages/చు|చు]] |[[Special:Allpages/చూ|చూ]] |[[Special:Allpages/చృ|చృ]] |[[Special:Allpages/చౄ|చౄ]] |[[Special:Allpages/చె|చె]] |[[Special:Allpages/చే|చే]] |[[Special:Allpages/చై|చై]] |[[Special:Allpages/చొ|చొ]] |[[Special:Allpages/చో|చో]] |[[Special:Allpages/చౌ|చౌ]] |[[Special:Allpages/చఁ|చఁ]] |[[Special:Allpages/చం|చం]] |[[Special:Allpages/చః|చః]] |[[Special:Allpages/చ్|చ్]] |- |'''[[Special:Allpages/ఛ|ఛ]]''' |[[Special:Allpages/ఛా|ఛా]] |[[Special:Allpages/ఛి|ఛి]] |[[Special:Allpages/ఛీ|ఛీ]] |[[Special:Allpages/ఛు|ఛు]] |[[Special:Allpages/ఛూ|ఛూ]] |[[Special:Allpages/ఛృ|ఛృ]] |[[Special:Allpages/ఛౄ|ఛౄ]] |[[Special:Allpages/ఛె|ఛె]] |[[Special:Allpages/ఛే|ఛే]] |[[Special:Allpages/ఛై|ఛై]] |[[Special:Allpages/ఛొ|ఛొ]] |[[Special:Allpages/ఛో|ఛో]] |[[Special:Allpages/ఛౌ|ఛౌ]] |[[Special:Allpages/ఛఁ|ఛఁ]] |[[Special:Allpages/ఛం|ఛం]] |[[Special:Allpages/ఛః|ఛః]] |[[Special:Allpages/ఛ్|ఛ్]] |- |'''[[Special:Allpages/జ|జ]]''' |[[Special:Allpages/జా|జా]] |[[Special:Allpages/జి|జి]] |[[Special:Allpages/జీ|జీ]] |[[Special:Allpages/జు|జు]] |[[Special:Allpages/జూ|జూ]] |[[Special:Allpages/జృ|జృ]] |[[Special:Allpages/జౄ|జౄ]] |[[Special:Allpages/జె|జె]] |[[Special:Allpages/జే|జే]] |[[Special:Allpages/జై|జై]] |[[Special:Allpages/జొ|జొ]] |[[Special:Allpages/జో|జో]] |[[Special:Allpages/జౌ|జౌ]] |[[Special:Allpages/జఁ|జఁ]] |[[Special:Allpages/జం|జం]] |[[Special:Allpages/జః|జః]] |[[Special:Allpages/జ్|జ్]] |- |'''[[Special:Allpages/ఝ|ఝ]]''' |[[Special:Allpages/ఝా|ఝా]] |[[Special:Allpages/ఝి|ఝి]] |[[Special:Allpages/ఝీ|ఝీ]] |[[Special:Allpages/ఝు|ఝు]] |[[Special:Allpages/ఝూ|ఝూ]] |[[Special:Allpages/ఝృ|ఝృ]] |[[Special:Allpages/ఝౄ|ఝౄ]] |[[Special:Allpages/ఝె|ఝె]] |[[Special:Allpages/ఝే|ఝే]] |[[Special:Allpages/ఝై|ఝై]] |[[Special:Allpages/ఝొ|ఝొ]] |[[Special:Allpages/ఝో|ఝో]] |[[Special:Allpages/ఝౌ|ఝౌ]] |[[Special:Allpages/ఝఁ|ఝఁ]] |[[Special:Allpages/ఝం|ఝం]] |[[Special:Allpages/ఝః|ఝః]] |[[Special:Allpages/ఝ్|ఝ్]] |- |'''[[Special:Allpages/ట|ట]]''' |[[Special:Allpages/టా|టా]] |[[Special:Allpages/టి|టి]] |[[Special:Allpages/టీ|టీ]] |[[Special:Allpages/టు|టు]] |[[Special:Allpages/టూ|టూ]] |[[Special:Allpages/టృ|టృ]] |[[Special:Allpages/టౄ|టౄ]] |[[Special:Allpages/టె|టె]] |[[Special:Allpages/టే|టే]] |[[Special:Allpages/టై|టై]] |[[Special:Allpages/టొ|టొ]] |[[Special:Allpages/టో|టో]] |[[Special:Allpages/టౌ|టౌ]] |[[Special:Allpages/టఁ|టఁ]] |[[Special:Allpages/టం|టం]] |[[Special:Allpages/టః|టః]] |[[Special:Allpages/ట్|ట్]] |- |'''[[Special:Allpages/ఠ|ఠ]]''' |[[Special:Allpages/ఠా|ఠా]] |[[Special:Allpages/ఠి|ఠి]] |[[Special:Allpages/ఠీ|ఠీ]] |[[Special:Allpages/ఠు|ఠు]] |[[Special:Allpages/ఠూ|ఠూ]] |[[Special:Allpages/ఠృ|ఠృ]] |[[Special:Allpages/ఠౄ|ఠౄ]] |[[Special:Allpages/ఠె|ఠె]] |[[Special:Allpages/ఠే|ఠే]] |[[Special:Allpages/ఠై|ఠై]] |[[Special:Allpages/ఠొ|ఠొ]] |[[Special:Allpages/ఠో|ఠో]] |[[Special:Allpages/ఠౌ|ఠౌ]] |[[Special:Allpages/ఠఁ|ఠఁ]] |[[Special:Allpages/ఠం|ఠం]] |[[Special:Allpages/ఠః|ఠః]] |[[Special:Allpages/ఠ్|ఠ్]] |- |'''[[Special:Allpages/డ|డ]]''' |[[Special:Allpages/డా|డా]] |[[Special:Allpages/డి|డి]] |[[Special:Allpages/డీ|డీ]] |[[Special:Allpages/డు|డు]] |[[Special:Allpages/డూ|డూ]] |[[Special:Allpages/డృ|డృ]] |[[Special:Allpages/డౄ|డౄ]] |[[Special:Allpages/డె|డె]] |[[Special:Allpages/డే|డే]] |[[Special:Allpages/డై|డై]] |[[Special:Allpages/డొ|డొ]] |[[Special:Allpages/డో|డో]] |[[Special:Allpages/డౌ|డౌ]] |[[Special:Allpages/డఁ|డఁ]] |[[Special:Allpages/డం|డం]] |[[Special:Allpages/డః|డః]] |[[Special:Allpages/డ్|డ్]] |- |'''[[Special:Allpages/ఢ|ఢ]]''' |[[Special:Allpages/ఢా|ఢా]] |[[Special:Allpages/ఢి|ఢి]] |[[Special:Allpages/ఢీ|ఢీ]] |[[Special:Allpages/ఢు|ఢు]] |[[Special:Allpages/ఢూ|ఢూ]] |[[Special:Allpages/ఢృ|ఢృ]] |[[Special:Allpages/ఢౄ|ఢౄ]] |[[Special:Allpages/ఢె|ఢె]] |[[Special:Allpages/ఢే|ఢే]] |[[Special:Allpages/ఢై|ఢై]] |[[Special:Allpages/ఢొ|ఢొ]] |[[Special:Allpages/ఢో|ఢో]] |[[Special:Allpages/ఢౌ|ఢౌ]] |[[Special:Allpages/ఢఁ|ఢఁ]] |[[Special:Allpages/ఢం|ఢం]] |[[Special:Allpages/ఢః|ఢః]] |[[Special:Allpages/ఢ్|ఢ్]] |- |'''[[Special:Allpages/ణ|ణ]]''' |[[Special:Allpages/ణా|ణా]] |[[Special:Allpages/ణి|ణి]] |[[Special:Allpages/ణీ|ణీ]] |[[Special:Allpages/ణు|ణు]] |[[Special:Allpages/ణూ|ణూ]] |[[Special:Allpages/ణృ|ణృ]] |[[Special:Allpages/ణౄ|ణౄ]] |[[Special:Allpages/ణె|ణె]] |[[Special:Allpages/ణే|ణే]] |[[Special:Allpages/ణై|ణై]] |[[Special:Allpages/ణొ|ణొ]] |[[Special:Allpages/ణో|ణో]] |[[Special:Allpages/ణౌ|ణౌ]] |[[Special:Allpages/ణఁ|ణఁ]] |[[Special:Allpages/ణం|ణం]] |[[Special:Allpages/ణః|ణః]] |[[Special:Allpages/ణ్|ణ్]] |- |'''[[Special:Allpages/త|త]]''' |[[Special:Allpages/తా|తా]] |[[Special:Allpages/తి|తి]] |[[Special:Allpages/తీ|తీ]] |[[Special:Allpages/తు|తు]] |[[Special:Allpages/తూ|తూ]] |[[Special:Allpages/తృ|తృ]] |[[Special:Allpages/తౄ|తౄ]] |[[Special:Allpages/తె|తె]] |[[Special:Allpages/తే|తే]] |[[Special:Allpages/తై|తై]] |[[Special:Allpages/తొ|తొ]] |[[Special:Allpages/తో|తో]] |[[Special:Allpages/తౌ|తౌ]] |[[Special:Allpages/తఁ|తఁ]] |[[Special:Allpages/తం|తం]] |[[Special:Allpages/తః|తః]] |[[Special:Allpages/త్|త్]] |- |'''[[Special:Allpages/థ|థ]]''' |[[Special:Allpages/థా|థా]] |[[Special:Allpages/థి|థి]] |[[Special:Allpages/థీ|థీ]] |[[Special:Allpages/థు|థు]] |[[Special:Allpages/థూ|థూ]] |[[Special:Allpages/థృ|థృ]] |[[Special:Allpages/థౄ|థౄ]] |[[Special:Allpages/థె|థె]] |[[Special:Allpages/థే|థే]] |[[Special:Allpages/థై|థై]] |[[Special:Allpages/థొ|థొ]] |[[Special:Allpages/థో|థో]] |[[Special:Allpages/థౌ|థౌ]] |[[Special:Allpages/థఁ|థఁ]] |[[Special:Allpages/థం|థం]] |[[Special:Allpages/థః|థః]] |[[Special:Allpages/థ్|థ్]] |- |'''[[Special:Allpages/ద|ద]]''' |[[Special:Allpages/దా|దా]] |[[Special:Allpages/ది|ది]] |[[Special:Allpages/దీ|దీ]] |[[Special:Allpages/దు|దు]] |[[Special:Allpages/దూ|దూ]] |[[Special:Allpages/దృ|దృ]] |[[Special:Allpages/దౄ|దౄ]] |[[Special:Allpages/దె|దె]] |[[Special:Allpages/దే|దే]] |[[Special:Allpages/దై|దై]] |[[Special:Allpages/దొ|దొ]] |[[Special:Allpages/దో|దో]] |[[Special:Allpages/దౌ|దౌ]] |[[Special:Allpages/దఁ|దఁ]] |[[Special:Allpages/దం|దం]] |[[Special:Allpages/దః|దః]] |[[Special:Allpages/ద్|ద్]] |- |'''[[Special:Allpages/ధ|ధ]]''' |[[Special:Allpages/ధా|ధా]] |[[Special:Allpages/ధి|ధి]] |[[Special:Allpages/ధీ|ధీ]] |[[Special:Allpages/ధు|ధు]] |[[Special:Allpages/ధూ|ధూ]] |[[Special:Allpages/ధృ|ధృ]] |[[Special:Allpages/ధౄ|ధౄ]] |[[Special:Allpages/ధె|ధె]] |[[Special:Allpages/ధే|ధే]] |[[Special:Allpages/ధై|ధై]] |[[Special:Allpages/ధొ|ధొ]] |[[Special:Allpages/ధో|ధో]] |[[Special:Allpages/ధౌ|ధౌ]] |[[Special:Allpages/ధఁ|ధఁ]] |[[Special:Allpages/ధం|ధం]] |[[Special:Allpages/ధః|ధః]] |[[Special:Allpages/ధ్|ధ్]] |- |'''[[Special:Allpages/న|న]]''' |[[Special:Allpages/నా|నా]] |[[Special:Allpages/ని|ని]] |[[Special:Allpages/నీ|నీ]] |[[Special:Allpages/ను|ను]] |[[Special:Allpages/నూ|నూ]] |[[Special:Allpages/నృ|నృ]] |[[Special:Allpages/నౄ|నౄ]] |[[Special:Allpages/నె|నె]] |[[Special:Allpages/నే|నే]] |[[Special:Allpages/నై|నై]] |[[Special:Allpages/నొ|నొ]] |[[Special:Allpages/నో|నో]] |[[Special:Allpages/నౌ|నౌ]] |[[Special:Allpages/నఁ|నఁ]] |[[Special:Allpages/నం|నం]] |[[Special:Allpages/నః|నః]] |[[Special:Allpages/న్|న్]] |- |'''[[Special:Allpages/ప|ప]]''' |[[Special:Allpages/పా|పా]] |[[Special:Allpages/పి|పి]] |[[Special:Allpages/పీ|పీ]] |[[Special:Allpages/పు|పు]] |[[Special:Allpages/పూ|పూ]] |[[Special:Allpages/పృ|పృ]] |[[Special:Allpages/పౄ|పౄ]] |[[Special:Allpages/పె|పె]] |[[Special:Allpages/పే|పే]] |[[Special:Allpages/పై|పై]] |[[Special:Allpages/పొ|పొ]] |[[Special:Allpages/పో|పో]] |[[Special:Allpages/పౌ|పౌ]] |[[Special:Allpages/పఁ|పఁ]] |[[Special:Allpages/పం|పం]] |[[Special:Allpages/పః|పః]] |[[Special:Allpages/ప్|ప్]] |- |'''[[Special:Allpages/ఫ|ఫ]]''' |[[Special:Allpages/ఫా|ఫా]] |[[Special:Allpages/ఫి|ఫి]] |[[Special:Allpages/ఫీ|ఫీ]] |[[Special:Allpages/ఫు|ఫు]] |[[Special:Allpages/ఫూ|ఫూ]] |[[Special:Allpages/ఫృ|ఫృ]] |[[Special:Allpages/ఫౄ|ఫౄ]] |[[Special:Allpages/ఫె|ఫె]] |[[Special:Allpages/ఫే|ఫే]] |[[Special:Allpages/ఫై|ఫై]] |[[Special:Allpages/ఫొ|ఫొ]] |[[Special:Allpages/ఫో|ఫో]] |[[Special:Allpages/ఫౌ|ఫౌ]] |[[Special:Allpages/ఫఁ|ఫఁ]] |[[Special:Allpages/ఫం|ఫం]] |[[Special:Allpages/ఫః|ఫః]] |[[Special:Allpages/ఫ్|ఫ్]] |- |'''[[Special:Allpages/బ|బ]]''' |[[Special:Allpages/బా|బా]] |[[Special:Allpages/బి|బి]] |[[Special:Allpages/బీ|బీ]] |[[Special:Allpages/బు|బు]] |[[Special:Allpages/బూ|బూ]] |[[Special:Allpages/బృ|బృ]] |[[Special:Allpages/బౄ|బౄ]] |[[Special:Allpages/బె|బె]] |[[Special:Allpages/బే|బే]] |[[Special:Allpages/బై|బై]] |[[Special:Allpages/బొ|బొ]] |[[Special:Allpages/బో|బో]] |[[Special:Allpages/బౌ|బౌ]] |[[Special:Allpages/బఁ|బఁ]] |[[Special:Allpages/బం|బం]] |[[Special:Allpages/బః|బః]] |[[Special:Allpages/బ్|బ్]] |- |'''[[Special:Allpages/భ|భ]]''' |[[Special:Allpages/భా|భా]] |[[Special:Allpages/భి|భి]] |[[Special:Allpages/భీ|భీ]] |[[Special:Allpages/భు|భు]] |[[Special:Allpages/భూ|భూ]] |[[Special:Allpages/భృ|భృ]] |[[Special:Allpages/భౄ|భౄ]] |[[Special:Allpages/భె|భె]] |[[Special:Allpages/భే|భే]] |[[Special:Allpages/భై|భై]] |[[Special:Allpages/భొ|భొ]] |[[Special:Allpages/భో|భో]] |[[Special:Allpages/భౌ|భౌ]] |[[Special:Allpages/భఁ|భఁ]] |[[Special:Allpages/భం|భం]] |[[Special:Allpages/భః|భః]] |[[Special:Allpages/భ్|భ్]] |- |'''[[Special:Allpages/మ|మ]]''' |[[Special:Allpages/మా|మా]] |[[Special:Allpages/మి|మి]] |[[Special:Allpages/మీ|మీ]] |[[Special:Allpages/ము|ము]] |[[Special:Allpages/మూ|మూ]] |[[Special:Allpages/మృ|మృ]] |[[Special:Allpages/మౄ|మౄ]] |[[Special:Allpages/మె|మె]] |[[Special:Allpages/మే|మే]] |[[Special:Allpages/మై|మై]] |[[Special:Allpages/మొ|మొ]] |[[Special:Allpages/మో|మో]] |[[Special:Allpages/మౌ|మౌ]] |[[Special:Allpages/మఁ|మఁ]] |[[Special:Allpages/మం|మం]] |[[Special:Allpages/మః|మః]] |[[Special:Allpages/మ్|మ్]] |- |'''[[Special:Allpages/య|య]]''' |[[Special:Allpages/యా|యా]] |[[Special:Allpages/యి|యి]] |[[Special:Allpages/యీ|యీ]] |[[Special:Allpages/యు|యు]] |[[Special:Allpages/యూ|యూ]] |[[Special:Allpages/యృ|యృ]] |[[Special:Allpages/యౄ|యౄ]] |[[Special:Allpages/యె|యె]] |[[Special:Allpages/యే|యే]] |[[Special:Allpages/యై|యై]] |[[Special:Allpages/యొ|యొ]] |[[Special:Allpages/యో|యో]] |[[Special:Allpages/యౌ|యౌ]] |[[Special:Allpages/యఁ|యఁ]] |[[Special:Allpages/యం|యం]] |[[Special:Allpages/యః|యః]] |[[Special:Allpages/య్|య్]] |- |'''[[Special:Allpages/ర|ర]]''' |[[Special:Allpages/రా|రా]] |[[Special:Allpages/రి|రి]] |[[Special:Allpages/రీ|రీ]] |[[Special:Allpages/రు|రు]] |[[Special:Allpages/రూ|రూ]] |[[Special:Allpages/రృ|రృ]] |[[Special:Allpages/రౄ|రౄ]] |[[Special:Allpages/రె|రె]] |[[Special:Allpages/రే|రే]] |[[Special:Allpages/రై|రై]] |[[Special:Allpages/రొ|రొ]] |[[Special:Allpages/రో|రో]] |[[Special:Allpages/రౌ|రౌ]] |[[Special:Allpages/రఁ|రఁ]] |[[Special:Allpages/రం|రం]] |[[Special:Allpages/రః|రః]] |[[Special:Allpages/ర్|ర్]] |- |'''[[Special:Allpages/ల|ల]]''' |[[Special:Allpages/లా|లా]] |[[Special:Allpages/లి|లి]] |[[Special:Allpages/లీ|లీ]] |[[Special:Allpages/లు|లు]] |[[Special:Allpages/లూ|లూ]] |[[Special:Allpages/లృ|లృ]] |[[Special:Allpages/లౄ|లౄ]] |[[Special:Allpages/లె|లె]] |[[Special:Allpages/లే|లే]] |[[Special:Allpages/లై|లై]] |[[Special:Allpages/లొ|లొ]] |[[Special:Allpages/లో|లో]] |[[Special:Allpages/లౌ|లౌ]] |[[Special:Allpages/లఁ|లఁ]] |[[Special:Allpages/లం|లం]] |[[Special:Allpages/లః|లః]] |[[Special:Allpages/ల్|ల్]] |- |'''[[Special:Allpages/వ|వ]]''' |[[Special:Allpages/వా|వా]] |[[Special:Allpages/వి|వి]] |[[Special:Allpages/వీ|వీ]] |[[Special:Allpages/వు|వు]] |[[Special:Allpages/వూ|వూ]] |[[Special:Allpages/వృ|వృ]] |[[Special:Allpages/వౄ|వౄ]] |[[Special:Allpages/వె|వె]] |[[Special:Allpages/వే|వే]] |[[Special:Allpages/వై|వై]] |[[Special:Allpages/వొ|వొ]] |[[Special:Allpages/వో|వో]] |[[Special:Allpages/వౌ|వౌ]] |[[Special:Allpages/వఁ|వఁ]] |[[Special:Allpages/వం|వం]] |[[Special:Allpages/వః|వః]] |[[Special:Allpages/వ్|వ్]] |- |'''[[Special:Allpages/శ|శ]]''' |[[Special:Allpages/శా|శా]] |[[Special:Allpages/శి|శి]] |[[Special:Allpages/శీ|శీ]] |[[Special:Allpages/శు|శు]] |[[Special:Allpages/శూ|శూ]] |[[Special:Allpages/శృ|శృ]] |[[Special:Allpages/శౄ|శౄ]] |[[Special:Allpages/శె|శె]] |[[Special:Allpages/శే|శే]] |[[Special:Allpages/శై|శై]] |[[Special:Allpages/శొ|శొ]] |[[Special:Allpages/శో|శో]] |[[Special:Allpages/శౌ|శౌ]] |[[Special:Allpages/శఁ|శఁ]] |[[Special:Allpages/శం|శం]] |[[Special:Allpages/శః|శః]] |[[Special:Allpages/శ్|శ్]] |- |'''[[Special:Allpages/ష|ష]]''' |[[Special:Allpages/షా|షా]] |[[Special:Allpages/షి|షి]] |[[Special:Allpages/షీ|షీ]] |[[Special:Allpages/షు|షు]] |[[Special:Allpages/షూ|షూ]] |[[Special:Allpages/షృ|షృ]] |[[Special:Allpages/షౄ|షౄ]] |[[Special:Allpages/షె|షె]] |[[Special:Allpages/షే|షే]] |[[Special:Allpages/షై|షై]] |[[Special:Allpages/షొ|షొ]] |[[Special:Allpages/షో|షో]] |[[Special:Allpages/షౌ|షౌ]] |[[Special:Allpages/షఁ|షఁ]] |[[Special:Allpages/షం|షం]] |[[Special:Allpages/షః|షః]] |[[Special:Allpages/ష్|ష్]] |- |'''[[Special:Allpages/స|స]]''' |[[Special:Allpages/సా|సా]] |[[Special:Allpages/సి|సి]] |[[Special:Allpages/సీ|సీ]] |[[Special:Allpages/సు|సు]] |[[Special:Allpages/సూ|సూ]] |[[Special:Allpages/సృ|సృ]] |[[Special:Allpages/సౄ|సౄ]] |[[Special:Allpages/సె|సె]] |[[Special:Allpages/సే|సే]] |[[Special:Allpages/సై|సై]] |[[Special:Allpages/సొ|సొ]] |[[Special:Allpages/సో|సో]] |[[Special:Allpages/సౌ|సౌ]] |[[Special:Allpages/సఁ|సఁ]] |[[Special:Allpages/సం|సం]] |[[Special:Allpages/సః|సః]] |[[Special:Allpages/స్|స్]] |- |'''[[Special:Allpages/హ|హ]]''' |[[Special:Allpages/హా|హా]] |[[Special:Allpages/హి|హి]] |[[Special:Allpages/హీ|హీ]] |[[Special:Allpages/హు|హు]] |[[Special:Allpages/హూ|హూ]] |[[Special:Allpages/హృ|హృ]] |[[Special:Allpages/హౄ|హౄ]] |[[Special:Allpages/హె|హె]] |[[Special:Allpages/హే|హే]] |[[Special:Allpages/హై|హై]] |[[Special:Allpages/హొ|హొ]] |[[Special:Allpages/హో|హో]] |[[Special:Allpages/హౌ|హౌ]] |[[Special:Allpages/హఁ|హఁ]] |[[Special:Allpages/హం|హం]] |[[Special:Allpages/హః|హః]] |[[Special:Allpages/హ్|హ్]] |- |'''[[Special:Allpages/ళ|ళ]]''' |[[Special:Allpages/ళా|ళా]] |[[Special:Allpages/ళి|ళి]] |[[Special:Allpages/ళీ|ళీ]] |[[Special:Allpages/ళు|ళు]] |[[Special:Allpages/ళూ|ళూ]] |[[Special:Allpages/ళృ|ళృ]] |[[Special:Allpages/ళౄ|ళౄ]] |[[Special:Allpages/ళె|ళె]] |[[Special:Allpages/ళే|ళే]] |[[Special:Allpages/ళై|ళై]] |[[Special:Allpages/ళొ|ళొ]] |[[Special:Allpages/ళో|ళో]] |[[Special:Allpages/ళౌ|ళౌ]] |[[Special:Allpages/ళఁ|ళఁ]] |[[Special:Allpages/ళం|ళం]] |[[Special:Allpages/ళః|ళః]] |[[Special:Allpages/ళ్|ళ్]] |- |'''[[Special:Allpages/క్ష|క్ష]]''' |[[Special:Allpages/క్షా|క్షా]] |[[Special:Allpages/క్షి|క్షి]] |[[Special:Allpages/క్షీ|క్షీ]] |[[Special:Allpages/క్షు|క్షు]] |[[Special:Allpages/క్షూ|క్షూ]] |[[Special:Allpages/క్షృ|క్షృ]] |[[Special:Allpages/క్షౄ|క్షౄ]] |[[Special:Allpages/క్షె|క్షె]] |[[Special:Allpages/క్షే|క్షే]] |[[Special:Allpages/క్షై|క్షై]] |[[Special:Allpages/క్షొ|క్షొ]] |[[Special:Allpages/క్షో|క్షో]] |[[Special:Allpages/క్షౌ|క్షౌ]] |[[Special:Allpages/క్షఁ|క్షఁ]] |[[Special:Allpages/క్షం|క్షం]] |[[Special:Allpages/క్షః|క్షః]] |[[Special:Allpages/క్ష్|క్ష్]] |- |'''[[Special:Allpages/ఱ|ఱ]]''' |[[Special:Allpages/ఱా|ఱా]] |[[Special:Allpages/ఱి|ఱి]] |[[Special:Allpages/ఱీ|ఱీ]] |[[Special:Allpages/ఱు|ఱు]] |[[Special:Allpages/ఱూ|ఱూ]] |[[Special:Allpages/ఱృ|ఱృ]] |[[Special:Allpages/ఱౄ|ఱౄ]] |[[Special:Allpages/ఱె|ఱె]] |[[Special:Allpages/ఱే|ఱే]] |[[Special:Allpages/ఱై|ఱై]] |[[Special:Allpages/ఱొ|ఱొ]] |[[Special:Allpages/ఱో|ఱో]] |[[Special:Allpages/ఱౌ|ఱౌ]] |[[Special:Allpages/ఱఁ|ఱఁ]] |[[Special:Allpages/ఱం|ఱం]] |[[Special:Allpages/ఱః|ఱః]] |[[Special:Allpages/ఱ్|ఱ్]] |} == అంకెలు సూచీ == {| class="plainlinks" style="width: 80%; font-family:monospace; padding: 3px; background: #f7f8ff; border: 1px solid gray; margin: 0 auto;" |- align=center |[[ప్రత్యేక:Allpages/౦|౦]] |[[ప్రత్యేక:Allpages/౧|౧]] |[[ప్రత్యేక:Allpages/౨|౨]] |[[ప్రత్యేక:Allpages/౩|౩]] |[[ప్రత్యేక:Allpages/౪|౪]] |[[ప్రత్యేక:Allpages/౫|౫]] |[[ప్రత్యేక:Allpages/౬|౬]] |[[ప్రత్యేక:Allpages/౭|౭]] |[[ప్రత్యేక:Allpages/౮|౮]] |[[ప్రత్యేక:Allpages/౯|౯]] |- align=center |[[Special:Allpages/0|0]] |[[Special:Allpages/1|1]] |[[Special:Allpages/2|2]] |[[Special:Allpages/3|3]] |[[Special:Allpages/4|4]] |[[Special:Allpages/5|5]] |[[Special:Allpages/6|6]] |[[Special:Allpages/7|7]] |[[Special:Allpages/8|8]] |[[Special:Allpages/9|9]] |[[Special:Allpages/À|ఇతర అక్షరాలు]] |} == చిహ్నాలు సూచీ == {| class="plainlinks" style="width: 80%; font-family:monospace; padding: 3px; background: #f7f8ff; border: 1px solid gray; margin: 0 auto;" |- |[[Special:Allpages/!|!]] |[[Special:Allpages/"|"]] |[[Special:Allpages/$|$]] |[[Special:Allpages/%|%]] |[[Special:Allpages/&|&]] |[[Special:Allpages/'|']] |[[Special:Allpages/(|(]] |[[Special:Allpages/)|)]] |[[Special:Allpages/*|*]] |[[Special:Allpages/,|,]] |[[Special:Allpages/-|-]] |- |[[Special:Allpages//|/]] |[[Special:Allpages/\|\]] |[[Special:Allpages/^|^]] |[[Special:Allpages/_|_]] |[[Special:Allpages/`|`]] |[[Special:Allpages/~|~]] |[[Special:Allpages/€|€]] |[[Special:Allpages/ƒ|ƒ]] |[[Special:Allpages/„|„]] |[[Special:Allpages/…|…]] |[[Special:Allpages/†|†]] |- |[[Special:Allpages/‡|‡]] |[[Special:Allpages/ˆ|ˆ]] |[[Special:Allpages/‰|‰]] |[[Special:Allpages/‹|‹]] |[[Special:Allpages/‘|‘]] |[[Special:Allpages/’|’]] |[[Special:Allpages/“|“]] |[[Special:Allpages/”|”]] |[[Special:Allpages/•|•]] |[[Special:Allpages/–|–]] |[[Special:Allpages/—|—]] |- |[[Special:Allpages/˜|˜]] |[[Special:Allpages/™|™]] |[[Special:Allpages/›|›]] |[[Special:Allpages/¡|¡]] |[[Special:Allpages/¢|¢]] |[[Special:Allpages/£|£]] |[[Special:Allpages/¤|¤]] |[[Special:Allpages/¥|¥]] |[[Special:Allpages/¦|¦]] |[[Special:Allpages/§|§]] |[[Special:Allpages/¨|¨]] |- |[[Special:Allpages/©|©]] |[[Special:Allpages/«|«]] |[[Special:Allpages/¬|¬]] |[[Special:Allpages/®|®]] |[[Special:Allpages/¯|¯]] |[[Special:Allpages/°|°]] |[[Special:Allpages/±|±]] |[[Special:Allpages/²|²]] |[[Special:Allpages/³|³]] |[[Special:Allpages/´|´]] |[[Special:Allpages/µ|µ]] |- |[[Special:Allpages/¶|¶]] |[[Special:Allpages/·|·]] |[[Special:Allpages/¸|¸]] |[[Special:Allpages/¹|¹]] |[[Special:Allpages/»|»]] |[[Special:Allpages/¼|¼]] |[[Special:Allpages/½|½]] |[[Special:Allpages/¾|¾]] |[[Special:Allpages/¿|¿]] |[[Special:Allpages/×|×]] |[[Special:Allpages/÷|÷]] |} [[ar:ويكي الاقتباس:فهرس سريع]] [[en:Wikiquote:Quick index]] [[fa:ویکی‌گفتاورد:فهرست سریع]] [[hy:Վիքիքաղվածք:Արագ ցուցակ]] [[pl:Wikicytaty:Indeks haseł]] [[sk:Wikicitáty:Rýchly index]] [[tr:Vikisöz:Dizin]] అక్షరానుసార సూచీ నేరుగా ఆయా అక్షరంతో మొదలయ్యే వ్యాసాల జాబితాకు తీసుకువెళుతుంది. చిన్న మార్పుల వివరణ అక్షరముతో → అక్షరంతో మొదలయ్య → మొదలయ్యే వ్యాసముల → వ్యాసాల తీసుకు వెళుతుంది → తీసుకువెళుతుంది daucf6gycppvy045ymo3t7u7ldww09c మీడియావికీ:Gadget-refToolbarBase.js 8 4890 26595 13184 2026-11-02T18:07:38Z Maintenance script 1368 Use thumb.wikimedia.org for thumbnails ([[phab:T427465]], Operator: Ladsgroup) 26595 javascript text/javascript /* jshint asi: true */ /* global mw, $, CiteTB, citeTemplate, citeErrorCheck */ if ( window.CiteTB === undefined ) { window.CiteTB = { "Templates" : {}, // All templates "Options" : {}, // Global options "UserOptions" : {}, // User options "DefaultOptions" : {}, // Script defaults "ErrorChecks" : {} // Error check functions }; } if (typeof mw.usability == 'undefined') { mw.usability = {}; mw.usability.getMsg = function(m) { return mw.messages.get(m); } mw.usability.addMessages = function(msgs) { mw.messages.set(msgs); }; } // Object for cite templates window.citeTemplate = function (templatename, shortform, basicfields, expandedfields) { // Properties this.templatename = templatename; // The template name - "cite web", "cite book", etc. this.shortform = shortform; // A short form, used for the dropdown box this.basic = basicfields; // Basic fields - author, title, publisher... // Less common - quote, archiveurl - should be everything the template supports minus the basic ones this.extra = expandedfields; this.incrementables = {}; // Add it to the list CiteTB.Templates[this.templatename] = this; // Methods this.makeFormInner = function(fields, incrsetup) { var i=0; var trs = []; var autofills = [] for (i=0; i<fields.length; i++) { var fieldobj = fields[i]; var field = labelfield = fieldobj.field; var ad = false; if (incrsetup && fieldobj.increment_group) { field = fieldobj.field.replace('<N>', '1'); labelfield = fieldobj.field.replace('<N>', ''); if (this.incrementables[fieldobj.increment_group] && !this.incrementables[fieldobj.increment_group].setup) { // The object has been created, but not fully initialized this.incrementables[fieldobj.increment_group]['fields'].push(fieldobj) } else if (!this.incrementables[fieldobj.increment_group]) { // Object not yet created this.incrementables[fieldobj.increment_group] = { 'fields': [fieldobj], 'val':1, 'setup': false }; } else if (this.incrementables[fieldobj.increment_group] && this.incrementables[fieldobj.increment_group].setup) { // Fully initialized from a previous invocation of this function, just resetting the number this.incrementables[fieldobj.increment_group].val = 1 } } else if (fieldobj.increment_group) { // Adding a new row incrval = this.incrementables[fieldobj.increment_group].val; field = fieldobj.field.replace('<N>', incrval.toString()); labelfield = fieldobj.field.replace('<N>', ''); } if ($.inArray(field, CiteTB.getOption('autodate fields')) != -1 ) { im = $('<img />').attr('src', '//thumb.wikimedia.org/wikipedia/commons/thumb/7/7b/Nuvola_apps_date.svg/20px-Nuvola_apps_date.svg.png'); im.attr('alt', mw.usability.getMsg('cite-insert-date')).attr('title', mw.usability.getMsg('cite-insert-date')); var ad = $('<a />').attr('href', '#'); ad.append(im); ad.attr('id', 'cite-date-'+CiteTB.escStr(this.shortform)+'-'+field); $( document ).on( 'click', '#cite-date-'+CiteTB.escStr(this.shortform)+'-'+field, CiteTB.fillAccessdate ); } if (fieldobj.autofillid) { var autotype = fieldobj.autofillid; im = $('<img />').attr('src', '//thumb.wikimedia.org/wikipedia/commons/thumb/1/17/System-search.svg/20px-System-search.svg.png'); im.attr('alt', mw.usability.getMsg('cite-autofill-alt')).attr('title', mw.usability.getMsg('cite-autofill-alt')); var ad = $('<a />').attr('href', '#'); ad.append(im); ad.attr('id', 'cite-auto-'+CiteTB.escStr(this.shortform)+'-'+field+'-'+autotype); autofills.push('#cite-auto-'+CiteTB.escStr(this.shortform)+'-'+field+'-'+autotype); } if (fieldobj.increment_button) { var incrtype = fieldobj.increment_group; im = $('<img />').attr('src', '//thumb.wikimedia.org/wikipedia/commons/thumb/b/b9/Nuvola_action_edit_add.svg/20px-Nuvola_action_edit_add.svg.png'); im.attr('alt', mw.usability.getMsg('cite-increment-alt')).attr('title', mw.usability.getMsg('cite-increment-alt')); var ad = $('<a />').attr('href', '#'); ad.append(im); ad.attr('id', 'cite-incr-'+CiteTB.escStr(this.shortform)+'-'+incrtype); } var display = mw.usability.getMsg('cite-'+labelfield+'-label'); if (typeof display !== 'string') { if (fieldobj.label) { display = CiteTB.fixStr(fieldobj.label); } else { display = CiteTB.fixStr(labelfield) } } var tooltip = fieldobj.tooltip ? $('<abbr />').attr('title', mw.usability.getMsg(fieldobj.tooltip)).html('<sup>?</sup>') : false; var input = ''; if (ad) { input = $('<input tabindex="1" style="width:85%" type="text" />'); } else { input = $('<input tabindex="1" style="width:100%" type="text" />'); } input.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-'+field); if (fieldobj.autofillprop) { classname = 'cite-'+CiteTB.escStr(this.shortform)+'-'+fieldobj.autofillprop if (fieldobj.increment_group) { input.addClass('cite-'+CiteTB.escStr(this.shortform)+'-incr-'+fieldobj.increment_group); classname+='-'+this.incrementables[fieldobj.increment_group].val.toString(); } input.addClass(classname); } var label = $('<label />'); label.attr('for', 'cite-'+CiteTB.escStr(this.shortform)+'-'+field).text(display); if (tooltip) { label.append(tooltip); } var style = 'text-align:right; width:20%;'; if (i%2 == 1) { style += ' padding-left:1em;'; } else { var tr = $('<tr />'); } var td1 = $('<td class="cite-form-td" />').attr('style', style); td1.append(label); tr.append(td1); var td2 = $('<td class="cite-form-td" style="width:30%" />'); td2.append(input); if (ad) { td2.append(ad); } tr.append(td2); if (i%2 == 0) { trs.push(tr); } } var needsetup = false; for (g in this.incrementables) { if (!this.incrementables[g].setup) { needsetup = true; $( document ).on( 'click', '#cite-incr-'+CiteTB.escStr(this.shortform)+'-'+g, CiteTB.incrementFields ); this.incrementables[g].setup = true; } } if (needsetup) { for(i=0; i<autofills.length; i++) { $( document ).on( 'click', autofills[i], CiteTB.initAutofill ); } } return trs; } // gives a little bit of HTML so the open form can be identified this.getInitial = function() { var hidden = $('<input type="hidden" class="cite-template" />'); hidden.val(this.templatename); return hidden; } // makes the form used in the dialog boxes this.getForm = function() { var main = $("<div class='cite-form-container' />"); var form1 = $('<table style="width:100%; background-color:transparent;" class="cite-basic-fields" />'); var i=0; var trs = this.makeFormInner(this.basic, true); for (var i=0; i<trs.length; i++) { form1.append(trs[i]); } var form2 = $('<table style="width:100%; background-color:transparent; display:none" class="cite-extra-fields">'); trs = this.makeFormInner(this.extra, true); for (var i=0; i<trs.length; i++) { form2.append(trs[i]); } main.append(form1).append(form2); var form3 = $('<table style="width:100%; background-color:transparent;padding-top:1em" class="cite-other-fields">'); var tr = $('<tr />'); var td1 = $('<td class="cite-form-td" style="text-align:right; width:20%" />'); var label1 = $('<label />'); label1.attr('for', "cite-"+CiteTB.escStr(this.shortform)+'-name').text(mw.usability.getMsg('cite-name-label')); td1.append(label1); var td2 = $('<td class="cite-form-td" style="width:30%" />'); var input1 = $('<input tabindex="1" style="width:100%" type="text" />'); input1.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-name'); td2.append(input1); var td3 = $('<td class="cite-form-td" style="text-align:right; padding-left:1em; width:20%">'); var label2 = $('<label />'); label2.attr('for', 'cite-'+CiteTB.escStr(this.shortform)+'-group').text(mw.usability.getMsg('cite-group-label')); td3.append(label2); var td4 = $('<td class="cite-form-td" style="width:30%" />'); var input2 = $('<input tabindex="1" style="width:100%" type="text" />'); input2.attr('id', 'cite-'+CiteTB.escStr(this.shortform)+'-group'); td4.append(input2); tr.append(td1).append(td2).append(td3).append(td4); form3.append(tr); main.append(form3); var extras = $('<div />'); extras.append('<input type="hidden" class="cite-form-status" value="closed" />'); var hidden = $('<input type="hidden" class="cite-template" />'); hidden.val(this.templatename); extras.append(hidden); var span1 = $('<span class="cite-preview-label" style="display:none;" />'); span1.text(mw.usability.getMsg('cite-raw-preview')); extras.append(span1).append('<div class="cite-ref-preview" style="padding:0.5em; font-size:110%" />'); var span2 = $('<span class="cite-prev-parsed-label" style="display:none;" />'); span2.text(mw.usability.getMsg('cite-parsed-label')); extras.append(span2).append('<div class="cite-preview-parsed" style="padding-bottom:0.5em; font-size:110%" />'); var link = $('<a href="#" class="cite-prev-parse" style="margin:0 1em 0 1em; display:none; color:darkblue" />'); link.text(mw.usability.getMsg('cite-form-parse')); extras.append(link); main.append(extras); return main; } } /* Class for error checks FIXME: DOCS OUT OF DATE type - type of error check - current options: * 'refcheck' - apply a function on each ref individually * function should accept a ref object, return a string * 'reflist' - apply a function on the entire ref list * function should accept an array of ref objects, return an array of strings * 'search' - apply a function ro the page text * function should accept the page text as a string, return an array of strings The strings returned by the function should be valid HTML func - The function described above testname - Name of the error check, must not contain spaces desc - A short description of the test */ window.citeErrorCheck = function (obj) { this.obj = obj CiteTB.ErrorChecks[this.obj.testname] = this; this.run = function() { var errors = []; switch(this.obj['type']) { case "refcheck": CiteTB.loadRefs(); for(var i=0; i<CiteTB.mainRefList.length; i++) { var e = this.obj.func(CiteTB.mainRefList[i]); if (e) { errors.push(e); } } break; case "reflist": CiteTB.loadRefs(); errors = this.obj.func(CiteTB.mainRefList); break; case "search": var func = this.obj.func CiteTB.getPageText(function(text) { errors = func(text); }); break; } return errors; } this.getRow = function() { var row = $("<li />"); var check = $("<input type='checkbox' name='cite-err-test' />"); check.attr('value', this.obj.testname); var label = $("<label />").html(mw.usability.getMsg(this.obj.desc)); label.attr('for', this.obj.testname); row.append(check).append(' &ndash; ').append(label); return row; } } $('head').trigger('reftoolbarbase'); 7zh15d7qq3m8ur6x803h6olcvr12hn9 మీడియావికీ:RefToolbar.js 8 4901 26596 26491 2026-11-02T18:07:39Z Maintenance script 1368 Use thumb.wikimedia.org for thumbnails ([[phab:T427465]], Operator: Ladsgroup) 26596 javascript text/javascript /*jshint smarttabs:true, loopfunc:true,forin:false*/ /*global mw, $, importScript */ // TODO: make autodate an option in the CiteTemplate object, not a preference // Global object // TODO: // * Remove this once the page is moved to a module 'ext.gadget.refToolbarDialogs' depending on 'ext.gadget.refToolbarBase' if (typeof CiteTB === 'undefined') { var CiteTB = { "Templates" : {}, // All templates "Options" : {}, // Global options "UserOptions" : {}, // User options "DefaultOptions" : {}, // Script defaults "ErrorChecks" : {} // Error check functions }; } // Only execute on edit, unless it is a user JS/CSS page // TODO: Remove tests already done by [[MediaWiki:Gadget-refToolbar.js]] if ( ( mw.config.get('wgAction') === 'edit' || mw.config.get('wgAction') === 'submit' ) && ( ( mw.config.get('wgNamespaceNumber') !== 2 && mw.config.get('wgNamespaceNumber') !== 4 ) || ( mw.config.get('wgPageName').indexOf('.js') === -1 && mw.config.get('wgPageName').indexOf('.css') === -1 ) ) ) { // TODO: Move this to [[MediaWiki:Gadget-refToolbarDialogs.css]] and add it to the definition of module 'ext.gadget.refToolbarDialogs' mw.util.addCSS(".cite-form-td {"+ "height: 0 !important;"+ "padding: 0.1em !important;"+ "}"); // Default options, these mainly exist so the script won't break if a new option is added CiteTB.DefaultOptions = { "date format" : "<year>-<zmonth>-<zdate>", "autodate fields" : [], "months" : ['Jan', 'Feb', 'Mar', 'Apr', 'May', 'Jun', 'Jul', 'Aug', 'Sep', 'Oct', 'Nov', 'Dec'], "modal" : true, "autoparse" : false, "expandtemplates": false }; // Get an option - user settings override global which override defaults CiteTB.getOption = function(opt) { if (CiteTB.UserOptions[opt] !== undefined) { return CiteTB.UserOptions[opt]; } else if (CiteTB.Options[opt] !== undefined) { return CiteTB.Options[opt]; } return CiteTB.DefaultOptions[opt]; }; CiteTB.init = function() { /* Main stuff, build the actual toolbar structure * 1. get the template list, make the dropdown list and set up the template dialog boxes * 2. actually build the toolbar: * * A section for cites * ** dropdown for the templates (previously defined) * ** button for named refs with a dialog box * ** button for errorcheck * 3. add the whole thing to the main toolbar */ if (typeof $('div[rel=cites]')[0] !== 'undefined') { // Mystery IE bug workaround return; } $('head').trigger('reftoolbarbase'); var $target = $('#wpTextbox1'); var temlist = {}; for (var t in CiteTB.Templates) { var tem = CiteTB.Templates[t]; var sform = CiteTB.escStr(tem.shortform); var actionobj = { type: 'dialog', module: 'cite-dialog-'+sform }; var dialogobj = {}; dialogobj['cite-dialog-'+sform] = { resizeme: false, titleMsg: 'cite-dialog-'+sform, id: 'citetoolbar-'+sform, init: function() {}, html: tem.getInitial(), dialog: { width:675, open: function() { $(this).html(CiteTB.getOpenTemplate().getForm()); /** @param {jQuery.Event} e */ $('.cite-prev-parse').on( 'click', function ( e ) { e.preventDefault(); CiteTB.prevParseClick(); }); }, buttons: { 'cite-form-submit': function() { var ref = CiteTB.getRef(false, true); $(this).dialog( 'close' ); $.wikiEditor.modules.toolbar.fn.doAction( $(this).data( 'context' ), { type: 'encapsulate', options: { post: ref } }, $(this) ); }, 'cite-form-showhide': CiteTB.showHideExtra, 'cite-refpreview': function() { var ref = CiteTB.getRef(false, false); var template = CiteTB.getOpenTemplate(); var div = $("#citetoolbar-"+CiteTB.escStr(template.shortform)); div.find('.cite-preview-label').show(); div.find('.cite-ref-preview').text(ref).show(); if (CiteTB.getOption('autoparse')) { CiteTB.prevParseClick(); } else { div.find('.cite-prev-parse').show(); div.find('.cite-prev-parsed-label').hide(); div.find('.cite-preview-parsed').html(''); } }, 'wikieditor-toolbar-tool-link-cancel': function() { $(this).dialog( 'close' ); }, 'cite-form-reset': function() { CiteTB.resetForm(); } } } }; $target.wikiEditor('addDialog', dialogobj); //if (!CiteTB.getOption('modal')) { //$('#citetoolbar-'+sform).dialog('option', 'modal', false); //} temlist[sform] = {label: tem.templatename, action: actionobj }; } var refsection = { 'sections': { 'cites': { type: 'toolbar', labelMsg: 'cite-section-label', groups: { 'template': { tools: { 'template': { type: 'select', labelMsg: 'cite-template-list', list: temlist } } }, 'namedrefs': { labelMsg: 'cite-named-refs-label', tools: { 'nrefs': { type: 'button', action: { type: 'dialog', module: 'cite-toolbar-namedrefs' }, icon: '//thumb.wikimedia.org/wikipedia/commons/thumb/b/be/Nuvola_clipboard_lined.svg/60px-Nuvola_clipboard_lined.svg.png', section: 'cites', group: 'namedrefs', labelMsg: 'cite-named-refs-button' } } }, 'errorcheck': { labelMsg: 'cite-errorcheck-label', tools: { 'echeck': { type: 'button', action: { type: 'dialog', module: 'cite-toolbar-errorcheck' }, icon: '//thumb.wikimedia.org/wikipedia/commons/thumb/a/a3/Nuvola_apps_korganizer-NO.png/60px-Nuvola_apps_korganizer-NO.png', section: 'cites', group: 'errorcheck', labelMsg: 'cite-errorcheck-button' } } } } } } }; var defaultdialogs = { 'cite-toolbar-errorcheck': { titleMsg: 'cite-errorcheck-label', id: 'citetoolbar-errorcheck', resizeme: false, init: function() {}, html: '<div id="cite-namedref-loading">'+ '<img src="//upload.wikimedia.org/wikipedia/commons/4/42/Loading.gif" />'+ '&nbsp;'+mw.usability.getMsg('cite-loading')+'</div>', dialog: { width:550, open: function() { CiteTB.loadRefs(); }, buttons: { 'cite-errorcheck-submit': function() { var errorchecks = $("input[name='cite-err-test']:checked"); var errors = []; for (var i=0; i<errorchecks.length; i++) { errors = errors.concat(CiteTB.ErrorChecks[$(errorchecks[i]).val()].run()); } CiteTB.displayErrors(errors); $(this).dialog( 'close' ); }, 'wikieditor-toolbar-tool-link-cancel': function() { $(this).dialog( 'close' ); } } } }, 'cite-toolbar-namedrefs': { titleMsg: 'cite-named-refs-title', resizeme: false, id: 'citetoolbar-namedrefs', html: '<div id="cite-namedref-loading">'+ '<img src="//upload.wikimedia.org/wikipedia/commons/4/42/Loading.gif" />'+ '&nbsp;'+mw.usability.getMsg('cite-loading')+'</div>', init: function() {}, dialog: { width: 550, open: function() { CiteTB.loadRefs(); }, buttons: { 'cite-form-submit': function() { var refname = $("#cite-namedref-select").val(); if (refname === '') { return; } $(this).dialog( 'close' ); $.wikiEditor.modules.toolbar.fn.doAction( $(this).data( 'context' ), { type: 'encapsulate', options: { post: CiteTB.getNamedRef(refname, true) } }, $(this) ); }, 'wikieditor-toolbar-tool-link-cancel': function() { $(this).dialog( 'close' ); } } } } }; $target.wikiEditor('addDialog', defaultdialogs); $('#citetoolbar-namedrefs').off('dialogopen'); if (!CiteTB.getOption('modal')) { //$('#citetoolbar-namedrefs').dialog('option', 'modal', false); //$('#citetoolbar-errorcheck').dialog('option', 'modal', false); mw.util.addCSS(".ui-widget-overlay {"+ "display:none !important;"+ "}"); } $target.wikiEditor('addToToolbar', refsection); }; // Load local data - messages, cite templates, etc. $(document).ready( function() { switch( mw.config.get('wgUserLanguage') ) { case 'de': // German importScript('MediaWiki:RefToolbarMessages-de.js'); break; default: // English importScript('MediaWiki:RefToolbarMessages-en.js'); } }); // Setup the main object CiteTB.mainRefList = []; CiteTB.refsLoaded = false; // REF FUNCTIONS // Actually assemble a ref from user input CiteTB.getRef = function(inneronly, forinsert) { var i; var template = CiteTB.getOpenTemplate(); var templatename = template.templatename; var res = ''; var refobj = {'shorttag':false}; if (!inneronly) { var group = $('#cite-'+CiteTB.escStr(template.shortform)+'-group').val(); var refname = $('#cite-'+CiteTB.escStr(template.shortform)+'-name').val(); res += '<ref'; if (refname) { refname = $.trim(refname); res+=' name='+CiteTB.getQuotedString(refname); refobj.refname = refname; } if (group) { group = $.trim(group); res+=' group='+CiteTB.getQuotedString(group); refobj.refgroup = group; } res+='>'; } var content ='{{'+templatename; for( g in template.incrementables ) { group = template.incrementables[g]; for (i=1; i<=group.val; i++) { for (j=0; j<group.fields.length; j++) { var fieldname = group.fields[j].field; var fieldid = fieldname.replace('<N>', i.toString()); var field = $('#cite-'+CiteTB.escStr(template.shortform)+'-'+fieldid).val(); if (field) { content+='|'+fieldid+'='; content+= $.trim(field); } } } } for( i=0; i<template.basic.length; i++ ) { if (template.basic[i].increment_group) { continue; } var fieldname = template.basic[i].field; var field = $('#cite-'+CiteTB.escStr(template.shortform)+'-'+fieldname).val(); if (field) { content+='|'+fieldname+'='; content+= $.trim(field); } } if ($('#cite-form-status').val() !== 'closed') { for( i=0; i<template.extra.length; i++ ) { if (template.extra[i].increment_group) { continue; } var fieldname = template.extra[i].field; var field = $('#cite-'+CiteTB.escStr(template.shortform)+'-'+fieldname).val(); if (field) { content+='|'+fieldname+'='; content+= $.trim(field); } } } content+= '}}'; res+=content; refobj.content = content; if (!inneronly) { res+= '</ref>'; } if (forinsert) { CiteTB.mainRefList.push(refobj); } return res; }; // Make a reference to a named ref CiteTB.getNamedRef = function(refname, forinsert) { if (forinsert) { CiteTB.mainRefList.push( {'shorttag':true, 'refname':refname} ); } return '<ref name='+CiteTB.getQuotedString(refname)+' />'; }; // Function to load the ref list CiteTB.loadRefs = function() { if (CiteTB.refsLoaded) { return; } CiteTB.getPageText(CiteTB.loadRefsInternal); }; // Function that actually loads the list from the page text CiteTB.loadRefsInternal = function(text) { // What this does: extract first name/group extract second name/group shorttag inner content var refsregex = /< *ref(?: +(name|group) *= *(?:"([^"]*?)"|'([^']*?)'|([^ '"\/\>]*?)) *)? *(?: +(name|group) *= *(?:"([^"]*?)"|'([^']*?)'|([^ '"\/\>]*?)) *)? *(?:\/ *>|>((?:.|\n)*?)< *\/ *ref *>)/gim; // This should work regardless of the quoting used for names/groups and for linebreaks in the inner content while (true) { var ref = refsregex.exec(text); if (ref === null) { break; } var refobj = {}; if (ref[9]) { // Content + short tag check //alert('"'+ref[9]+'"'); refobj.content = ref[9]; refobj.shorttag = false; } else { refobj.shorttag = true; } if (ref[1] !== '') { // First name/group if (ref[2]) { refobj['ref'+ref[1]] = ref[2]; } else if (ref[3]) { refobj['ref'+ref[1]] = ref[3]; } else { refobj['ref'+ref[1]] = ref[4]; } } if (ref[5] !== '') { // Second name/group if (ref[6]) { refobj['ref'+ref[5]] = ref[6]; } else if (ref[7]) { refobj['ref'+ref[5]] = ref[7]; } else { refobj['ref'+ref[5]] = ref[8]; } } CiteTB.mainRefList.push(refobj); } CiteTB.refsLoaded = true; CiteTB.setupErrorCheck(); CiteTB.setupNamedRefs(); }; // AJAX FUNCTIONS // Parse some wikitext and hand it off to a callback function CiteTB.parse = function(text, callback) { $.post( mw.util.wikiScript( 'api' ), {action:'parse', title:mw.config.get('wgPageName'), text:text, prop:'text', format:'json'}, function(data) { var html = data.parse.text['*']; callback(html); }, 'json' ); }; // Use the API to expand templates on some text CiteTB.expandtemplates = function(text, callback) { $.post( mw.util.wikiScript( 'api' ), {action:'expandtemplates', title:mw.config.get('wgPageName'), text:text, format:'json'}, function(data) { var restext = data.expandtemplates['*']; callback(restext); }, 'json' ); }; // Function to get the page text CiteTB.getPageText = function(callback) { var section = $("input[name='wpSection']").val(); if ( section !== '' ) { var postdata = {action:'query', prop:'revisions', rvprop:'content', pageids:mw.config.get('wgArticleId'), format:'json'}; if (CiteTB.getOption('expandtemplates')) { postdata.rvexpandtemplates = '1'; } $.get( mw.util.wikiScript( 'api' ), postdata, function(data) { var pagetext = data.query.pages[mw.config.get('wgArticleId').toString()].revisions[0]['*']; callback(pagetext); }, 'json' ); } else { if (CiteTB.getOption('expandtemplates')) { CiteTB.expandtemplates($('#wpTextbox1').wikiEditor('getContents').text(), callback); } else { callback($('#wpTextbox1').wikiEditor('getContents').text()); } } }; // Autofill a template from an ID (ISBN, DOI, PMID) CiteTB.initAutofill = function() { var elemid = $(this).attr('id'); var res = /^cite\-auto\-(.*?)\-(.*)\-(.*)$/.exec(elemid); var tem = res[1]; var field = res[2]; var autotype = res[3]; var id = $('#cite-'+tem+'-'+field).val(); if (!id) { return false; } var url = '//tools.wmflabs.org/reftoolbar/lookup.php?'; url+=autotype+'='+encodeURIComponent(id); url+='&template='+encodeURIComponent(tem); var s = document.createElement('script'); s.setAttribute('src', url); s.setAttribute('type', 'text/javascript'); document.getElementsByTagName('head')[0].appendChild(s); return false; }; // Callback for autofill //TODO: Autofill the URL, at least for DOI CiteTB.autoFill = function(data, template, type) { var cl = 'cite-'+template+'-'; var i,j, coauthors; $('.'+cl+'title').val(data.title); if ($('.'+cl+'last-incr-1').length != 0) { var classes = $('.'+cl+'last-incr-1').eq(0).attr('class').split(/\s+/); var group = false; var patt = /cite-[^-]*?-incr-(.*)/ for (var c=0; c<classes.length; c++) { if (patt.exec(classes[c])) { group = patt.exec(classes[c])[1]; break; } } $('.'+cl+'last-incr-1').val(data.authors[0][0]) $('.'+cl+'first-incr-1').val(data.authors[0][1]) elemid = '#cite-incr-'+template+'-'+group; for (var i=2; i<data.authors.length+1; i++) { $(elemid).click(); $('.'+cl+'last-incr-'+i.toString()).val(data.authors[i-1][0]) $('.'+cl+'first-incr-'+i.toString()).val(data.authors[i-1][1]) } } else if ($('.'+cl+'author-incr-1').length != 0) { var classes = $('.'+cl+'author-incr-1').eq(0).attr('class').split(/\s+/); var group = false; var patt = /cite-[^-]*?-incr-(.*)/ for (var c=0; c<classes.length; c++) { if (patt.exec(classes[c])) { group = patt.exec(classes[c])[1]; break; } } $('.'+cl+'author-incr-1').val(data.authors[0].join(', ')) elemid = '#cite-incr-'+template+'-'+group; for (var i=2; i<data.authors.length+1; i++) { $(elemid).click(); $('.'+cl+'author-incr-'+i.toString()).val(data.authors[i-1].join(', ')) } } else if ($('.'+cl+'last1').length != 0) { for(i=0; data.authors && i<data.authors.length; i++) { if ($('.'+cl+'last'+(i+1)).length) { $('.'+cl+'last'+(i+1)).val(data.authors[i][0]); $('.'+cl+'first'+(i+1)).val(data.authors[i][1]); } else { coauthors = []; for(j=i; j<data.authors.length; j++) { coauthors.push(data.authors[j].join(', ')); } $('.'+cl+'coauthors').val(coauthors.join('; ')); break; } } } else if($('.'+cl+'author1').length !== 0) { for(i=0; data.authors && i<data.authors.length; i++) { if ($('.'+cl+'author'+(i+1)).length) { $('.'+cl+'author'+(i+1)).val(data.authors[i].join(', ')); } else { coauthors = []; for(j=i; j<data.authors.length; j++) { coauthors.push(data.authors[j].join(', ')); } $('.'+cl+'coauthors').val(coauthors.join('; ')); break; } } } else { var authors = []; for(i=0; data.authors && i<data.authors.length; i++) { authors.push(data.authors[i].join(', ')); } $('.'+cl+'authors').val(authors.join('; ')); } if (type === 'pmid' || type === 'doi') { if (data.fulldate || !$('.'+cl+'month').length) { var DT = new Date(data.date); var useday = /\d{4}-\d{2}-\d{2}/.test(data.date); var usemonth = /\d{4}-\d{2}/.test(data.date); $('.'+cl+'date').val(CiteTB.formatDate(DT, useday, usemonth)); } else if (!data.fulldate && $('.'+cl+'month').length && $('.'+cl+'year').length) { if (data.month) { // lookup.php sets month to false if it isn't provided $('.'+cl+'month').val( CiteTB.getOption('months')[parseInt(data.month)-1] ); } $('.'+cl+'year').val(data.year); } else { $('.'+cl+'date').val(data.date); } $('.'+cl+'journal').val(data.journal); $('.'+cl+'volume').val(data.volume); $('.'+cl+'issue').val(data.issue); $('.'+cl+'pages').val(data.pages); } else if (type === 'isbn') { $('.'+cl+'publisher').val(data.publisher); $('.'+cl+'location').val(data.location); $('.'+cl+'year').val(data.year); $('.'+cl+'edition').val(data.edition); } }; // FORM DIALOG FUNCTIONS // Add new incrementable fields CiteTB.incrementFields = function() { template = CiteTB.getOpenTemplate(); var currentrow = $(this).parents('tr')[0]; $(this).prev().css('width', '100%') $(this).detach(); var elemid = $(this).attr('id'); var res = /^cite\-incr\-(.*?)\-(.*)$/.exec(elemid); group = res[2]; increments = template.incrementables[group]; fields = increments.fields; incrval = increments.val+1; template.incrementables[group].val += 1; trs = template.makeFormInner(fields, false); trs.reverse(); for (var i=0; i<trs.length; i++) { $(currentrow).after(trs[i]); } }; // fill the accessdate param with the current date CiteTB.fillAccessdate = function() { var elemid = $(this).attr('id'); var res = /^cite\-date\-(.*?)\-(.*)$/.exec(elemid); var id = res[1]; var field = res[2]; var DT = new Date(); var datestr = CiteTB.formatDate(DT); $('#cite-'+id+'-'+field).val(datestr); return false; }; CiteTB.formatDate = function(DT, useday, usemonth) { if (typeof useday == "undefined") { useday = true; } if (typeof usemonth == "undefined") { usemonth = true; } var datestr = CiteTB.getOption('date format'); var zmonth = ''; var month = DT.getUTCMonth()+1; if (month < 10) { zmonth = "0"+month.toString(); } else { zmonth = month.toString(); } month = month.toString(); var zdate = ''; var date = DT.getUTCDate(); if (date < 10) { zdate = "0"+date.toString(); } else { zdate = date.toString(); } date = date.toString(); if (useday) { datestr = datestr.replace('<date>', date); datestr = datestr.replace('<zdate>', zdate); } else { datestr = datestr.replace('<date>', ''); datestr = datestr.replace('<zdate>', ''); } if (usemonth) { datestr = datestr.replace('<month>', month); datestr = datestr.replace('<zmonth>', zmonth); datestr = datestr.replace('<monthname>', CiteTB.getOption('months')[DT.getUTCMonth()]); } else { datestr = datestr.replace('<month>', ''); datestr = datestr.replace('<zmonth>', ''); datestr = datestr.replace('<monthname>', ''); } datestr = datestr.replace('<year>', DT.getUTCFullYear().toString()); return datestr.replace(/^[ \/\-\,\.]*(.*?)[ \/\-\,\.]*$/g, "$1"); // Cleanup any dangling spaces or connectors that might result from omitting date/month }; // Function called after the ref list is loaded, to actually set the contents of the named ref dialog // Until the list is loaded, its just a "Loading" placeholder CiteTB.setupNamedRefs = function() { var names = [], i; for( i=0; i<CiteTB.mainRefList.length; i++) { if (!CiteTB.mainRefList[i].shorttag && CiteTB.mainRefList[i].refname) { names.push(CiteTB.mainRefList[i]); } } var stuff = $('<div>'); $('#citetoolbar-namedrefs').html( stuff ); if (names.length === 0) { stuff.html(mw.usability.getMsg('cite-no-namedrefs')); } else { stuff.html(mw.usability.getMsg('cite-namedrefs-intro')); var select = $('<select id="cite-namedref-select">'); select.append($('<option value="" />').text(mw.usability.getMsg('cite-named-refs-dropdown'))); for(i=0; i<names.length; i++) { select.append($('<option />').text(names[i].refname)); } stuff.after(select); select.before('<br />'); var prevlabel = $('<div id="cite-nref-preview-label" style="display:none;" />').html(mw.usability.getMsg('cite-raw-preview')); select.after(prevlabel); prevlabel.before("<br /><br />"); prevlabel.after('<div id="cite-namedref-preview" style="padding:0.5em; font-size:110%" />'); var parselabel = $('<span id="cite-parsed-label" style="display:none;" />').html(mw.usability.getMsg('cite-parsed-label')); $('#cite-namedref-preview').after(parselabel); parselabel.after('<div id="cite-namedref-parsed" style="padding-bottom:0.5em; font-size:110%" />'); var link = $('<a href="#" id="cite-nref-parse" style="margin:0 1em 0 1em; display:none; color:darkblue" />'); link.html(mw.usability.getMsg('cite-form-parse')); $('#cite-namedref-parsed').after(link); $("#cite-namedref-select").on( 'change', CiteTB.namedRefSelectClick); $('#cite-nref-parse').on( 'click', CiteTB.nrefParseClick); } }; // Function to get the errorcheck form HTML CiteTB.setupErrorCheck = function() { var form = $('<div id="cite-errorcheck-heading" />').html(mw.usability.getMsg('cite-errorcheck-heading')); var ul = $("<ul id='cite-errcheck-list' />"); var test; for (var t in CiteTB.ErrorChecks) { test = CiteTB.ErrorChecks[t]; ul.append(test.getRow()); } form.append(ul); $('#citetoolbar-errorcheck').html(form); }; // Callback function for parsed preview CiteTB.fillNrefPreview = function(parsed) { $('#cite-parsed-label').show(); $('#cite-namedref-parsed').html(parsed); }; // Click handler for the named-ref parsed preview CiteTB.nrefParseClick = function() { var choice = $("#cite-namedref-select").val(); if (choice === '') { $('#cite-parsed-label').hide(); $('#cite-namedref-parsed').text(''); return false; } $('#cite-nref-parse').hide(); for( var i=0; i<CiteTB.mainRefList.length; i++) { if (!CiteTB.mainRefList[i].shorttag && CiteTB.mainRefList[i].refname == choice) { CiteTB.parse(CiteTB.mainRefList[i].content, CiteTB.fillNrefPreview); return false; } } }; // Click handler for the named-ref dropdown CiteTB.lastnamedrefchoice = ''; CiteTB.namedRefSelectClick = function() { var choice = $("#cite-namedref-select").val(); if (CiteTB.lastnamedrefchoice == choice) { return; } CiteTB.lastnamedrefchoice = choice; $('#cite-parsed-label').hide(); $('#cite-namedref-parsed').text(''); if (choice === '') { $('#cite-nref-preview-label').hide(); $('#cite-namedref-preview').text(''); $('#cite-nref-parse').hide(); return; } for( var i=0; i<CiteTB.mainRefList.length; i++) { if (!CiteTB.mainRefList[i].shorttag && CiteTB.mainRefList[i].refname == choice) { $('#cite-nref-preview-label').show(); $('#cite-namedref-preview').text(CiteTB.mainRefList[i].content); if (CiteTB.getOption('autoparse')) { CiteTB.nrefParseClick(); } else { $('#cite-nref-parse').show(); } } } }; // callback function for parsed preview CiteTB.fillTemplatePreview = function(text) { var template = CiteTB.getOpenTemplate(); var div = $("#citetoolbar-"+CiteTB.escStr(template.shortform)); div.find('.cite-prev-parsed-label').show(); div.find('.cite-preview-parsed').html(text); }; // Click handler for template parsed preview CiteTB.prevParseClick = function() { var ref = CiteTB.getRef(true, false); var template = CiteTB.getOpenTemplate(); var div = $("#citetoolbar-"+CiteTB.escStr(template.shortform)); div.find('.cite-prev-parse').hide(); CiteTB.parse(ref, CiteTB.fillTemplatePreview); }; // Show/hide the extra fields in the dialog box CiteTB.showHideExtra = function() { var template = CiteTB.getOpenTemplate(); var div = $("#citetoolbar-"+CiteTB.escStr(template.shortform)); var setting = div.find(".cite-form-status").val(); if ( setting === 'closed' ) { div.find(".cite-form-status").val('open'); div.find('.cite-extra-fields').show(1, function() { // jQuery adds "display:block", which screws things up div.find('.cite-extra-fields').attr('style', 'width:100%; background-color:transparent;'); }); } else { div.find(".cite-form-status").val('closed'); div.find('.cite-extra-fields').hide(); } }; // Resets form fields and previews // Resets form fields and previews CiteTB.resetForm = function() { var template = CiteTB.getOpenTemplate(); var div = $("#citetoolbar-"+CiteTB.escStr(template.shortform)); div.html(template.getForm()); }; // STRING UTILITY FUNCTIONS // Returns a string quoted as necessary for name/group attributes CiteTB.getQuotedString = function(s) { var sp = /\s/.test(s); // spaces var sq = /\'/.test(s); // single quotes var dq = /\"/.test(s); // double quotes if (!sp && !sq && !dq) { // No quotes necessary return s; } else if (!dq) { // Can use double quotes return '"'+s+'"'; } else if (!sq) { // Can use single quotes return "'"+s+"'"; } else { // Has double and single quotes s = s.replace(/\"/g, '\"'); return '"'+s+'"'; } }; // Fix up strings for output - capitalize first char, replace underscores with spaces CiteTB.fixStr = function(s) { s = s.slice(0,1).toUpperCase() + s.slice(1); s = s.replace('_',' '); return s; }; // Escape spaces and quotes for use in HTML classes/ids CiteTB.escStr = function(s) { return s.replace(' ', '-').replace("'", "\'").replace('"', '\"'); }; // MISC FUNCTIONS // Determine which template form is open, and get the template object for it CiteTB.getOpenTemplate = function() { var dialogs = $(".ui-dialog-content.ui-widget-content:visible"); var templatename = $(dialogs[0]).find(".cite-template").val(); return CiteTB.Templates[templatename]; }; // Display the report for the error checks CiteTB.displayErrors = function(errors) { $('#cite-err-report').remove(); var table = $('<table id="cite-err-report" style="width:100%; border:1px solid #A9A9A9; background-color:#FFEFD5; padding:0.25em; margin-top:0.5em" />'); $('#editpage-copywarn').before(table); var tr; var tr1 = $('<tr style="width:100%" />'); var th1 = $('<th style="width:60%; font-size:110%" />').html(mw.usability.getMsg('cite-err-report-heading')); var th2 = $('<th style="text-align:right; width:40%" />'); var im = $('<img />').attr('src', '//thumb.wikimedia.org/wikipedia/commons/thumb/5/55/Gtk-stop.svg/20px-Gtk-stop.svg.png'); im.attr('alt', mw.usability.getMsg('cite-err-report-close')).attr('title', mw.usability.getMsg('cite-err-report-close')); var ad = $('<a id="cite-err-check-close" />').attr('href', '#'); ad.append(im); th2.append(ad); tr1.append(th1).append(th2); table.append(tr1); $('#cite-err-check-close').on('click', function() { $('#cite-err-report').remove(); }); if (errors.length === 0) { tr = $('<tr style="width:100%;" />'); var td = $('<td style="text-align:center; margin:1.5px;" />').html(mw.usability.getMsg('cite-err-report-empty')); tr.append(td); table.append(tr); return; } for(var e in errors) { var err = errors[e]; tr = $('<tr style="width:100%;" />'); var td1 = $('<td style="border: 1px solid black; margin:1.5px; width:60%" />').html(err.err); var td2 = $('<td style="border: 1px solid black; margin:1.5px; width:40%" />').html(mw.usability.getMsg(err.msg)); tr.append(td1).append(td2); table.append(tr); } }; } // End of code loaded only on edit da2cu4l4c3z5tkgd2ebpsu5v6zrjr4r