Difference between revisions of "Help:Unknown Entities Pages"
From Security Vision
Line 54: | Line 54: | ||
==Parse the last Unknown_Deployment string== | ==Parse the last Unknown_Deployment string== | ||
− | + | * Start from the string: "Unknown Deployments 0001" | |
+ | * extract the last 4 characters of strings: use parser function <code>{{#sub:QUERY|-3}}<cpde> | ||
+ | * turn string to int | ||
+ | * add 1 to int | ||
+ | * pad with zeros |
Revision as of 12:08, 19 January 2022
Page name convention[ ]
Unknow_category_NNNN
ie Unknown_Deployments_0000, Unknown_Deployments_0001
incremental creation of unknown entity pages[ ]
Extension:Create_Page function[ ]
{{#createpage:|Your page name|button text|Template:ThaWillFillPage}}
{{#createpage:|Your page name|button text|Template:ThaWillFillPage}}
which I can see being applied as
{{#createpage:|Unknown_Deployments_NNNN|Create Unknown Deployment|Template:Deployments}}
{{#createpage:|Unknown_Deployments_NNNN|Create Unknown Deployment|Template:Deployments}}
Querying unknown entity pages[ ]
{{#ask: [[Category:Deployments]][[~*Unknown_Deployments*]] |format=broadtable |limit=50 |offset=0 |link=subject |sort= |order=asc |headers=show |searchlabel=... further results |class=sortable wikitable smwtable }}
Unknown Deployments 0000 |
Unknown Deployments 0001 |
Unknown Deployments 0002 |
Unknown Deployments 0003 |
Unknown Deployments 0004 |
Unknown Deployments 0005 |
last Unknown_Deployment[ ]
{{#ask:[[Category:Deployments]][[~*Unknown_Deployments*]]|format=plainlist|limit=1|offset=0|link=none|sort=|order=desc|sep=, |searchlabel=}}
Unknown Deployments 0005
Parse the last Unknown_Deployment string[ ]
- Start from the string: "Unknown Deployments 0001"
- extract the last 4 characters of strings: use parser function
ERY<cpde>
- turn string to int
- add 1 to int
- pad with zeros