Template:Chem2: Difference between revisions

Safer nicotine wiki Tobacco Harm Reduction
Jump to navigation Jump to search
m (Changed protection settings for "Template:Chem2": High risk template. ([Edit=Require template editor access] (indefinite) [Move=Require template editor access] (indefinite)))
 
imported>Paine Ellsworth
(per edit request on talk page - bugfix - add "auto, link=" parameter)
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
{{#invoke:Chem2|chem}}<noinclude>{{doc}}</noinclude>
{{#invoke:Chem2|chem}}<!--
 
1. CHECK: checkFUP regular (parameters |1= and |2= are whitelisted)
-->{{#invoke:check for unknown parameters|check
||showblankpositional=1
|unknown={{main other|1=[[Category:Pages using Chem2 with parameter issues|*]]|2=}}
|preview=[[:Template:Chem2]]: Unknown parameter "_VALUE_"
|link|auto|1|2}}<!-- 1, 2 accepted parameters; see also below
 
2. CHECK: param |2= has input
-->{{#if:{{{2|}}}|<!--
-->{{preview warning|1=Parameter {{para|1=2|2={{{2|}}}}} must be empty}}<!--
-->{{main other|1=[[Category:Pages using Chem2 with parameter issues]]}} }}<!-- end of 2=hasinput check
 
3. CHECK {} brackets unbalanced (includes imbalance through end-}-bracket misreading issue)
-->{{#if:{{#invoke:String|match|s={{{1|}}}|pattern={[^%}]*$|plain=false|nomatch=|ignore_errors=true}}|<!--
-->{{preview warning|1=[[:Template:Chem2]]: Unbalanced <nowiki>{..}</nowiki> brackets (consider using extra {{!}} pipe)}}<!--
-->{{main other|1=[[Category:Pages using Chem2 with parameter issues|B]]|2=}} }}<!--
 
--><noinclude>{{documentation|1=Template:Chem2/doc}}</noinclude>

Latest revision as of 12:17, 21 March 2023