Modifications pour le document Attack (Order)

Modifié par Manoeuvring with Difficulty le 2024/01/26 06:48

Depuis la version 9.2
modifié par Manoeuvring with Difficulty
sur 2024/01/25 08:09
Commentaire de modification : Il n'y a aucun commentaire pour cette version
À la version 10.7
modifié par Manoeuvring with Difficulty
sur 2024/01/25 10:25
Commentaire de modification : Removed tag [Combat Order]

Résumé

Détails

Propriétés de la Page
Tags
... ... @@ -1,1 +1,1 @@
1 -combat|order
1 +order|combat
Contenu
... ... @@ -63,26 +63,23 @@
63 63  
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 -= Relate =
66 += Related =
67 67  
68 -----
68 +{{velocity}}
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
69 69  
70 -(% style="text-align:center" %)
71 -**Combat**
72 -{{velocity}}#set ($references = $services.query.xwql("from doc.object(XWiki.TagClass) as tag where 'combat' member of tag.tags").execute())
73 -#foreach($reference in $references)
74 - #set ($document = $xwiki.getDocument($reference))
75 - #set ($label = $document.getTitle())
76 - [[$label>>$reference]] | ##
77 -#end{{/velocity}}
78 -
79 -----
80 -
81 -(% style="text-align:center" %)
82 -**Queued Orders**
83 -{{velocity}}#set ($references = $services.query.xwql("from doc.object(XWiki.TagClass) as tag where 'order' member of tag.tags").execute())
84 -#foreach($reference in $references)
85 - #set ($document = $xwiki.getDocument($reference))
86 - #set ($label = $document.getTitle())
87 - [[$label>>$reference]] | ##
88 -#end{{/velocity}}
84 +#end
85 +{{/velocity}}