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 = '.',
LeftToRigthWriting = true,
InfoboxFontSize = '90%',
InfoboxWidth = '23em',
-- Global Color Scheme
rowBGcolor = '#eee',
titleBGcolor = '#ddd',
sideTitleBGcolor = '#c3fdb8',
-- NEW
topTitleBGcolor = '#b0d1ad', -- '' for no color (transparent)
TitleIcon = 'Chromosome2 icon.svg', -- , '' for no icon at left of title text.
-- The next three items they indicate the minimum width it should have the bar,
-- if possible, to accommodate the label splitted into words as appropriate.
PDB_bar_width = '30px', -- For PDB_lnk
id_bar_width = '56px', -- For aliases_lnk and ext_id
GO_bar_width = '76px', -- For GO_mol_funct, GO_cell_comp and GO_bio_process
-- The next three items indicate the widths for the 'Gene location' tables
-- The next two items usually: label_locus_width + cytoband_width = 44%
label_locus_width = '12%',
cytoband_width = '32%',
label_locus_width = '12%',
label_StartEnd_width = '12%', -- this item indicates the width for the column of 'Start' and 'End' labels
BgeeBioGPS_width = '12%', -- Indicates the width for the column of 'Start' and 'End' labels of 'Gene location' tables
ArticleLnk = true, -- Create link to existent articles in local language in items for Human RNA expression pattern
-- The next two items create a link to WD in several items.
-- But they are always false if the wiki language is 'en' or 'simple'.
WDLnk_Transl = true, -- Show a link icon to translate an item to your language
WDLnk_CorrectTransl = true, -- Show a link icon to correct the already made English translation of an item
-- 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
}
--WARNING: If you use Google Translator or similar to translate the next p.RS items as a whole block,
-- after translation: check that some definition name has not been translated as well
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
--the next two items are required to translation for few languages
XForChromosome = 'X',
YForChromosome = 'Y',
-- WARNING!!: xxx_lnk are links, in the wiki code will become [[RS.xxx_lnk]]
NotApplicableStr = "n/a",
youCanTranslateIt = 'Podeu traduir-lo', --NEW! In Wikidata
youCanModifyIt = 'Podeu corregir-lo', --NEW! In Wikidata
LookLocalArticle = "Mireu l'article en català", --NEW! In your language
proteinL = 'proteïna',
AvailableStructures = 'Estructures disponibles',
PDB_lnk = 'Protein_Data_Bank|PDB',
PDBListTitle = "Llista de codis id de PDB",
checkOrtholog = 'Cerca ortòloga',
checkOrthologH = 'Cerca Human UniProt',
IdentifiersU = "Identificadors",
aliases_lnk = 'Nomenclatura gènica|Àlies',
HUGO_lnk = 'Human Genome Organisation|HUGO', --NEW
ext_id = "Identif. externs",
OMIM_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|Cromosoma",
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 = "bp",
BasePair_only_lnk = "Parell de bases",
--In the next two variables, the first %s is replaced for the chromosome number (Auto) or X or Y (Sex)
HumanChromosomeIdeogr = 'Cromosomes humans, ressaltat: %s',
MouseChromosomeIdeogr = 'Cromosomes del ratolí, ressaltat: %s',
--In the next three variables:
-- the first %s is replaced for the chromosome number (Auto) or X or Y (Sex), and
-- the second %s is replaced for the specie (human or mouse)
ChromosomeAuto_lnk = 'Cromosoma %s (%s)',
ChromosomeSex_lnk = 'Cromosoma %s (%s)',
ChromosomeAutoSex_abbr = '%s (%s)',
ChromosomeMit = "ADN mitocondrial (%s)", --the %s is replaced for the specie (human or mouse)
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',
Bgee = "Bgee",
BioGPS = "BioGPS",
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_Num = 'Gens en el cromosoma %s humà', -- the %s is replaced for a number
Orth_C_Sex = 'Gens en el cromosoma %s humà', -- the %s is replaced for 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_RefSeq = "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à', --CHANGED content, original: 'View/Edit Human'
SeeEditMouse = 'Veure/Editar gen del ratolí', --CHANGED content, original: 'View/Edit Mouse'
}
--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.
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; but never title_h, url_h or website_h)
--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