Module:BiomeList: Difference between revisions
From Eco - English Wiki
[checked revision] | [checked revision] |
No edit summary |
No edit summary |
||
(One intermediate revision by the same user not shown) | |||
Line 9: | Line 9: | ||
-- load lists | -- load lists | ||
local | local biomeData = require( "Module:BiomeData" ) | ||
local | local biomesList = biomeData.biomes | ||
local text = '<div class="col-lg-12"><Center><h2 class="title"> | local text = '<div class="col-lg-12"><Center><h2 class="title">Biomes in Eco</h2></Center></div>'; | ||
for | for Bname,Bdata in pairs(biomesList) do | ||
text = text .. '<div class="col-lg-3"><div class="card">'; | text = text .. '<div class="col-lg-3"><div class="card">'; | ||
text = text .. '[[File:Banner4k.jpg|class=card-img-top|link=]]'; | text = text .. '[[File:Banner4k.jpg|class=card-img-top|link=]]'; | ||
text = text .. '<div class="card-body"><p class="card-title">'; | text = text .. '<div class="card-body"><p class="card-title">'; | ||
text = text .. | text = text .. '[[' .. Bname .. ']] Biome'; | ||
text = text .. ' | text = text .. '</p><p class="card-subtitle mb-2 text-muted">' .. Bdata.Description .. '</p>'; | ||
text = text .. '</div></div></div>'; | |||
end | end | ||
Latest revision as of 13:06, 16 December 2024
Documentation for this module may be created at Module:BiomeList/doc
local p = {}
local Utils = require('Module:Utils')
local IconUtils = require('Module:IconUtils')
local L = require('Module:Localization')
-- Main entry point for the Module
function p.main()
-- load lists
local biomeData = require( "Module:BiomeData" )
local biomesList = biomeData.biomes
local text = '<div class="col-lg-12"><Center><h2 class="title">Biomes in Eco</h2></Center></div>';
for Bname,Bdata in pairs(biomesList) do
text = text .. '<div class="col-lg-3"><div class="card">';
text = text .. '[[File:Banner4k.jpg|class=card-img-top|link=]]';
text = text .. '<div class="card-body"><p class="card-title">';
text = text .. '[[' .. Bname .. ']] Biome';
text = text .. '</p><p class="card-subtitle mb-2 text-muted">' .. Bdata.Description .. '</p>';
text = text .. '</div></div></div>';
end
return text
end
return p