Sửa đổi Bản mẫu:Semantic markup templates

Chú ý: Bạn chưa đăng nhập và địa chỉ IP của bạn sẽ hiển thị công khai khi lưu các sửa đổi.

Bạn có thể tham gia như người biên soạn chuyên nghiệp và lâu dài ở Bách khoa Toàn thư Việt Nam, bằng cách đăng ký và đăng nhập - IP của bạn sẽ không bị công khai và có thêm nhiều lợi ích khác.

Các sửa đổi có thể được lùi lại. Xin hãy kiểm tra phần so sánh bên dưới để xác nhận lại những gì bạn muốn làm, sau đó lưu thay đổi ở dưới để hoàn tất việc lùi lại sửa đổi.

Bản hiện tại Nội dung bạn nhập
Dòng 15: Dòng 15:
 
   | Template       | Example output                                 | Use 
 
   | Template       | Example output                                 | Use 
  
   | {{Template link with bold|strong}}    | {{strong|Important!}}                                | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] importance, seriousness, or urgency instead of just simple typographical boldfacing
+
   | {{tlb|strong}}    | {{strong|Important!}}                                | To indicate [[HTML element#strong|<nowiki><strong></nowiki>]] importance, seriousness, or urgency instead of just simple typographical boldfacing
   | {{Template link with bold|strongbad}}  | "{{strongbad|Never}} use&thinsp;..."                | Same as {{braces|strong}} but in red
+
   | {{tlb|strongbad}}  | "{{strongbad|Never}} use&thinsp;..."                | Same as {{braces|strong}} but in red
   | {{Template link with bold|stronggood}} | "{{stronggood|Only}} use&thinsp;..."                | Same as {{braces|strong}} but in green
+
   | {{tlb|stronggood}} | "{{stronggood|Only}} use&thinsp;..."                | Same as {{braces|strong}} but in green
   | {{Template link with bold|em}}        | "An {{em|emphatic phrase}}"                          | To indicate [[HTML element#em|<nowiki><em></nowiki>]] stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
+
   | {{tlb|em}}        | "An {{em|emphatic phrase}}"                          | To indicate [[HTML element#em|<nowiki><em></nowiki>]] stress emphasis (not just purely typographical italicization like for book titles or foreign terms)
   | {{Template link with bold|var}}        | {{var|strPrefix}}                                    | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase&nbsp;i) and/or "l" (lowercase&nbsp;L); for these, {{braces|var serif}} should be used to ensure a noticeable distinction
+
   | {{tlb|var}}        | {{var|strPrefix}}                                    | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase&nbsp;i) and/or "l" (lowercase&nbsp;L); for these, {{braces|var serif}} should be used to ensure a noticeable distinction
   | {{Template link with bold|var serif}}  | {{var serif|strIllustratePrefix}}                    | (see {{braces|var}} above)
+
   | {{tlb|var serif}}  | {{var serif|strIllustratePrefix}}                    | (see {{braces|var}} above)
   | {{Template link with bold|tlc}}        | {{tlc|DEFAULTSORT:Y, X}}                            | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code
+
   | {{tlb|tld}}        | {{tld|DEFAULTSORT:Y, X}}                            | To display wikicode variables and [[Help:Magic words|magic words]] as they would appear in code
   | {{Template link with bold|para}}      | {{para|year|2008}}                                  | To display template parameters with or without values
+
   | {{tlb|para}}      | {{para|year|2008}}                                  | To display template parameters with or without values
   | {{Template link with bold|param}}      | {{param|title|alt}}                                  | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above
+
   | {{tlb|param}}      | {{param|title|alt}}                                  | To display parameters as used in code (i.e. with triple braces), especially to indicate relationships between them. May be combined with {{braces|para}} above
   | {{Template link with bold|tlx}} etc.  | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}}  | To display a template call (with or without parameters and values) as code
+
   | {{tlb|tlx}} etc.  | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}}  | To display a template call (with or without parameters and values) as code
   | {{Template link with bold|tag}}        | {{resize|95%|"The {{tag|img}} tags&thinsp;..."}}    | To render [[HTML element]]s ("tags") in prose
+
   | {{tlb|tag}}        | {{resize|95%|"The {{tag|img}} tags&thinsp;..."}}    | To render [[HTML element]]s ("tags") in prose
   | {{Template link with bold|code}}/{{Template link with bold|codett}} | {{nowrap|{{resize|95%|"Ensure the {{code|1=alt=}} parameter&thinsp;..."}}}}  | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}. {{tl|codett}} differs only in styling: {{code|someMethod}} becomes  {{codett|someMethod}}
+
   | {{tlb|code}}/{{tlb|codett}} | {{nowrap|{{resize|95%|"Ensure the {{code|1=alt=}} parameter&thinsp;..."}}}}  | To indicate text is source code. To nest other templates within {{braces|code}}, use {{tag|code}}. {{tl|codett}} differs only in styling: {{code|someMethod}} becomes  {{codett|someMethod}}
   | {{Template link with subst|codenowiki}} | <code><nowiki>{{small|small text}}</nowiki></code>  | To wrap example code in {{code|<code><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></code>}}
