انتقل إلى المحتوى

موضيل:توصيف

من ويكيپيديا


شرح د لقالب[شوف] [عدل] [تاريخ] [تحديت]

تخدام

[بدل لكود]

القيمة الأولى يجب أن توسم ب<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 {{قا|Tag}}:

Renders as Expected rendering
{{[[موضيل:Tag|Tag]]}} 
{{قا|Tag}}


HTML entities

[بدل لكود]

HTML entities are parsed in the markup cell:

Nowikied markup shows as Expected markup
 – 
&nbsp;&ndash;


To work around this, replace the & with &amp; thus &amp;nbsp; will show as &nbsp;

List and indent markup

[بدل لكود]

If the first line includes wikimarkup that must start on a new line such as #, * or ; then use <nowiki></nowiki>:

Without <nowiki></nowiki>
توصيف يظهر
# Item 1
# Item 2
# Item 3
# Item 4 
# Item 1
  1. Item 2
  2. Item 3
  3. Item 4


With <nowiki></nowiki>
توصيف يظهر
<nowiki />
# Item 1
# Item 2
# Item 3
# Item 4 
  1. Item 1
  2. Item 2
  3. Item 3
  4. Item 4


أمتيلا

[بدل لكود]
توصيف يظهر
'''Bold text''' 
Bold text
''Italic text'' 
Italic text


More complex

[بدل لكود]

Note that موضيل:قا2's second argument here uses موضيل:قا2 and موضيل:قا2.

توصيف يظهر
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.{{بحاجة لمصدر}}

== نوطات ==
{{مراجع|group=nb}}

== مراجع ==
{{مراجع}}
 
The quick brown fox jumps over the lazy dog.[nb 1] The cow jumped over the moon.موضيل:Fake citation needed

موضيل:عنوان زائف

  1. ^ A footnote.[1]

موضيل:عنوان زائف

  1. ^ A reference for the footnote.


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

[بدل لكود]
Foxes and dogs
توصيف يظهر
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}}}} 
<cite class="citation book">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%2Fary.wikipedia.org%3A%D9%85%D9%88%D8%B6%D9%8A%D9%84%3A%D8%AA%D9%88%D8%B5%D9%8A%D9%81" class="Z3988"></span>'"`UNIQ--templatestyles-00000023-QINU`"'


شوف تا

[بدل لكود]
  • {{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.