Difference between revisions of "Template:Unknown Entity redlink"
From Security Vision
| (6 intermediate revisions by the same user not shown) | |||
| Line 1: | Line 1: | ||
| − | < | + | <noinclude> |
| − | + | '''Template Summary:''' Searches what is the last Unknown Entity of a given Category. It performs a +1 on the last Unknown Entity of a given Category. And creates a Page Forms #formredlink function, which prompts the user to create the unknown entity in a popup Form. | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | '''Invoked with:''' <nowiki>{{Unknown Entity redlink|CATEGORYNAME}}</nowiki> | ||
| − | + | See implementation notes in [[Help:Unknown Entities Pages]] | |
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| − | |||
| + | Edit in order to see Template | ||
| + | </noinclude><includeonly> | ||
{{#formredlink:form={{{1}}} | {{#formredlink:form={{{1}}} | ||
|link text=Create Unknown_{{{1}}}_{{padleft:{{#expr: 1 + {{#sub:{{#if:{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist}}|{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist|limit=1|offset=0|link=none|sort=|order=desc|sep=, |searchlabel=}}|0000}}|-4}}}}|4|0}} | |link text=Create Unknown_{{{1}}}_{{padleft:{{#expr: 1 + {{#sub:{{#if:{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist}}|{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist|limit=1|offset=0|link=none|sort=|order=desc|sep=, |searchlabel=}}|0000}}|-4}}}}|4|0}} | ||
|target=Unknown_{{{1}}}_{{padleft:{{#expr: 1 + {{#sub:{{#if:{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist}}|{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist|limit=1|offset=0|link=none|sort=|order=desc|sep=, |searchlabel=}}|0000}}|-4}}}}|4|0}} | |target=Unknown_{{{1}}}_{{padleft:{{#expr: 1 + {{#sub:{{#if:{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist}}|{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist|limit=1|offset=0|link=none|sort=|order=desc|sep=, |searchlabel=}}|0000}}|-4}}}}|4|0}} | ||
| − | |new window | + | |new window}}</includeonly> |
| − | |||
| − | |||
| − | </includeonly> | ||
Latest revision as of 09:50, 18 April 2022
Template Summary: Searches what is the last Unknown Entity of a given Category. It performs a +1 on the last Unknown Entity of a given Category. And creates a Page Forms #formredlink function, which prompts the user to create the unknown entity in a popup Form.
Invoked with: {{Unknown Entity redlink|CATEGORYNAME}}
See implementation notes in Help:Unknown Entities Pages
Edit in order to see Template