Template:Var/doc: Difference between revisions

→‎Usage: clean up
m (1 revision)
 
(→‎Usage: clean up)
 
(One intermediate revision by the same user not shown)
Line 3: Line 3:


==Usage==
==Usage==
This template is to help facilitate the displaying of variable names (in mathematics, computer source code, wikimarkup, etc.) with the [[Semantic markup|semantically correct]] {{tag|var}} tags, which also renders the variable in italics, as is customary. This method is preferred to simply italicizing for many reasons, including [[WP:Accessibility|accessibility]], [[separation of presentation and content]], [[semantic Web]], and [[WP:METADATA|metadata]]; In [[XHTML]] and [[HTML]], the {{tag|var|o}} element has semantic meaning, while simple italicization does not.  "Variable" in this sense may include arbitrary or unknown names or terms, example human input, arithmetical variables in equations, etc. This template (and the underlying XHTML) are generally {{em|not}} used if MediaWiki's {{tag|math}} tags (or any other stand-alone mathematical markup) are being used.
This template is to help facilitate the displaying of variable names (in mathematics, computer source code, wikimarkup, etc.) with the [[Semantic markup|semantically correct]] {{tag|var}} tags, which also renders the variable in italics, as is customary. This method is preferred to simply italicizing for many reasons, including [[SV:Accessibility|accessibility]], [[separation of presentation and content]], [[semantic Web]], and [[SV:METADATA|metadata]]; In [[XHTML]] and [[HTML]], the {{tag|var|o}} element has semantic meaning, while simple italicization does not.  "Variable" in this sense may include arbitrary or unknown names or terms, example human input, arithmetical variables in equations, etc. This template (and the underlying XHTML) are generally {{em|not}} used if MediaWiki's {{tag|math}} tags (or any other stand-alone mathematical markup) are being used.


;Example:  
;Example:  
Line 48: Line 48:
[[Category:Programming typing-aid templates|{{PAGENAME}}]]
[[Category:Programming typing-aid templates|{{PAGENAME}}]]
[[Category:Semantic markup templates|{{PAGENAME}}]]
[[Category:Semantic markup templates|{{PAGENAME}}]]
[[Category:Wikipedia XHTML tag replacing templates|{{PAGENAME}}]]
[[Category:Sarkarverse XHTML tag replacing templates|{{PAGENAME}}]]
</includeonly>
</includeonly>
14,061

edits