Mòdul:Infotaula gene/ca
Aparença
Podeu crear la pàgina d'ús per documentar aquest mòdul Lua. |
local p = { }
p.CFG = { --Configuration values
SeparatorStr = ",",
ThousandSeparator = '.',
-- NEW
topTitleBGcolor = '#b0d1ad', -- '' for no color (transparent)
TitleIcon = 'Chromosome2 icon.svg', -- , '' for no icon at left of title text.
pdb_bar_width = '30px',
id_bar_width = '56px',
GO_bar_width = '76px',
ArticleLnk = true, -- Create link to existent articles in local language in items for Human RNA expression pattern
WDLnk = true, -- Create link to WD in several items. But it is always false if the language is 'en' or 'simple'
-- The next options In English wikipedia are false:
OrthologsCollapsed = true, -- If it is true the orthologs list is initially displayed expanded
ShowDiseases = true, -- It shows the diseases section
ShowDrugs = true, -- It shows the drugs section
}
p.RS = { --Respurce strings
-- NEW!: Parameter names. You can assign more than one or two parameters for each parameter,
-- i.e., for Spanish: {'image', 'imagen'}, but always written between "{" and "}"
imageNames = {'image', 'imatge'},
captionNames = {'caption', 'peu'},
-- other strings
-- WARNING!!: xxx_lnk are links, in the wiki code will become [[RS.xxx_lnk]]
NotApplicableStr = "n/a",
youCanTranslateIt = 'Podeu traduir-lo', --NEW!
youCanModifyIt = 'Podeu corregir-lo', --NEW!
LookLocalArticle = "Mireu l'article en català", --NEW!
proteinL = 'proteïna',
AvailableStructures = 'Estructures disponibles',
pdb_lnk = 'Protein_Data_Bank|PDB',
listTitle = "Llista de codis id de PDB",
checkOrtholog = 'Cerca ortòloga: ',
checkOrthologH = 'Cerca Human UniProt: ',
IdentifiersU = "Identificadors",
aliases_lnk = 'Nomenclatura gènica|Àlies',
HUGO_lnk = 'HUGO', --NEW
ext_id = "Identif. externs",
onim_lnk = 'Mendelian Inheritance in Man|OMIM',
homolo_lnk = 'HomoloGene',
genecards_lnk = 'GeneCards',
mgi_lnk = 'Mouse_Genome_Informatics|MGI',
ChEMBL_lnk = 'ChEMBL',
IUPHAR_lnk = 'International_Union_of_Basic_and_Clinical_Pharmacology|IUPHAR',
EC_lnk = 'Enzyme_Commission_number|Número EC',
OMA_lnk = 'Orthologous_MAtrix|OMA',
RelDiseases = 'Malalties relacionades genèticament',
AssocDiseases = "Malalties que s'associen genèticament amb ",
SeeEditWDRef = ", vegeu/editeu les referències a wikidata",
TargDrug = "Dirigit pel fàrmac",
InterDrug = "Fàrmacs amb els quals interactuen físicament amb ",
HumanL = 'humà',
MouseL = 'ratolí',
HumanU = 'Humà',
MouseU = 'Ratolí',
GL_GeneLoc = 'Localització del gen',
GL_Human_lnk = "Genoma humà|humà",
GL_Mouse_lnk = "Ratolí de laboratori|ratolí",
GL_chr_lnk = "Cromosoma|Crom.",
GL_locus_lnk = "Locus|Banda",
GL_gstart = "Inici",
GL_gend = "Fi",
GL_tooltip = "Localització genòmica per ",
GL_ortholog = "(ortòleg)",
Ensembl_lnk = "Ensembl genome database project|Ensembl",
BasePair_lnk = "Parell de bases|bp",
RNAexpres = "Patró d'[[Expressió gènica|expressió d'ARN]]",
RNAexpres_more_exprdata = "Més referències a dades d'expressió",
RNAexpres_more_expl = 'Més explicacions',
GO_title_lnk = "Gene_ontology|Ontologia genètica",
GO_mol_funct = "Funció molecular",
GO_cell_comp = "Component cel·lular",
GO_bio_process = "Procés biològic",
Orth_Orthologs = "Ortòlegs",
Orth_Categ = 'Categoria:',
Orth_C_ChNXY = 'Gens en el cromosoma %s humà', -- the %s is replaced for a number or X or Y
Orth_C_Mit = 'Gens mitocondrials humans',
Orth_HumanGens = 'Gens humans',
Orth_Entrez_lnk = "Entrez",
Orth_Ensembl_lnk = "Ensembl",
Orth_UniProt_lnk = "UniProt",
Orth_RefSeq_lnk = "RefSeq",
Orth_UCSC = "Localització (%s)", -- the %s is replaced for link to Orth_UCSC_lnk
Orth_UCSC_lnk = 'UCSC Genome Browser|UCSC', --NEW
SourcesTP = "Fonts:",
refseq_RNAm = '(ARNm)',
refseq_protein = '(proteïna)',
SpeciesU = "Espècies",
PubMed_Search = "Cerca a %s", -- the %s is replaced for link to PubMed_lnk
PubMed_lnk = 'PubMed',
Wikidata_lnk = 'Wikidata',
SeeEditHuman = 'Veure/Editar gen humà',
SeeEditMouse = 'Veure/Editar gen del ratolí',
WD_chromosomeMT = {'cromosoma mitocondrial', 'mitocondri'}, --IMPORTANT: *
--"mitochondrion" and "chromosome MT" is used for mitochondrial DNA.
WD_chromosome = {'cromosoma'}, --IMPORTANT: *
--also you must create a redirect page for each human chromosome,
--i.e. the new page (if not yet exists) "Chromosome 2 (human)" must containts "#REDIRECT[[Chromosome 2]]"
-- obviously, in this example you must change "Chromosome" for the translated word.
ChromosomeAuto = 'Cromosoma %s (%s)', --first %s is replaced for the chromosome number, the second is the species (human or mouse)
ChromosomeSex = 'Cromosoma %s (%s)', --first %s is replaced for X or Y, the second is the species (human or mouse)
ChromosomeMit = "ADN mitocondrial (%s)", --the %s is replaced for the specie (human or mouse)
}
-- * Add your local label in wikidata, otherwise the 'Gene location' section will not appear.
-- When the translation already exists in your language you can remove the name in English, but always between "{" and "}"
function p.MkExtLnk (frame, title_h, url_h, website_h)
--In this function, you perhaps* must change:
--'cite_web' to the equivalent [[en:Template:Cite_web]] name in your wiki.
return frame:expandTemplate {title = 'cite_web',
--Also, perhaps** you must change the next arguments names (title, url and website)
--from the [[en:Template:Cite_web]],
args = {title=title_h , url=url_h, website=website_h} }
--expandTemplate creates cite web template {{cite web|title=value|url=ref_link..ect}
--* if the names are different or not exist a redirection to your template
--** if your template does not support the English names as valid arguments
end
return p