Module:English variant notice and Module:English variant notice/sandbox: Difference between pages
Appearance
(Difference between pages)
Content deleted Content added
rm wikicode |
extraneous space, also the preview on say Template:Commonwealth English always uses the main versioin of the module |
||
Line 45: | Line 45: | ||
bOxford = yesno(n.Oxford) |
bOxford = yesno(n.Oxford) |
||
bIUPAC = yesno(n.IUPAC) |
bIUPAC = yesno(n.IUPAC) |
||
chemtext = "; ''aluminium'', ''sulfur'' and ''caesium''" |
chemtext = "; ''aluminium'', ''sulfur'', and ''caesium''" |
||
if bOxford then |
if bOxford then |
||
n.spelling_examples = "''colour'', ''realize'', ''organization'', ''analyse''; note that '''-ize''' is used instead of -ise" |
n.spelling_examples = "''colour'', ''realize'', ''organization'', ''analyse''; note that '''-ize''' is used instead of -ise" |
||
Line 60: | Line 60: | ||
elseif bIUPAC then |
elseif bIUPAC then |
||
n.extravariant = ' with [[IUPAC]] spelling' |
n.extravariant = ' with [[IUPAC]] spelling' |
||
n.spelling_examples = n.spelling_examples and n.spelling_examples..chemtext or "''aluminium'', ''sulfur'' and ''caesium''" |
n.spelling_examples = n.spelling_examples and n.spelling_examples..chemtext or "''aluminium'', ''sulfur'', and ''caesium''" |
||
p.IUPAC () |
p.IUPAC () |
||
return |
return |
||
Line 81: | Line 81: | ||
n.terms = n.terms and string.format(' (including %s)', n.terms) or '' |
n.terms = n.terms and string.format(' (including %s)', n.terms) or '' |
||
n.compare = n.compare and (n.compare..' ') or '' |
n.compare = n.compare and (n.compare..' ') or '' |
||
n.text = string.format([=[This %s is '''written in [[%s]]%s'''%s%s and some terms that are used in it%s may be different or absent from %sother [[List of dialects of English|varieties of English]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]]%s, this should not be changed without |
n.text = string.format([=[This %s is '''written in [[%s]]%s'''%s%s, and some terms that are used in it%s may be different or absent from %sother [[List of dialects of the English language|varieties of English]]. According to the [[Wikipedia:Manual of Style#National varieties of English|relevant style guide]]%s, this should not be changed without broad consensus.]=], |
||
n.subjectspace, n.variant, n.extravariant, n.spelling, n.spelling_examples, n.terms, n.compare, n.extraguide) |
n.subjectspace, n.variant, n.extravariant, n.spelling, n.spelling_examples, n.terms, n.compare, n.extraguide) |
||
end |
end |
||
Line 108: | Line 108: | ||
--categorize editnotice if specified |
--categorize editnotice if specified |
||
if yesno(n.editnotice_cat) then |
if yesno(n.editnotice_cat) then |
||
p.cat(string.format('Pages with %s editnotice', n.variant)) |
p.cat(string.format('Pages with editnotice %s editnotice', n.variant)) |
||
end |
end |
||
return frame:expandTemplate{title = 'editnotice', args = n} |
return frame:expandTemplate{title = 'editnotice', args = n} |