Module:Convert/text: Difference between revisions
Jump to navigation
Jump to search
Content added Content deleted
(update from sandbox per Template talk:Convert#Module version 18) |
(update from sandbox per Template talk:Convert#Module version 19) |
||
Line 49: | Line 49: | ||
} |
} |
||
-- One of the following categories is included in the text of each message. |
|||
-- Using the same category for each is simplest. |
|||
local all_categories = { |
local all_categories = { |
||
unit = "[[Category:Convert errors]]", |
unit = "[[Category:Convert errors]]", |
||
option = "[[Category:Convert errors]]", |
option = "[[Category:Convert errors]]", |
||
warning = '[[Category:Convert invalid options]]', |
warning = '[[Category:Convert invalid options]]', |
||
tracking = '[[Category:Convert tracking]]', |
|||
} |
} |
||
Line 66: | Line 65: | ||
-- Message format string: $1=title, $2=text, $3=category, $4=anchor. |
-- Message format string: $1=title, $2=text, $3=category, $4=anchor. |
||
-- Each displayed message starts with "Convert:" so can easily locate by searching article. |
-- Each displayed message starts with "Convert:" so can easily locate by searching article. |
||
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Help:Convert messages#$4|<span title="Convert: $1">convert: $2</span>]]</i>]</sup>$3', |
cvt_format = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[<i>[[Help:Convert messages#$4|<span title="Convert: $1">convert: $2</span>]]</i>]</sup>$3<span class="error"></span>', |
||
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[Help:Convert messages#$4|<span title="Convert: $1">$2</span>]]</sup>$3', |
cvt_format2 = '<sup class="noprint Inline-Template" style="white-space:nowrap;">[[Help:Convert messages#$4|<span title="Convert: $1">$2</span>]]</sup>$3<span class="error"></span>', |
||
cvt_format_preview = '<strong class="error">Error in convert: $1 [[Help:Convert messages#$4|(help)]]</strong>$3', |
cvt_format_preview = '<strong class="error">Error in convert: $1 [[Help:Convert messages#$4|(help)]]</strong>$3', |
||
-- Each of following messages is a table: |
-- Each of following messages is a table: |
||
Line 198: | Line 197: | ||
["stylein"] = "stylein", |
["stylein"] = "stylein", |
||
["styleout"] = "styleout", |
["styleout"] = "styleout", |
||
["tracking"] = "tracking", |
|||
} |
} |
||
Line 329: | Line 329: | ||
-- stylein=x is handled as a special case: x can be any text |
-- stylein=x is handled as a special case: x can be any text |
||
-- styleout=x is handled as a special case: x can be any text |
-- styleout=x is handled as a special case: x can be any text |
||
-- tracking=x is handled as a special case: x can be any text |
|||
} |
} |
||