Template:PMC value: Difference between revisions
From MEpedia, a crowd-sourced encyclopedia of ME and CFS science and history
Notjusttired (talk | contribs) m (syntax) |
Notjusttired (talk | contribs) m (tidy) |
||
Line 1: | Line 1: | ||
<includeonly> | |||
{{MultiReplace|{{{1|}}}|plain=yes|PMC||pmc||Pmc||P.M.C.|| ||:|}} | |||
</includeonly> | |||
<noinclude> | <noinclude> | ||
{{Documentation}} | {{Documentation}} | ||
[[Category:String manipulation templates]] | [[Category:String manipulation templates]] | ||
</noinclude> | </noinclude> | ||
Latest revision as of 10:05, April 9, 2021
Removes the PMC prefix and any spaces from a string, not case sensitive.
This uses substitution, which allows it to permanently edit wikitext to fix minor citation errors.
Usage[edit source]
{{PMC value|input}}
Parameters:
- the string to be changed
Examples[edit source]
{{PMC value|PMC4684820}}
→
4684820
{{PMC value|4684820}}
→
4684820
{{PMC value|pmc4684820}}
→
4684820
{{PMC value|PMCPMC4684820}}
→
4684820
{{PMC value|pmc4684820}}
→
4684820
{{PMC value| PMC 4684820 }}
→
4684820
{{PMC value|PMC: 4684820 }}
→
4684820
{{PMC value|hello people}}
→
hellopeople
See also[edit source]
The above documentation is transcluded from Template:PMC value/doc. (edit | history) Editors can experiment in this template's sandbox (create | mirror) and testcases (create) pages. Please add categories to the /doc subpage. Subpages of this template. |