Infobox Meme: Difference between revisions
From Aurora Wiki
More actions
Created page with "local p = {} function p.run() local capiunto = require 'capiunto' return capiunto.create( { title = tostring(mw.title.getCurrentTitle().text), topStyle = 'background:#cfc;', bottom = 'Below text' } ) :addRow('H', 'Hydrogen') :addRow('He','Helium') :addRow('Li','Lithium') :addImage( '350px|Bild zweier handelsüblicher Otter', 'Caption displayed below' ) end return p" |
No edit summary |
||
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
local p = {} | local p = {} | ||
function p.run() | function p.run(frame) | ||
local capiunto = require 'capiunto' | local capiunto = require 'capiunto' | ||
return capiunto.create( { | return capiunto.create( { | ||
title = | title = frame.args[1], | ||
bottom = frame.args[8] | |||
bottom = | |||
} ) | } ) | ||
:addRow(' | :addRow('Zugehörigkeit', frame.args[2]) | ||
:addRow(' | :addRow('Entstehungsjahr',frame.args[3]) | ||
:addRow(' | :addRow('Teil der Sammlungen',frame.args[4]) | ||
:addRow('Artikel geschrieben von',frame.args[5]) | |||
:addImage( | :addImage( | ||
frame.args[6], frame.args[7] | |||
) | ) | ||
end | end | ||
return p | return p | ||
Latest revision as of 09:37, 3 February 2026
Documentation for this module may be created at Module:Infobox Meme/doc
local p = {}
function p.run(frame)
local capiunto = require 'capiunto'
return capiunto.create( {
title = frame.args[1],
bottom = frame.args[8]
} )
:addRow('Zugehörigkeit', frame.args[2])
:addRow('Entstehungsjahr',frame.args[3])
:addRow('Teil der Sammlungen',frame.args[4])
:addRow('Artikel geschrieben von',frame.args[5])
:addImage(
frame.args[6], frame.args[7]
)
end
return p