Module:Category handler/data and Template:Us-provider: Difference between pages

From WikiMD.org
< Module:Category handler(Difference between pages)
Jump to navigation Jump to search
en>MusikAnimal
m (1 revision imported)
 
No edit summary
 
Line 1: Line 1:
-- This module assembles data to be passed to [[Module:Category handler]] using
<noinclude>
-- mw.loadData. This includes the configuration data and whether the current
{{#template_params:Firstname|Middlename|Lastname|Suffix|Credentials|NPI|Gender|Medical_school (label=Medical School)|Graduation_year (label=Graduation year)|Primary_specialty (label=Primary Specialty)|Secondary_specialties (label=Secondary specialties)|organization_name (label=Organization name)|Address (label=Adress)|City|State|Zip (label=ZIP)|Adress2 (label=Adress 2)|Coordinates|Phone|Fax|Website|Email|Hospital_affiliations (label=Hospital affiliations)|Retirement status|Image (namespace=File)|Rating|Known_for (label=Known for)|Accepting_patients}}
-- page matches the title blacklist.
{{#cargo_declare:_table=us-provider|Firstname=String|Middlename=String|Lastname=String|Suffix=String|Credentials=Page|NPI=Integer|Gender=List (,) of Page (allowed values=Male,Female,Transgender,NA,Other)|Medical_school=Page|Graduation_year=Integer|Primary_specialty=Page|Secondary_specialties=List (,) of Wikitext|organization_name=Page|Address=String|City=Page|State=Page|Zip=Integer|Adress2=String|Coordinates=Coordinates|Phone=String|Fax=String|Website=URL|Email=Email|Hospital_affiliations=Wikitext|Retirement_status=List (,) of Boolean (allowed values=Active,Retired,NA)|Image=File|Rating=List (,) of Rating (allowed values=*****,****.***.**.*)|Known_for=Wikitext|Accepting_patients=List (,) of Boolean (allowed values=Yes,No,NA)}}
 
</noinclude><includeonly>{{#cargo_store:_table=us-provider}}
local data = require('Module:Category handler/config')
{{#template_display:_format=infobox}}</includeonly>
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

Revision as of 03:33, 18 September 2022

This is the "Us-provider" template.

It should be called in the following format:

{{Us-provider
|Firstname=
|Middlename=
|Lastname=
|Suffix=
|Credentials=
|NPI=
|Gender=
|Medical_school=
|Graduation_year=
|Primary_specialty=
|Secondary_specialties=
|organization_name=
|Address=
|City=
|State=
|Zip=
|Adress2=
|Coordinates=
|Phone=
|Fax=
|Website=
|Email=
|Hospital_affiliations=
|Retirement status=
|Image=
|Rating=
|Known_for=
|Accepting_patients=
}}

Edit the page to see the template text.

Error: 'list' is not allowed for fields of type 'Boolean'.