Changes for page Attack (Order)
Last modified by Manoeuvring with Difficulty on 2024/01/26 06:48
From version 8.1
edited by Manoeuvring with Difficulty
on 2024/01/25 07:26
on 2024/01/25 07:26
Change comment:
There is no comment for this version
To version 10.2
edited by Manoeuvring with Difficulty
on 2024/01/25 10:19
on 2024/01/25 10:19
Change comment:
Removed tag [combat]
Summary
-
Page properties (2 modified, 0 added, 0 removed)
Details
- Page properties
-
- Tags
-
... ... @@ -1,1 +1,1 @@ 1 - combat|order1 +order - Content
-
... ... @@ -64,12 +64,22 @@ 64 64 Ships will only attack their targets in the order prescribed by the player meaning that if another, greater priority target becomes available an attack order will be queued up after the earlier targets, this can be resolved by clearing the queue of all the attacking ships and then re-adding the new order of targets but it can be tedious. 65 65 66 66 = Related = 67 + 67 67 {{velocity}} 68 -#set ($references = $services.query.xwql("from doc.object(XWiki.TagClass) as tag where 'combat' member of tag.tags").execute()) 69 -#foreach($reference in $references) 70 - #set ($document = $xwiki.getDocument($reference)) 71 - #set ($label = $document.getTitle()) 72 - |[[$label>>$reference]]| 69 +## Related pages display by Manoeuvring with Difficulty, displays a horizontal list of related pages based upon the tags given to the page 70 +## Get all tags assigned to this page 71 +#set ($tags = $doc.getTagList()) 72 +#foreach($tag in $tags) 73 + ---- 74 + (% style="text-align:center" %) 75 + **$tag.substring(0,1).toUpperCase()$tag.substring(1,$tag.length())** 76 + ~| ## Display the tags with the 1st letter being uppercase 77 + #set ($references = $services.query.xwql("from doc.object(XWiki.TagClass) as tag where '$tag' member of tag.tags").execute()) 78 + #foreach($reference in $references) 79 + #set ($document = $xwiki.getDocument($reference)) 80 + #set ($label = $document.getTitle()) 81 + [[$label>>$reference]] | ## link to every page with the same tag 82 + #end 83 + 73 73 #end 74 74 {{/velocity}} 75 -