Module:Infobox gene/sandbox/en
Appearance
local p = { }
p.CFG = { --Configuration values
SeparatorStr = ",",
ThousandSeparator = ',',
LeftToRigthWriting = true,
InfoboxFontSize = '85%',
InfoboxWidth = '23em',
-- Global Color Scheme
rowBGcolor = '#eee',
titleBGcolor = '#ddd',
sideTitleBGcolor = '#c3fdb8',
-- NEW
topTitleBGcolor = '', -- '' for no color (transparent); with a color: i.e. '#b0d1ad'
TitleIcon = '', -- For icon at left of title text: i.e. 'Chromosome2 icon.svg'
-- The next three items indicate the minimum width of the indicated bar should have,
-- 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 = '68px', -- For GO_mol_funct, GO_cell_comp and GO_bio_process
-- The next two items indicate the widths for the first two columns of 'Gene location' tables
-- Usually: label_locus_width + cytoband_width = 50%
label_locus_width = '12%',
cytoband_width = '38%',
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 existing 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 = false, -- Show a link icon to translate an item to your language
WDLnk_CorrectTransl = false, -- Show a link icon to correct the already made English translation of an item
-- The next options In English wikipedia are false:
OrthologsCollapsed = false, -- If "true" the orthologs list is initially displayed expanded
ShowDiseases = false, -- It shows the diseases section
ShowDrugs = false, -- 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'},
captionNames = {'caption'},
-- 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 = 'You can translate it', --NEW! In Wikidata
youCanModifyIt = 'You can modify it', --NEW! In Wikidata
LookLocalArticle = "Look at the article", --NEW! You can add " in YourLanguage"
proteinL = 'protein',
AvailableStructures = 'Available structures',
PDB_lnk = 'Protein_Data_Bank|PDB',
PDBListTitle = "List of PDB id codes",
checkOrtholog = 'Ortholog search',
checkOrthologH = 'Human UniProt search',
IdentifiersU = "Identifiers",
aliases_lnk = 'Gene nomenclature|Aliases',
HUGO_lnk = 'Human Genome Organisation|HUGO', --NEW
ext_id = "External IDs",
OMIM_lnk = 'Mendelian_Inheritance_in_Man|OMIM',
Homolo_lnk = 'HomoloGene',
GeneCards_lnk = 'GeneCards',
MGI_lnk = 'Mouse_Genome_Informatics|MGI',
ChEMBL_lnk = 'ChEMBL',
IUPHAR = 'International_Union_of_Basic_and_Clinical_Pharmacology|IUPHAR',
EC_lnk = 'Enzyme_Commission_number|EC Number',
OMA_lnk = 'Orthologous_MAtrix|OMA',
RelDiseases = 'Genetically Related Diseases',
AssocDiseases = "Diseases that are genetically associated with ",
SeeEditWDRef = " view/edit references on wikidata",
TargDrug = "Targeted by Drug",
InterDrug = "Drugs that physically interact with ",
HumanL = 'human',
MouseL = 'mouse',
HumanU = 'Human',
MouseU = 'Mouse',
GL_GeneLoc = 'Gene location',
GL_Human_lnk = "Human Genome|Human",
GL_Mouse_lnk = "Laboratory mouse|Mouse",
GL_chr_lnk = "Chromosome",
GL_locus_lnk = "Locus (genetics)|Band",
GL_gstart = "Start",
GL_gend = "End",
GL_tooltip = "Genomic location for ",
GL_ortholog = "(ortholog)",
Ensembl_lnk = "Ensembl",
BasePair = "bp",
BasePair_only_lnk = "Base pair",
--In the next two variables, the first %s is replaced for the chromosome number (Auto) or X or Y (Sex)
HumanChromosomeIdeogr = 'Human chromosomes, framed: %s',
MouseChromosomeIdeogr = 'Mouse chromosomes, framed: %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 = 'Chromosome %s (%s)',
ChromosomeSex_lnk = '%s chromosome (%s)',
ChromosomeAutoSex_abbr = '%s (%s)',
ChromosomeMit = "Mitochondrial DNA (%s)", --the %s is replaced for the species (human or mouse)
RNAexpres = "[[Gene expression|RNA expression]] pattern",
RNAexpres_more_exprdata = "More reference expression data",
RNAexpres_more_expl = 'Top expressed in',
Bgee = "Bgee",
BioGPS = "BioGPS",
GO_title_lnk = "Gene ontology",
GO_mol_funct = "Molecular function",
GO_cell_comp = "Cell component",
GO_bio_process = "Biological process",
Orth_Orthologs_lnk = "Sequence homology#Orthology|Orthologs",
Orth_Categ = 'Category:',
Orth_C_Num = 'Genes on human chromosome %s', -- the %s is replaced for a number
Orth_C_Sex = 'Genes on human chromosome %s', -- the %s is replaced for X or Y
Orth_C_Mit = 'Human mitochondrial genes',
Orth_HumanGens = 'Human genes',
Orth_Entrez_lnk = "Entrez",
Orth_Ensembl_lnk = "Ensembl",
Orth_UniProt_lnk = "UniProt",
Orth_RefSeq_lnk = "RefSeq",
Orth_RefSeq = "RefSeq",
Orth_UCSC = "Location (%s)", -- the %s is replaced for link to Orth_UCSC_lnk
Orth_UCSC_lnk = 'UCSC Genome Browser|UCSC', --NEW
SourcesTP = "Sources",
refseq_RNAm = '(RNAm)',
refseq_protein = '(protein)',
SpeciesU = "Species",
PubMed_Search = "%s search", -- the %s is replaced for link to PubMed_lnk
PubMed_lnk = 'PubMed',
Wikidata_lnk = 'Wikidata',
SeeEditHuman = 'View/Edit Human gene', --CHANGED content, original: 'View/Edit Human'
SeeEditMouse = 'View/Edit Mouse gene', --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