Template:PlaceNamesAllusionsCategory: Difference between revisions

From International Robin Hood Bibliography
mNo edit summary
mNo edit summary
Line 1: Line 1:
<!--{{#ifeq:{{{AlCat|}}}|||{{#ifeq:{{#pos:{{{AlCat|}}}|(}}||[[Category:Allusions ({{{AlCat|}}})]]|[[Category:Allusions ({{#replace:{{#sub:{{{AlCat|}}}|0|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}},{{#sub:{{{AlCat|}}}|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}}|(|}}]]}}}}--><noinclude><div class="no-img">This template adds categories for place-name allusions to a place-name page.</div></noinclude><includeonly>{{#ifeq:{{{AlCat|}}}|||[[Category:Allusions {{#replace:({{#ifeq:{{#pos:{{PAGENAME}}|(|0}}||{{{AlCat|}}}|{{#replace:{{UtilLParenToSpComma|Str={{{AlCat|}}}}}|)|,}}}})|,)|)}}]]}}</includeonly>
<!--{{#ifeq:{{{AlCat|}}}|||{{#ifeq:{{#pos:{{{AlCat|}}}|(}}||[[Category:Allusions ({{{AlCat|}}})]]|[[Category:Allusions ({{#replace:{{#sub:{{{AlCat|}}}|0|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}},{{#sub:{{{AlCat|}}}|{{#expr:{{#pos:{{{AlCat|}}}|(}}-1}}}}|(|}}]]}}}}--><noinclude><div class="no-img">This template adds categories for place-name allusions to a place-name page.</div></noinclude><includeonly>{{#ifeq:{{{AlCat|}}}|||[[Category:Allusions {{#replace:({{#ifeq:{{#pos:{{PAGENAME}}|(|0}}||{{{AlCat|}}}|{{#replace:{{UtilLParenToSpComma|Str={{{AlCat|}}}}}|)|,}}}})|,)|)}}]]}}</includeonly>
<noinclude>
<templatedata>
{
"params": {
"AlCat": {
"label": "Allusion Category",
"description": "The name of the category",
"type": "string"
}
},
"description": "Adds categories for place-name allusions to place-name pages. Parameter is added automatically by another template."
}
</templatedata>
</noinclude>

Revision as of 22:15, 17 February 2022

This template adds categories for place-name allusions to a place-name page.

Adds categories for place-name allusions to place-name pages. Parameter is added automatically by another template.

Template parameters

ParameterDescriptionTypeStatus
Allusion CategoryAlCat

The name of the category

Stringoptional