Template:Semantic markup templates: Difference between revisions

From Zoophilia Wiki
Jump to navigationJump to search
meta>Paradoctor
+{{tl|code}} variant
meta>Paradoctor
+use note
Line 26: Line 26:
   | {{tlxb|tlx}} etc.  | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}}  | To display a template call (with or without parameters and values) as code
   | {{tlxb|tlx}} etc.  | {{tlx|Template|{{var|1}}|{{var|2}}|...|{{var|10}}}}  | To display a template call (with or without parameters and values) as code
   | {{tlxb|tag}}        | {{resize|95%|"The {{tag|img}} tags ..."}}    | To render [[HTML element]]s ("tags") in prose
   | {{tlxb|tag}}        | {{resize|95%|"The {{tag|img}} tags ..."}}    | To render [[HTML element]]s ("tags") in prose
   | {{tlxb|code}}/{{tlxb|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}}
   | {{tlxb|code}}/{{tlxb|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}}


   | {{tlxs|codenowiki}} | {{longitem|style=font-size:95%;font-family:monospace;      |&lt;code&gt;&lt;nowiki&gt;&nbsp;{{var|code}}&thinsp;...<br />...&thinsp;&lt;/nowiki&gt;&lt;/code&gt;}} | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags
   | {{tlxs|codenowiki}} | {{longitem|style=font-size:95%;font-family:monospace;      |&lt;code&gt;&lt;nowiki&gt;&nbsp;{{var|code}}&thinsp;...<br />...&thinsp;&lt;/nowiki&gt;&lt;/code&gt;}} | To wrap example code in {{tag|code|o}} and nested {{tag|nowiki|o}} tags

Revision as of 12:57, 1 March 2019