قالب:توصيف/شرح
الاستخدام
عدلالقيمة الأولى يجب أن توسم ب<nowiki></nowiki>
.
Limitations
عدلIf you don't wrap the content of the markup cell in قالب:Xtag, then any template markup will not be escaped, it will be expanded.
This example shows the markup for {{قا|وسم في النسق}}:
Renders as |
scope="col" style="width:50%;"| Expected rendering |
---|---|
{{[[قالب:Tag|Tag]]}} |
{{قا|وسم في النسق}} |
HTML entities
عدلHTML entities are parsed in the markup cell:
Nowikied markup shows as |
scope="col" style="width:50%;"| 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 قالب:Tag:
توصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
# Item 1 # Item 2 # Item 3 # Item 4 |
# Item 1
|
توصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
<nowiki /> # Item 1 # Item 2 # Item 3 # Item 4 |
|
أمثلة
عدلSimple
عدلتوصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
'''Bold text''' |
Bold text |
''Italic text'' |
Italic text |
More complex
عدلNote that {{Markup}}'s second argument here uses {{fake heading}} and {{fake citation needed}}.
توصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
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
عدلتوصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
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
عدلتوصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
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:
توصيف |
scope="col" style="width:50%;"| يظهر |
---|---|
{{مرجع كتاب|last=White |first=T. H. |title=The Book of Merlyn |year=1977}} |
قالب:مرجع كتاب |
{{كود|lang=html|{{مرجع كتاب|last=White |first=T. H. |title=The Book of Merlyn |year=1977}}}} |
قالب:كود |
أنظر ايضًا
عدل- قالب:توصيف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.