Template:BookTable
From Metabolomics.JP
(Difference between revisions)
m |
|||
Line 3: | Line 3: | ||
{{#replace: | {{#replace: | ||
{{#lua: | {{#lua: | ||
− | for name, line in stdin:gmatch("&& *([ | + | for name, line in stdin:gmatch("&& *([^&]+) *(&&[^\n]+)") do |
print("&-\n") | print("&-\n") | ||
− | print("& [[Species:" .. | + | genus = string.match(name, "[%a]+") |
+ | print("& [[Species:" .. genus .. "&" .. name .. "]]" .. line .."\n") | ||
end | end | ||
− | | {{{data|&& Data body && separated by && double ampersand.}}} | + | | {{{data|&& Data body (first, species name) && separated by && double ampersand.}}} |
}} |&|{{#bar:}} }} | }} |&|{{#bar:}} }} | ||
|} | |} |
Latest revision as of 23:06, 3 February 2010
Titles | separated by | double ampersand. |
---|---|---|
Data body (first, species name) | separated by | double ampersand. |