+
   | {{tls|codenowiki}} | <code><nowiki>{{small|small text}}</nowiki></code>  | To wrap example code in {{code|<code><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></code>}}
   | {{Template link with subst|kbdnowiki}}  | <kbd><nowiki>{{big|big text}}</nowiki></kbd>        | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}}
+
   | {{tls|kbdnowiki}}  | <kbd><nowiki>{{big|big text}}</nowiki></kbd>        | To wrap example code in {{code|<kbd><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></kbd>}}
  
   | {{Template link with bold|syntaxhighlight}}      | &nbsp; &nbsp; <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}})&nbsp; Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text
+
   | {{tlb|syntaxhighlight}}      | &nbsp; &nbsp; <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}})&nbsp; Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text
   | {{Template link with bold|deprecated code}}      | "Do not use {{tag|{{deprecated code|blink}}|o}}."  | ({{thin space|or {{tlx|dc}}}})&nbsp; To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tlx|dc2}} variant uses {{nowrap|strike-through}} ({{tag|{{dc2|blink}}|o}}) while {{tlx|dcr}} uses red ({{tag|{{dcr|blink}}|o}}).
+
   | {{tlb|deprecated code}}      | "Do not use {{tag|{{deprecated code|blink}}|o}}."  | ({{thin space|or {{tlx|dc}}}})&nbsp; To indicate [[Deprecation|deprecated]] source code in template documentation, articles on HTML specs, etc. The {{tlx|dc2}} variant uses {{nowrap|strike-through}} ({{tag|{{dc2|blink}}|o}}) while {{tlx|dcr}} uses red ({{tag|{{dcr|blink}}|o}}).
   | {{Template link with bold|pre}}                  | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For larger blocks of source code and other pre-formatted text
+
   | {{tlb|pre}}                  | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For larger blocks of source code and other pre-formatted text
   | {{Template link with bold|quote}}                | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For block quotations (only – never for non-quotations)
+
   | {{tlb|quote}}                | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For block quotations (only – never for non-quotations)
   | {{Template link with bold|block indent}}          | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For indented blocks of material; visually identical to {{tlx|quote}} but without quote markup
+
   | {{tlb|block indent}}          | &nbsp; &nbsp; <sub>[this is a block template]</sub> | For indented blocks of material; visually identical to {{tlx|quote}} but without quote markup
   | {{Template link with bold|kbd}}                  | {{kbd|user input}}                                  | To indicate user input
+
   | {{tlb|kbd}}                  | {{kbd|user input}}                                  | To indicate user input
   | {{Template link with bold|key press}}            | {{key press|Ctrl|x}}                                | To indicate specific-keystroke input, including combinations
+
   | {{tlb|key press}}            | {{key press|Ctrl|x}}                                | To indicate specific-keystroke input, including combinations
   | {{Template link with bold|key top}}              | {{key top|Left shift}}                              | Similar; includes more symbols, but does not directly support combinations
+
   | {{tlb|key top}}              | {{key top|Left shift}}                              | Similar; includes more symbols, but does not directly support combinations
   | {{Template link with bold|PlayStation key press}} | {{lower|0.17em|{{PlayStation key press|square}}}}  | To indicate PlayStation-style gamepad key presses<span style{{=}}"display: inline-block; padding-top: 0.3em; padding-bottom: 0.1em;">&nbsp;</span>
+
   | {{tlb|PlayStation key press}} | {{lower|0.17em|{{PlayStation key press|square}}}}  | To indicate PlayStation-style gamepad key presses<span style{{=}}"display: inline-block; padding-top: 0.3em; padding-bottom: 0.1em;">&nbsp;</span>
   | {{Template link with bold|button}}                | {{button|Don't save}}                              | To indicate a button in a user interface
+
   | {{tlb|button}}                | {{button|Don't save}}                              | To indicate a button in a user interface
   | {{Template link with bold|samp}}                  | {{samp|example output}}                            | To indicate sample or example output
+
   | {{tlb|samp}}                  | {{samp|example output}}                            | To indicate sample or example output
 
   }}
 
   }}
  
 
}}<noinclude>{{Documentation}}</noinclude>
 
}}<noinclude>{{Documentation}}</noinclude>

Lưu ý rằng tất cả các đóng góp của bạn tại Bách khoa Toàn thư Việt Nam sẽ được phát hành theo giấy phép Creative Commons Ghi công–Chia sẻ tương tự (xem thêm Bản quyền). Nếu bạn không muốn những gì mình viết ra sẽ có thể được bình duyệt và có thể bị sửa đổi, và không sẵn lòng cho phép phát hành lại, xin đừng nhấn nút “Lưu trang”. Đảm bảo rằng chính bạn là tác giả của những gì mình viết ra, hoặc chép nó từ một nguồn thuộc phạm vi công cộng hoặc tự do tương đương. ĐỪNG ĐĂNG NỘI DUNG CÓ BẢN QUYỀN MÀ CHƯA XIN PHÉP!

Hủy bỏ Trợ giúp sửa đổi (mở cửa sổ mới)

Các bản mẫu dùng trong trang này: