Template:Provider and Module:Category handler/data: Difference between pages

From WikiMD.org
(Difference between pages)
Jump to navigation Jump to search
No edit summary
 
en>MusikAnimal
m (1 revision imported)
 
Line 1: Line 1:
<noinclude>
-- This module assembles data to be passed to [[Module:Category handler]] using
{{#template_params:provider_page (label=Provider page; display=nonempty)|firstname (label=Firstname;display=nonempty)|middlename (label=Middlename;display=nonempty)|lastname (label=Lastname;display=nonempty)|suff2 (label=suff2;display=nonempty)|credentials (label=Credentials;display=nonempty)|npi (label=NPI;display=nonempty)|gender (label=Gender;display=nonempty)|medical_school (label=Medical school;display=nonempty)|graduation_year (label=Graduation_year;display=nonempty)|primary_specialty (label=Primary specialty;display=nonempty)|secondary specialty_all (label=Secondary_specialty_all;display=nonempty)|organization_name (label=Organization name;display=nonempty)|address (label=Address;display=nonempty)|city (label=City;display=nonempty)|state (label=State;display=nonempty)|zip (label=ZIP;display=nonempty)|address2 (label=Address2; display=nonempty)|phone_number (label=phone number; display=nonempty)|hospital_affiliations_all (label=Hospital affiliations; display=nonempty)|residency (label=Residency;display=nonempty)|fellowships (label=Fellowships;display=nonempty)|sponsors (label=Sponsors;display=nonempty)|image (label=Image;namespace=File;display=nonempty)|coordinates (label=Coordinates;display=nonempty)|comments (label=Comments,hobbies etc.;display=nonempty)}}
-- mw.loadData. This includes the configuration data and whether the current
</noinclude><includeonly>{{#cargo_store:_table=provider}}
-- page matches the title blacklist.
<div style="clear:right;">
 
{| class="wikitable" border="1" style="float:right; width:35%" background-color:#99c2cf;"
local data = require('Module:Category handler/config')
! '''Provider information:'''
local mShared = require('Module:Category handler/shared')
| '''{{{firstname|}}}''' '''{{{middlename|}}}''' '''{{{lastname|}}}''' '''{{{credentials|}}}'''
local blacklist = require('Module:Category handler/blacklist')
|-
local title = mw.title.getCurrentTitle()
! '''Gender'''
 
| {{{gender|}}}
data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
|-
title.prefixedText,
! '''Primary specialty'''
blacklist
| {{{primary_specialty|}}}
)
|-
 
! '''Secondary specialties'''
data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
| {{{secondary_specialty_all|}}}
title,
|-
mShared.getParamMappings()
! '''Education'''
)
| {{{medical_school|}}}
 
|-
return data
! '''Years active'''
| Since {{{years_active|}}}
|-
! '''Work institutions'''
| {{{organization_name|}}}
|-
! '''Address'''
| {{{address|}}} {{{address2|}}} {{{city|}}} {{{state|}}} {{{zip|}}}
|-
! '''Phone'''
| {{{phone|}}}
|-
! '''Hospital affiliations'''
| {{{hospital_affiliations_all|}}}
|-
!- '''Map'''
| {{{coordinates|}}}
|-
! '''Provider Image'''
| To add a picture see [[Adding a picture to a person page]]
|-
! '''Update'''
| '''[[Special:FormEdit/provider/{{PAGENAME}} Update info]]'''
}}
[[Category:Doctors]]
</includeonly>

Revision as of 06:12, 1 April 2020

Documentation for this module may be created at Module:Category handler/data/doc

-- This module assembles data to be passed to [[Module:Category handler]] using
-- mw.loadData. This includes the configuration data and whether the current
-- page matches the title blacklist.

local data = require('Module:Category handler/config')
local mShared = require('Module:Category handler/shared')
local blacklist = require('Module:Category handler/blacklist')
local title = mw.title.getCurrentTitle()

data.currentTitleMatchesBlacklist = mShared.matchesBlacklist(
	title.prefixedText,
	blacklist
)

data.currentTitleNamespaceParameters = mShared.getNamespaceParameters(
	title,
	mShared.getParamMappings()
)

return data