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 1: | Dòng 1: | ||
+ | Template link with bold | ||
+ | |||
{{Navbox | {{Navbox | ||
| name = Semantic markup templates | | name = Semantic markup templates | ||
Dòng 21: | Dòng 23: | ||
| {{Template link with bold|var}} | {{var|strPrefix}} | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase L); for these, {{braces|var serif}} should be used to ensure a noticeable distinction | | {{Template link with bold|var}} | {{var|strPrefix}} | To indicate text is a variable name. Use for any variable names except those including "I" (uppercase i) and/or "l" (lowercase 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) | | {{Template link with bold|var serif}} | {{var serif|strIllustratePrefix}} | (see {{braces|var}} above) | ||
− | | {{Template link with bold| | + | | {{Template link with bold|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 | | {{Template link with bold|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 | | {{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 | ||
Dòng 27: | Dòng 29: | ||
| {{Template link with bold|tag}} | {{resize|95%|"The {{tag|img}} tags ..."}} | To render [[HTML element]]s ("tags") in prose | | {{Template link with bold|tag}} | {{resize|95%|"The {{tag|img}} tags ..."}} | 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 ..."}}}} | 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 bold|code}}/{{Template link with bold|codett}} | {{nowrap|{{resize|95%|"Ensure the {{code|1=alt=}} parameter ..."}}}} | 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}} | ||
− | | {{ | + | | {{tls|codenowiki}} | <code><nowiki>{{small|small text}}</nowiki></code> | To wrap example code in {{code|<code><<nowiki>nowiki</nowiki>>...<<nowiki>/nowiki</nowiki>></code>}} |
− | | {{ | + | | {{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}} | <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}}) Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text | | {{Template link with bold|syntaxhighlight}} | <sub>[this is a block template]</sub> | ({{thin space|or {{tlx|sxhl}}}}) Wrapper for {{tag|syntaxhighlight}}, but will wrap overflowing text |