Difference between revisions of "Template:Unknown Entity redlink"
From Security Vision
(Created page with "<includeonly> Unknown_{{{1}}}_{{padleft:{{#expr: 1 + {{#sub:{{#if:{{#ask:[[Category:{{{1}}}]][[~*Unknown_{{{1}}}*]]|format=plainlist}}|{{#ask:[[Category:{{{1}}}]]~*Unknown_{...") |
|||
(15 intermediate revisions by the same user not shown) | |||
Line 1: | Line 1: | ||
− | <includeonly> | + | <noinclude> |
− | 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}} | + | '''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. |
− | </includeonly> | + | |
+ | '''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}}} | ||
+ | |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}} | ||
+ | |new window}}</includeonly> |
Latest revision as of 10: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