Sandbox: differenze tra le versioni

Da Tematiche di genere.
Vai alla navigazione Vai alla ricerca
Nessun oggetto della modifica
Nessun oggetto della modifica
 
(Una versione intermedia di uno stesso utente non è mostrata)
Riga 1: Riga 1:
{{#arraydefine:b|orange, red, yellow, yellow}}
{{#arraydefine:b|orange, red, yellow, yellow}}
{{#arrayprint:b}}
 
{{#arrayprint:b | }}
* {{#arrayprint:b}}
{{#arrayprint:b}}
* {{#arrayprint:b|}}
Print - without delimiter
* {{#arrayprint:b}}
{{#arrayprint:b | }}
* Print - without delimiter
Print - using '‎<br />' (line-break) as delimiter
 
{{#arrayprint:b|}}
 
* Print - using '‎<br />' (line-break) as delimiter
 
{{#arrayprint:b |<br/> }}
{{#arrayprint:b |<br/> }}
Pretty list output where the last two elements are chained with an ' and ' (or the local languages equivalent). Even though the delimiter parameter is empty, ', ' (or the languages equivalent) will be used since it wouldn't be pretty otherwise.
 
* Pretty list output where the last two elements are chained with an ' and ' (or the local languages equivalent). Even though the delimiter parameter is empty, ', ' (or the languages equivalent) will be used since it wouldn't be pretty otherwise.
 
{{#arrayprint:b ||@ |@ |print=pretty }}
{{#arrayprint:b ||@ |@ |print=pretty }}
Embed wiki link to categories
 
* Embed wiki link to categories
 
{{#arrayprint:b |<br/> |@@@@ |[[:Category:@@@@|@@@@]] }}
{{#arrayprint:b |<br/> |@@@@ |[[:Category:@@@@|@@@@]] }}
Define a Semantic MediaWiki property value
 
* Define a Semantic MediaWiki property value
 
{{#arrayprint:b |<br/> |@@@@ |[[prop1::@@@@]] }}
{{#arrayprint:b |<br/> |@@@@ |[[prop1::@@@@]] }}
Embed parser function
 
* Embed parser function
 
{{#arrayprint:b |<br/> |@@@@ |length of @@@@:{{#len:@@@@}} }}
{{#arrayprint:b |<br/> |@@@@ |length of @@@@:{{#len:@@@@}} }}
Embed template (with parameters)
 
* Embed template (with parameters)
 
{{#arrayprint:b|<br/>|@@@@|{{template|prop2|@@@@}} }}
{{#arrayprint:b|<br/>|@@@@|{{template|prop2|@@@@}} }}
{{#arraydefine:AnswerWithContext|{{#ask:
[[Category:Answer]][[hasContext::{{{1|+}}}]]|?hasContext=
|link=none|mainlabel=-}} |,|unique}}
{{#arraysort:AnswerWithContext|asc}}
{{#arrayprint:AnswerWithContext|<br/>|@@@@|<h3>@@@@</h3><br/>{{#ask:
[[Category:Answer]][[hasContext::@@@@]]||?RefersToQuestion|?Answertext|sort=RefersToQuestion|format=template|template=MyAnswers}}}}

Versione attuale delle 16:26, 24 nov 2022


  • orange, red, yellow, yellow
  • orangeredyellowyellow
  • orange, red, yellow, yellow
  • Print - without delimiter

orangeredyellowyellow

  • Print - using '‎
    ' (line-break) as delimiter

orange
red
yellow
yellow

  • Pretty list output where the last two elements are chained with an ' and ' (or the local languages equivalent). Even though the delimiter parameter is empty, ', ' (or the languages equivalent) will be used since it wouldn't be pretty otherwise.

orange, red, yellow e yellow

  • Embed wiki link to categories

orange
red
yellow
yellow

  • Define a Semantic MediaWiki property value

orange
red
yellow
yellow

  • Embed parser function

length of orange:6
length of red:3
length of yellow:6
length of yellow:6

  • Embed template (with parameters)

Template:Template
Template:Template
Template:Template
Template:Template