قالب:توصيف
توثيق القالب[عرض] [عدّل] [تاريخ] [محو الاختزان] [استخدامات]
الاستخدام
القيمة الأولى يجب أن توسم ب<nowiki></nowiki>
.
Limitations
<مساعدة:نص ويكي>
If you don't wrap the content of the markup cell in <مساعدة:نص ويكي>
, then any template markup will not be escaped, it will be expanded.
This example shows the markup for {{قا|Tag}}:
Renders as | Expected rendering |
---|---|
{{[[قالب:Tag|Tag]]}} |
{{قا|Tag}} |
HTML entities
HTML entities are parsed in the markup cell:
Nowikied markup shows as | Expected markup |
---|---|
– |
– |
To work around this, replace the &
with &
thus &nbsp;
will show as
List and indent markup
If the first line includes wikimarkup that must start on a new line such as #, * or ; then use <nowiki></nowiki>
:
توصيف | يظهر |
---|---|
# Item 1 # Item 2 # Item 3 # Item 4 |
# Item 1
|
توصيف | يظهر |
---|---|
<nowiki /> # Item 1 # Item 2 # Item 3 # Item 4 |
|
أمثلة
Simple
توصيف | يظهر |
---|---|
'''Bold text''' |
Bold text |
''Italic text'' |
Italic text |
More complex
Note that {{Markup}}'s second argument here uses {{fake heading}} and {{fake citation needed}}.
توصيف | يظهر |
---|---|
The quick brown fox jumps over the lazy dog.{{#tag:ref|A footnote.<ref>A reference for the footnote.</ref>|group=nb}} The cow jumped over the moon.{{بحاجة لمصدر}} == Notes == {{مراجع|group=nb}} == مراجع == {{مراجع}} |
The quick brown fox jumps over the lazy dog.[nb 1] The cow jumped over the moon.قالب:Fake citation needed
|
Multiple rows
توصيف | يظهر |
---|---|
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
With title
توصيف | يظهر |
---|---|
The quick brown fox jumps over the lazy dog. |
The quick brown fox jumps over the lazy dog. |
Showing rendered HTML
When a template is enclosed within {{كود}}, it shows the rendered HTML:
توصيف | يظهر |
---|---|
{{مرجع كتاب|last=White |first=T. H. |title=The Book of Merlyn |year=1977}} |
White، T. H. (1977). The Book of Merlyn. |
{{كود|lang=html|{{مرجع كتاب|last=White |first=T. H. |title=The Book of Merlyn |year=1977}}}} |
'"`UNIQ--templatestyles-00000023-QINU`"'<cite id="CITEREFWhite1977" class="citation book cs1">White، T. H. (1977). ''The Book of Merlyn''.</cite><span title="ctx_ver=Z39.88-2004&rft_val_fmt=info%3Aofi%2Ffmt%3Akev%3Amtx%3Abook&rft.genre=book&rft.btitle=The+Book+of+Merlyn&rft.date=1977&rft.aulast=White&rft.aufirst=T.+H.&rfr_id=info%3Asid%2Farabica.cc%3A%D9%82%D8%A7%D9%84%D8%A8%3A%D8%AA%D9%88%D8%B5%D9%8A%D9%81" class="Z3988"></span>
|
أنظر ايضًا
- قالب:توصيف2
- وحدة:DemoTemplate
- وحدة:DemoTemplate2
- {{Markup2}} for bulleted and indented markup.
- {{Markupv}} for the vertical presentation (above/below) of markup/code and its output.
- {{Automarkup}} does not require to write the code samples twice.