Form:Part: Difference between revisions

Fix page name field: remove unsupported size/placeholder params from standard input, restore helper text (via update-page on MediaWiki MCP Server)
Tag: Reverted
Make brand field optional (remove mandatory) (via update-page on MediaWiki MCP Server)
 
(3 intermediate revisions by the same user not shown)
Line 2: Line 2:
This form creates Part pages (CRT tubes, ICs, flyback transformers, boards, yokes, etc.).
This form creates Part pages (CRT tubes, ICs, flyback transformers, boards, yokes, etc.).


The page name should follow the pattern: '''Brand PartNumber''' (e.g., "Sanyo LA76810A", "Samsung SDI A68KJU96X").
The page name should be the '''part number only''' (e.g., "LA76810A", "A68KJU96X", "2SD2499"). Do not include the brand name in the page title — the brand is recorded in the Brand field inside the template.
</noinclude><templatestyles src="Template:Form styles.css" />
</noinclude><templatestyles src="Template:Form styles.css" />
'''Page name:''' {{{standard input|page name|mandatory}}}
<small>Use format: Brand PartNumber (e.g., "Sanyo LA76810A", "Samsung SDI A68KJU96X")</small>


{{{for template|Part}}}
{{{for template|Part}}}
Line 13: Line 10:
|-
|-
! Brand:
! Brand:
| {{{field|brand|input type=combobox|values from category=Manufacturers|mandatory}}}
| {{{field|brand|input type=combobox|values from category=Manufacturers}}}
<small>The manufacturer of this part (e.g., Sanyo, Samsung SDI, Toshiba).</small>
<small>The manufacturer of this part (e.g., Sanyo, Samsung SDI, Toshiba).</small>
|-
|-
! Part number:
! Part number:
| {{{field|model_code|mandatory}}}
| {{{field|model_code|mandatory|default={{PAGENAME}}}}}
<small>The part's model/part number (e.g., LA76810A, A68KJU96X).</small>
<small>The part's model/part number (e.g., LA76810A, A68KJU96X).</small>
|-
|-
Line 54: Line 51:
|-
|-
! Equivalent parts:
! Equivalent parts:
| {{{field|equivalent_parts|input type=text|size=50|placeholder=Sanyo LA76810B, Sanyo LA76810S}}}
| {{{field|equivalent_parts|input type=text|size=50|placeholder=LA76810B, LA76810S}}}
<small>Parts that can substitute for this one (comma-separated, include brand).</small>
<small>Parts that can substitute for this one (comma-separated).</small>
|-
|-
! OEM part numbers:
! OEM part numbers:
Line 122: Line 119:
|}
|}
{{{end template}}}
{{{end template}}}
'''Page name:''' {{{standard input|page name|mandatory}}}
<small>Use the part number only (e.g., "LA76810A", "A68KJU96X"). Do not include the brand name.</small>


{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}
{{{standard input|save}}} {{{standard input|preview}}} {{{standard input|cancel}}}
MediaWiki Appliance - Powered by TurnKey Linux