תחביר ויקי (באנגלית: Wikitext language או Wiki markup) הוא שפת תגיות המשמשת לכתיבת דפים באתרי ויקי, כגון ויקיפדיה, אשר למעשה היא גרסה מופשטת של שפת HTML.
מערכות הוויקי השונות ממירות את קוד תחביר הוויקי ל-HTML על מנת שזה יפעל כיאות בדפדפני האינטרנט השונים.
המטרה העיקרית לכך שמערכות הוויקי השונות מבוססות על תחביר הוויקי במקום על HTML הוא משום ששפת HTML מורכבת בהרבה ובשל כך אנשים רבים אינם יודעים להשתמש בה או שנרתעים מלהשתמש בה. בשל הפשטות של תחביר הוויקי העורכים במערכות הוויקי השונות, ובוויקיפדיה בפרט, מסוגלים ליצור תוכן מורכב בקלות רבה יחסית.
הטבלה שלהלן ממחישה את ההבדלים שבין תחביר הוויקי לבין שפת HTML, לצד הפלט של הקוד הנ"ל.
הפלט | אותו הקוד בשפת HTML | בתחביר ויקי |
---|---|---|
"Take some more tea," the March Hare said to Alice, very earnestly. "I've had nothing yet," Alice replied in an offended tone: "so I can't take more." "You mean you can't take less," said the Hatter: "it's very easy to take more than nothing." | <p>"Take some more <a href="/wiki/Tea" title="Tea">teaa> ," the March Hare said to Alice, very earnestly.p> <p>"I've had nothing yet," Alice replied in an offended tone: "so I can't take more."p> <p>"You mean you can't take <i>lessi>," said the Hatter: "it's very easy to take <i>morei> than nothing."p> | "Take some more [[tea]]," the March Hare said to Alice, very earnestly. "I've had nothing yet," Alice replied in an offended tone: "so I can't take more." "You mean you can't take ''less''," said the Hatter: "it's very easy to take ''more'' than nothing." |
גילוי נאות: ערך זה מזכיר את קרן ויקימדיה או את אחד המיזמים שלה. ויקיפדיה היא מיזם של קרן ויקימדיה.
This article uses material from the Wikipedia עברית article תחביר ויקי, which is released under the Creative Commons Attribution-ShareAlike 3.0 license ("CC BY-SA 3.0"); additional terms may apply (view authors). התוכן זמין לפי תנאי CC BY-SA 4.0 אלא אם כן נאמר אחרת. Images, videos and audio are available under their respective licenses.
®Wikipedia is a registered trademark of the Wiki Foundation, Inc. Wiki עברית (DUHOCTRUNGQUOC.VN) is an independent company and has no affiliation with Wiki Foundation.